-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL: Issues related to utf8 flag #305
Comments
Hi @ldidry,
|
Ok
|
@ldidry, |
Well, the crash log was not related to that message, but it was the same kind of message (same sender, same commands). This user usually send a lot of subscription for a lot of lists in a row (imagine ±500 subscriptions for ±20 lists, in 20 mails), I just picked one crash log and one mail while debugging its mails. |
I want to see the message just related to log (or log related to message), unless such messages by that user always crashes Sympa. In such cases the problem can be related to the content of messages. |
Well… characters like I just find something weird that give a clue for the source of badly encoded gecos in DB: a list (let's call it A) with apparently no pb in the gecos of users (I checked in web interface and DB) is a data source for another list (B). When syncing the data source, the B list got bad encoding! You may need to know that the user that send the mail that crashes sympa_msg use a lot of lists as data source for other lists (I don't know if that's relevant, but it's better to have too much informations than not enough). |
By the way, I've got a script that tracks badly encoded gecos. Here's the relevant part:
I don't think it will help you, but… better to have it. I forgot to say that we got encoding pbs in |
I confirm the list inclusion problem: I just saw the same behavior with another list inclusion in another list (completely different people). |
New information: it seems that the problem with the encoding in I don't know if it's relevant, but the user first made a mistake in the new email address ( |
I guess that byte is "\xE7", octal 347 (you can see values of bytes using Anyways illegal bytes should not crash sympa.pl. I'll investigate code to fix it in a few days. |
@ldidry, now I understand why you told about database. Does this patch fix the problem?
|
It solved at least #308. I need to wait one or two days to see if it solved this issue. After that, I'll try with DBD::Pg 3.6 or later. |
Great job, thank you! 👍 |
I tried with DBD::PG 3.7.4, it maked sympa_msg, archived and task_manager crash a few minutes after the restart. I'll try 3.6+ later. |
Ok, if both 3.6.x and 3.7.4 crashes, could you please apply this additional patch and check if problem will be solved? Thanks. |
Your additional patch seems to work very well: I applied it and installed DBD::PG 3.7.4, all is still working well. 👍 |
@ldidry, thanks! |
On 05/28/2018 03:54 PM, IKEDA Soji wrote:
@ldidry <https://github.com/ldidry>, thanks!
IMHO Sympa has emphasized LAMP and tend to neglect other DB. Your help improved support for PostgrSQL much!
Actually I prefer to use PostgreSQL and it didn't show this problem in the instances I administered.
So thanks to both of you for the improvement!
Regards
Racke
…
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#305 (comment)>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIxPmcUcBP9Ci4tqpNYI6jJxgRO28CQks5t3AGUgaJpZM4T_maF>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
|
No need to thank me: I just had the pb and tried the proposed patches 😉
We were in an older version of Sympa on an old Debian (wheezy I think), and migrated Sympa version AND migrated to another server with Jessie. Maybe something went wrong when I migrated the database. Then we opened the service to a lot of people (we now have 238,548 users in |
After all, we wouldn't have a fix if you didn't tried these patches 😁 @ldidry. |
Disclaimer I provided the problematic mail to some Sympa developers but will not provide it here since it contains personal informations. And I anonymized the informations in this bug report
For the record, here's a message I posted on sympa-fr:
https://listes.renater.fr/sympa/arc/sympa-fr/2017-10/msg00015.html
My configuration:
Debian 9, PostgreSQL 9.6, Sympa 6.2.16
Locales configuration:
For the DB:
Some characters crash sympa_msg:
’
or—
. By deleting them, there'sno more crash.
Some characters are badly encoded in the database, even simple
é
(which are current in french first name).
Here's a crash log:
I digged a little with a small perl script. This one don't work:
But it works with binmode:
That's all that I have and found.
The text was updated successfully, but these errors were encountered: