Debian Bug report logs - #13978
libc6: cannot run mysqld with libpthreads in 2.0.5; patch

version graph

Package: libc6; Maintainer for libc6 is GNU Libc Maintainers <debian-glibc@lists.debian.org>; Source for libc6 is src:glibc (PTS, buildd, popcon).

Reported by: Scott Hanson <shanson@shcon.com>

Date: Sat, 18 Oct 1997 17:03:02 UTC

Severity: normal

Found in version 2.0.5c-0.1

Done: unknown

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>:
Bug#13978; Package libc6. (full text, mbox, link).


Acknowledgement sent to Scott Hanson <shanson@shcon.com>:
New bug report received and forwarded. Copy sent to Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Scott Hanson <shanson@shcon.com>
To: submit@bugs.debian.org
Subject: libc6: cannot run mysqld with libpthreads in 2.0.5; patch
Date: Sat, 18 Oct 1997 19:01:57 +0200
Package: libc6
Version: 2.0.5c-0.1

I'm trying to become the new maintainer of the mysql package, but
neither I nor Christian Schwarz (the previous maintainer) are able to
build a package where mysqld doesn't seg fault under libc6-2.0.5. However, replacing the libpthreads library with that from 2.0.4 seems to fix the problem.

On the mailing list for mysql, the following short patch for libc6 was included. I tried it, and it seems to solve the problem with mysqld, but of course I have no idea what other problems it may cause.

We'll probably have to release libc5 versions of mysql until this problem is fixed.

Scott

The following was posted by mf@fishbone.ruhr.de (Martin Fischer) on
the mysql mailing list:
---begin------------------------------------
> There is a bug in glibc-2.0.5, you can check the mail archive how to
> fix this. It's supposedly to be fixed in glibc 2.0.6.

I've the same environment and made a patch for the linuxthreads from
glibc2.0.5c:

diff -uNr specific.c.orig specific.c
--- specific.c.orig	Tue Aug  5 16:17:39 1997
+++ specific.c	Wed Oct 15 21:45:00 1997
@@ -100,8 +100,6 @@
   unsigned int round;
   pthread_descr self = thread_self();
 
-  for (round = 0; round < PTHREAD_DESTRUCTOR_ITERATIONS; ++round)
-    {
       int found_nonzero = 0;
       unsigned int i;
       destr_function destr;
@@ -117,9 +115,5 @@
 	      found_nonzero |= self->p_specific[i] != NULL;
 	    }
 	}
-
-      if (found_nonzero == 0)
 	/* No more non-NULL data with destructor.  */
-	break;
-    }
 }

I've compiled mysql-3.20.29 without any problems and it runs fine
now. Ulrich Drepper, the developer of glibc, has written me, that
it is okay to delete the above lines in the linuxthreads-library
because it's an doubtful feature of POSIX.1c used rarely. The worst
case is that programs don't give back their memory immediately ; this
happens then at the programs end. An official patch for linuxthreads
will be in glibc-2.1, available in some weeks.
---end------------------------------------



-- System Information
Debian Release: 1.3
Kernel Version: Linux kirby 2.0.31 #1 Sun Oct 5 14:02:39 CEST 1997 i586 unknown

Versions of the packages libc6 depends on:
ldso	Version: 1.9.6-2


Information forwarded to debian-bugs-dist@lists.debian.org, Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>:
Bug#13978; Package libc6. (full text, mbox, link).


Acknowledgement sent to Rob Browning <rlb@cs.utexas.edu>:
Extra info received and forwarded to list. Copy sent to Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>. (full text, mbox, link).


Message #10 received at 13978@bugs.debian.org (full text, mbox, reply):

From: Rob Browning <rlb@cs.utexas.edu>
To: Scott Hanson <shanson@shcon.com>
Cc: 13978@bugs.debian.org
Subject: Re: Bug#13978: libc6: cannot run mysqld with libpthreads in 2.0.5; patch
Date: 19 Oct 1997 15:03:02 -0500
Scott Hanson <shanson@shcon.com> writes:

> I'm trying to become the new maintainer of the mysql package, but
> neither I nor Christian Schwarz (the previous maintainer) are able
> to build a package where mysqld doesn't seg fault under
> libc6-2.0.5. However, replacing the libpthreads library with that
> from 2.0.4 seems to fix the problem.

Interesting.  We've had a similar probblems here.  After some digging,
Bruce posted that the problem was being caused by a bug in libc6.
Apparently the upstream maintainers know about it and are working on
fix.

-- 
Rob Browning <rlb@cs.utexas.edu>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94  53 2B 97 F5 D6 4E 39 30


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun May 12 23:57:09 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.