Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
Dans un message du 16 Mar à 23:18, Mario Lipinski écrivait : I used the following code to reproduce the error: #!/usr/bin/perl use strict; getgrnam('test'); # might be exchanged by 'getpwnam' print 1; The print 1; seems neccessary - dont ask me why... Ok, I can reproduce it. I will see if I can find out why it is crashing... Guillaume. -- Guillaume Morin [EMAIL PROTECTED] 5 years from now everyone will be running free GNU on their 200 MIPS, 64M SPARCstation-5 (Andy Tanenbaum, 30 Jan 1992) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
Steve, Dans un message du 12 Mar à 14:04, Steve Langasek écrivait : Yes, it does; but until it is determined, this should be treated as an RC bug. NSS modules that can potentially break any process on the system need to be held to a very high standard. For Dwayne, it may be useful to try to run the adduser command under valgrind; since nss certainly has nothing to do with gettext, this probably points to a memory smash that needs to be tracked down. Ok, I think I fixed the bug. Mario, Dwayne: if I send you the patch, could you recompile from source to confirm it is fixing your problem? You could also use CVS and checkout the savannah tree: https://savannah.nongnu.org/cvs/?group=nss-mysql. Run autogen.sh, configure, make, make install, and it should do the job. Steve: If this patch fixes the bug, I will upload a new package next week with the fix. Do you need a patch or the package I will upload will go into sarge (after you approved it I guess)? Thanks, Guillaume. -- Guillaume Morin [EMAIL PROTECTED] Je préfère à l'ennui, m'endormir pour toujours (FFF) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
On Friday 18 March 2005 01:30 pm, Guillaume Morin wrote: Ok, I think I fixed the bug. Mario, Dwayne: if I send you the patch, could you recompile from source to confirm it is fixing your problem? You could also use CVS and checkout the savannah tree: https://savannah.nongnu.org/cvs/?group=nss-mysql. Run autogen.sh, configure, make, make install, and it should do the job. The code from CVS fixes the problem for me. Thank you. Thanks, Guillaume. -- Dwayne Rightler [EMAIL PROTECTED] GnuPG Public Key: http://www.technicalogic.com/drightler/drightler.pub Fri Mar 18 14:09:20 CST 2005 pgpBsfYXJkzKk.pgp Description: PGP signature
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
Dans un message du 18 Mar à 22:02, Mario Lipinski écrivait : First: Everything works with the patch applied. The Bug seems to be fixed. Good. Since this is a bug for a debian package let me say, that the patch did not apply cleanly against the source from debian - but works. Are you going to release a new version where changes since the last release also get in the debian package or are there any advantages for upgrading to CVS? Yes, I will make a new package and a new source release. I used to advise to use the CVS release because there was no new release but now it is going to be the same. So running the Deb is fine. G. -- Guillaume Morin [EMAIL PROTECTED] What is the point of trying to dream anymore ? (Alanis Morisette) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
Hi Guillaume, On Fri, Mar 18, 2005 at 08:30:54PM +0100, Guillaume Morin wrote: Dans un message du 12 Mar à 14:04, Steve Langasek écrivait : Yes, it does; but until it is determined, this should be treated as an RC bug. NSS modules that can potentially break any process on the system need to be held to a very high standard. For Dwayne, it may be useful to try to run the adduser command under valgrind; since nss certainly has nothing to do with gettext, this probably points to a memory smash that needs to be tracked down. Ok, I think I fixed the bug. Mario, Dwayne: if I send you the patch, could you recompile from source to confirm it is fixing your problem? You could also use CVS and checkout the savannah tree: https://savannah.nongnu.org/cvs/?group=nss-mysql. Run autogen.sh, configure, make, make install, and it should do the job. Steve: If this patch fixes the bug, I will upload a new package next week with the fix. Do you need a patch or the package I will upload will go into sarge (after you approved it I guess)? If the fix is uploaded now, it will automatically propagate to testing when it's old enough. Since this is a release-critical bugfix, please upload with urgency=medium or urgency=high. Thanks, -- Steve Langasek postmodern programmer signature.asc Description: Digital signature
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
Package: libnss-mysql Version: 0.43-2 Followup-For: Bug #299155 i can confirm this bug and was able to track this down to a fault in the function getpwnam called by the adduser script. the function getgrnam shows same behaviour. i am experiencing the problem a long time now and looking forward to see this fixed soon. Yours sincerely, Mario Lipinski -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.11-garfield Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages libnss-mysql depends on: ii libmysqlclient10 3.23.56-2 LGPL-licensed client library for M -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
Hello, i noticed that my email address bounced. This should be fixed now. So the reference to previous mails is lost. Sorry for that. Hmm, Ok. Could you elaborate a little bit? I can fix the code but I would need to get some details. Do you know what is wrong? I used the following code to reproduce the error: #!/usr/bin/perl use strict; getgrnam('test'); # might be exchanged by 'getpwnam' print 1; The print 1; seems neccessary - dont ask me why... I can produce any information you like if you just tell me how. I am not very experienced in software development. So can not tell exactly tell you what is wrong. Anything i know is summed up in this bug. A lot of code is calling these functions, so it is clearly not an obvious bug. Otherwise everything would blow up. Well for me it is quite obvious. Same problem i experienced with munin-node from munin (a tool for graphing load stats and similar). So i could not use it. For upgrading the server i could have commented mysql out from /etc/nsswitch.conf. Wasn't nice but worked in my environment quite stable. But i think this really needs to be fixed. So i provide my forces limited by my competence to solve this. Iirc i already mailed the adduser and the libnss-mysql developer about this along time ago. But iirc without a result because of knowing to few about what happened. -- Mario Lipinski VOIP: +49 511 696045510 SystemadministrationFax: +49 721 151-207196 Gymnasium Salzgitter-BadE-Mail: [EMAIL PROTECTED] Internet: http://www.gymszbad.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
severity 299155 grave thanks Tons of people run nss-mysql with perl with no problems. The reason of the breakage needs to be determined. Yes, it does; but until it is determined, this should be treated as an RC bug. NSS modules that can potentially break any process on the system need to be held to a very high standard. For Dwayne, it may be useful to try to run the adduser command under valgrind; since nss certainly has nothing to do with gettext, this probably points to a memory smash that needs to be tracked down. -- Steve Langasek postmodern programmer signature.asc Description: Digital signature
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
For Dwayne, it may be useful to try to run the adduser command under valgrind; since nss certainly has nothing to do with gettext, this probably points to a memory smash that needs to be tracked down. With libnss-mysql enabled: ip02:/usr/share/doc/libpam-mysql# valgrind /usr/sbin/adduser --system --disabled-password --disabled-login --home /var/run/stunnel4 --no-create-home --group stunnel5 ==7368== Memcheck, a memory error detector for x86-linux. ==7368== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==7368== Using valgrind-2.2.0, a program supervision framework for x86-linux. ==7368== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==7368== For more details, rerun with: -v ==7368== ==7368== Invalid read of size 4 ==7368==at 0x1BE183B8: XS_Locale__gettext_gettext (in /usr/lib/perl5/auto/Locale/gettext/gettext.so) ==7368==by 0x80C32D5: Perl_pp_entersub (in /usr/bin/perl) ==7368==by 0x80BBDC8: Perl_runops_standard (in /usr/bin/perl) ==7368==by 0x80635E7: (within /usr/bin/perl) ==7368== Address 0x1 is not stack'd, malloc'd or (recently) free'd ==7368== ==7368== Process terminating with default action of signal 11 (SIGSEGV) ==7368== Access not within mapped region at address 0x1 ==7368==at 0x1BE183B8: XS_Locale__gettext_gettext (in /usr/lib/perl5/auto/Locale/gettext/gettext.so) ==7368==by 0x80C32D5: Perl_pp_entersub (in /usr/bin/perl) ==7368==by 0x80BBDC8: Perl_runops_standard (in /usr/bin/perl) ==7368==by 0x80635E7: (within /usr/bin/perl) ==7368== ==7368== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 43 from 1) ==7368== malloc/free: in use at exit: 1309294 bytes in 25954 blocks. ==7368== malloc/free: 40310 allocs, 14356 frees, 15787742 bytes allocated. ==7368== For a detailed leak analysis, rerun with: --leak-check=yes ==7368== For counts of detected errors, rerun with: -v Segmentation fault Without libnss-mysql enabled: ip02:/usr/share/doc/libpam-mysql# valgrind /usr/sbin/adduser --system --disabled-password --disabled-login --home /var/run/stunnel4 --no-create-home --group stunnel5 ==7373== Memcheck, a memory error detector for x86-linux. ==7373== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==7373== Using valgrind-2.2.0, a program supervision framework for x86-linux. ==7373== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==7373== For more details, rerun with: -v ==7373== Adding system user `stunnel5'... Adding new group `stunnel5' (106). Adding new user `stunnel5' (106) with group `stunnel5'. Not creating home directory. ==7373== warning: Valgrind's siglongjmp is incomplete ==7373== (it ignores cleanup handlers) ==7373== your program may misbehave as a result ==7373== ==7373== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 31 from 1) ==7373== malloc/free: in use at exit: 1083516 bytes in 19518 blocks. ==7373== malloc/free: 38990 allocs, 19472 frees, 15619892 bytes allocated. ==7373== For a detailed leak analysis, rerun with: --leak-check=yes ==7373== For counts of detected errors, rerun with: -v -- Dwayne Rightler [EMAIL PROTECTED] GnuPG Public Key: http://www.technicalogic.com/drightler/drightler.pub Sat Mar 12 20:52:34 CST 2005 pgpaHYUzsOTvI.pgp Description: PGP signature
Bug#299155: libnss-mysql: Causes segfault when running /usr/sbin/adduser
Package: libnss-mysql Version: 0.43-2 Severity: critical Justification: breaks unrelated software I have libnss-mysql installed and it seemed to be working correctly. Running /usr/bin/getent successfully pulls the entries from MySQL. I have my /etc/nsswitch.conf confiured like such: passwd: compat mysql group: compat mysql shadow: compat mysql I went to install a package (stunnel4) after I had configured libnss-mysql and the install failed due to a segfault of /usr/sbin/adduser. I ran /usr/sbin/adduser by hand to collect a core and ran gdb with a backtrace: (gdb) back #0 0x4021c3b8 in XS_Locale__gettext_gettext () from /usr/lib/perl5/auto/Locale/gettext/gettext.so #1 0x080c32d6 in Perl_pp_entersub () #2 0x080bbdc9 in Perl_runops_standard () #3 0x080635e8 in perl_run () #4 0x080633f5 in perl_run () #5 0x0805fb9f in main () If I remove mysql from /etc/nsswitch.conf this problem goes away. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-686 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages libnss-mysql depends on: ii libmysqlclient10 3.23.56-2 LGPL-licensed client library for M -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]