[Dovecot] running postlogin script result in libgcc_s.so.1 must be installed for pthread_cancel to work
Hey,
I try to run a postlogin script with:
service pop3 { executable = pop3 postlogin } service postlogin { executable = script-login /etc/dovecot/popafter.sh user = $default_internal_user unix_listener postlogin { } }
In my popafter.sh I call a php script, and that result in: dovecot: postlogin: Error: libgcc_s.so.1 must be installed for pthread_cancel to work dovecot: postlogin: Error: Aborted (core dumped)
I have tried google it, but cannot find a solution there works for me, anybody who can help me?
mail dovecot $ sudo dovecot -n # 2.0.19: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-59-generic x86_64 Ubuntu 12.04.4 LTS ext4 disable_plaintext_auth = no mail_location = maildir:/var/mail/vmail/%d/%n:INDEX=/var/mail/vmail/%d/%n/indexes mail_plugins = quota passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = maildir:User quota quota_exceeded_message = The user you are trying to reach is over quota. quota_rule = *:bytes=100M quota_rule2 = INBOX.Trash:storage=+20%% } protocols = " imap lmtp pop3" service imap { executable = imap postlogin } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service pop3 { executable = pop3 postlogin } service postlogin { executable = script-login /etc/dovecot/popafter.sh user = $default_internal_user } ssl_cert = </etc/ssl/certs/dovecot.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = prefetch } protocol imap { mail_plugins = quota imap_quota }
Thanks,
Kim
Am 2014-03-01 21:53, schrieb Kim Johansen:
Hey,
In my popafter.sh I call a php script, and that result in: dovecot: postlogin: Error: libgcc_s.so.1 must be installed for pthread_cancel to work dovecot: postlogin: Error: Aborted (core dumped)
I have tried google it, but cannot find a solution there works for me, anybody who can help me?
The first thing I would try in your place is to look if libgcc_s.so.1 is available on your system, and if not, then use the package manager of choice to install it. Did you do that already?
-- peter
On 03/02/2014 01:24 AM, Peter Chiochetti wrote:
Am 2014-03-01 21:53, schrieb Kim Johansen:
Hey,
In my popafter.sh I call a php script, and that result in: dovecot: postlogin: Error: libgcc_s.so.1 must be installed for pthread_cancel to work dovecot: postlogin: Error: Aborted (core dumped)
I have tried google it, but cannot find a solution there works for me, anybody who can help me?
The first thing I would try in your place is to look if libgcc_s.so.1 is available on your system, and if not, then use the package manager of choice to install it. Did you do that already?
I should have put that into my email also.
yes, it is on my system:
/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib32/libgcc_s.so.1
Am 2014-03-02 08:45, schrieb Kim Johansen:
On 03/02/2014 01:24 AM, Peter Chiochetti wrote:
Am 2014-03-01 21:53, schrieb Kim Johansen:
Hey,
In my popafter.sh I call a php script, and that result in: dovecot: postlogin: Error: libgcc_s.so.1 must be installed for pthread_cancel to work dovecot: postlogin: Error: Aborted (core dumped)
The first thing I would try in your place is to look if libgcc_s.so.1 is available on your system, and if not, then use the package manager of choice to install it. Did you do that already?
I should have put that into my email also.
yes, it is on my system:
/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib32/libgcc_s.so.1
Are they both found by the linker? $ ldconfig -p | grep libgcc_s
-- peter
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Kim Johansen wrote:
On 03/02/2014 01:24 AM, Peter Chiochetti wrote:
Am 2014-03-01 21:53, schrieb Kim Johansen:
Hey,
In my popafter.sh I call a php script, and that result in: dovecot: postlogin: Error: libgcc_s.so.1 must be installed for pthread_cancel to work dovecot: postlogin: Error: Aborted (core dumped)
I have tried google it, but cannot find a solution there works for me, anybody who can help me?
The first thing I would try in your place is to look if libgcc_s.so.1 is available on your system, and if not, then use the package manager of choice to install it. Did you do that already?
I should have put that into my email also.
yes, it is on my system:
/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib32/libgcc_s.so.1
Check out https://bugzilla.redhat.com/show_bug.cgi?id=767094 I'm not sure why VSZ would trigger that error, but who knows?
Steffen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEVAwUBUxNEO3D1/YhP6VMHAQKEqQgA0YYamyGvVjiG/C8tq74l+vZrKXlZU0VM LSWi4+x/c0D+S6AqCnT1E6lnTfb+KFTRcxAOQW72iSNYMp7EQ/ivEiuAdtjaTG5N rhQCHrH31Q39dIITiEV+eJyakWx5xf5lQoHRB2CZkDe8Qa1zXRvyadxZdRPFW4/y Std3CIrdj6ej9wFbpz01ZJfTg17yKWtfX1A7J2WEgaC1QuXtmJn/HFBZ/U6skF/O P1gq8Pv/nesvd1dgM6aW9VX7hpUrBxf2Hw9kgExiv1D7s6V9bw4AQsnqpWxTyiM7 9MetROloIbNtDkYaQkpYGfid0f/YYnXHe+bxwAGehsO0BLV1cLJbsw== =fh3S -----END PGP SIGNATURE-----
On 03/02/2014 03:46 PM, Steffen wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Kim Johansen wrote:
On 03/02/2014 01:24 AM, Peter Chiochetti wrote:
Hey,
In my popafter.sh I call a php script, and that result in: dovecot: postlogin: Error: libgcc_s.so.1 must be installed for pthread_cancel to work dovecot: postlogin: Error: Aborted (core dumped)
I have tried google it, but cannot find a solution there works for me, anybody who can help me? The first thing I would try in your place is to look if
Am 2014-03-01 21:53, schrieb Kim Johansen: libgcc_s.so.1 is available on your system, and if not, then use the package manager of choice to install it. Did you do that already?
I should have put that into my email also.
yes, it is on my system:
/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib32/libgcc_s.so.1 Check out https://bugzilla.redhat.com/show_bug.cgi?id=767094 I'm not sure why VSZ would trigger that error, but who knows?
Steffen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEVAwUBUxNEO3D1/YhP6VMHAQKEqQgA0YYamyGvVjiG/C8tq74l+vZrKXlZU0VM LSWi4+x/c0D+S6AqCnT1E6lnTfb+KFTRcxAOQW72iSNYMp7EQ/ivEiuAdtjaTG5N rhQCHrH31Q39dIITiEV+eJyakWx5xf5lQoHRB2CZkDe8Qa1zXRvyadxZdRPFW4/y Std3CIrdj6ej9wFbpz01ZJfTg17yKWtfX1A7J2WEgaC1QuXtmJn/HFBZ/U6skF/O P1gq8Pv/nesvd1dgM6aW9VX7hpUrBxf2Hw9kgExiv1D7s6V9bw4AQsnqpWxTyiM7 9MetROloIbNtDkYaQkpYGfid0f/YYnXHe+bxwAGehsO0BLV1cLJbsw== =fh3S -----END PGP SIGNATURE-----
Thanks for all the suggestions.
Here is a try to follow up on all of them:
the VSZ mem limit did not make any change on my system, I tried to raise it to 1024M, with no luck.
the linker sees the files fine: mail1 dovecot $ ldconfig -p | grep libgcc_s libgcc_s.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libgcc_s.so.1 libgcc_s.so.1 (libc6) => /usr/lib32/libgcc_s.so.1 mail1 dovecot $
but I have had success with using a bash script instead of a PHP script, with a smaller foodprint as Jeroen suggested. So I think that is the solution is to rewrite the script to bash script. What I try to do it to convert password scheme to get et more secure, so I follow the guide from the wiki sites: http://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes and here they have a PHP script.
But thanks for the help. Kim
Kim Johansen - 2014-03-02 20:09:
- but I have had success with using a bash script instead of a PHP script, with a smaller foodprint as Jeroen suggested. So I think that is the solution is to rewrite the script to bash script.
Some time ago I tried to get postlogin PHP script working without success (i don't remember what exactly was the problem though). What I did, was make postlogin shell script calling postlogin PHP script via exec. Something like this:
#!/bin/sh set > /tmp/dovecot-environment echo "$@" > /tmp/dovecot-args exec /data/etc/dovecot/postlogin.php > /dev/null 2>&1 & exec "$@"
This worked.
MU
participants (4)
-
Kim Johansen
-
Maciej Uhlig
-
Peter Chiochetti
-
Steffen