Debian Bug report logs - #24652
sigsev on fork, fputs (2.0.35, glibc2.0.7r-5)

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: Kevin Turner <kevint@aracnet.com>

Date: Thu, 16 Jul 1998 09:03:06 UTC

Severity: normal

Fixed in version glibc/2.2-6

Done: Ben Collins <bcollins@debian.org>

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:
Bug#24652. (full text, mbox, link).


Acknowledgement sent to Kevin Turner <kevint@aracnet.com>:
New bug report received and forwarded.

Your message didn't have a Package: line at the start (in the pseudo-header following the real mail header), or didn't have a psuedo-header at all.

This makes it much harder for us to categorise and deal with your problem report; please ensure that you say which package(s) and version(s) the problem is with next time. Some time in the future the problem reports system may start rejecting such messages.

(full text, mbox, link).


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

From: Kevin Turner <kevint@aracnet.com>
To: submit@bugs.debian.org
Subject: sigsev on fork, fputs (2.0.35, glibc2.0.7r-5)
Date: Thu, 16 Jul 1998 02:01:47 -0700
(Apologies to dear bugs@debian reader, but I know not where else to send this.
Suggestions on where to forward will be gladly taken in.)

The problem:
My system occasionally gets in odd moods where most programs sigsev on
startup, or soon after.  A wide range of programs are affected, from ls
to nethack.  The same programs always fail on the same places,
indicating that it's not randomly induced hardware errors.  Also,
statically linked programs seem not to be affected.  Currently running
processes seem to continue unaffected.

The system is a AMD 486/100 MHz, with a recently installed Debian
distribution (Based on 2.0b3, but running a few packages from Slink as
well.)  Kernel is 2.0.35 patched from 2.0.34 compiled with gcc 2.7.2.3
2.7.2.3-4.7, libc is 2.0.7r-5, binutils is 2.9.1-0.2.
(I think the first time the problem happened, it was prior to the final
2.0.35 release, but unfortunately I can't say exactly what kernel was in
use at the time...)

The system may be stable for hours, perhaps days, before the problem
occours.  I haven't been able to pin down what triggers it, although it
may have a correlation with high system load (compiling, etc).  Once it
starts, the symptoms are always exactly the same.  

The system does continue running, but most new processes die in nasty
ways with segv's coming out the ears.  (So fetchmail continues to
retrieve mail, but proccesses cannot be spawned to deliver it to local
accounts, for example.)

top and /proc/meminfo say that the system is far from running out of
memory.  The fact that statically linked programs work seems to indicate
I'm not out of proccesses.  And /etc/ld.so.preload is already zero, so
that's not it.

There are, however, ways to totally kill the system at this point.
Attempting to ssh to a remote host hums for a while, then resuts in top
complaining "error while opening UTMP file: too many open files in
system."  Following that,  messages about not having enough memory for
various programs show up, until finally "could not get a free page",
when I give up and reboot, as nothing is responding.  (Switching vt's
works, but neither console nor dumb terminal show any other signs of
life.  I don't know if it's still returning pings.)

The problem does not go away on it's own.  Rebooting the system tends to
fix the problem for a while, although once it didn't get through the
bootup scripts before it started again.

In one of it's working moods, I compiled statically linked copies of
strace and ltrace.   The remainder of this message contains their dying
words.

Please, help them if you can.
Thanks,
  - Kevin Turner
    (Acapnotic)

cp, when called with appropriate arguements, seems to work.  However,
when called without arguements:
29257 __dcgettext(NULL, "missing file arguments", 5) = "missing file arguments"
29257 error(0, 0, 0x0804c432, 0x4000b210, 0 <unfinished ...>
29257 SYS_pipe(0xbfffcfb8, 0x0804e360, 0x400a675c, 4, 0x40041dd8) = 0
29257 SYS_fork()                                  = 29258
29257 --- SIGSEGV (Segmentation fault) ---
29258 --- SIGSEGV (Segmentation fault) ---
29257 +++ killed by SIGSEGV +++
29258 +++ killed by SIGSEGV +++

ls dies:
29266 strcmp("rm.out", "ls.out")                  = 6
29266 strcmp("cp.out", "ls.out")                  = -9
29266 fputs("cp.out", 0x0804fce8 <unfinished ...>
29266 SYS_pipe(0xbffffb24, -8, 0x400a675c, 0x0804fce8, 0x400484e1) = 0
29266 SYS_fork()                                  = 29267
29266 --- SIGSEGV (Segmentation fault) ---
29267 --- SIGSEGV (Segmentation fault) ---
29266 +++ killed by SIGSEGV +++
29267 +++ killed by SIGSEGV +++

ps dies, but it's last words aren't SYS_fork():
29302 SYS_open("/proc", 2048, 010000262150)       = 7
29302 SYS_fcntl(7, 2, 1, 0x0804cac0, 5146)        = 0
29302 SYS_fstat(7, 0xbffffadc, 0x400af75c, 0xbffffb44, 5146) = 0
29302 <... openproc resumed> )                    = 0x0804cac0
29302 puts("  PID TTY STAT TIME COMMAND" <unfinished ...>
29302 --- SIGSEGV (Segmentation fault) ---
29302 +++ killed by SIGSEGV +++

similarly with dpkg:
29273 stpcpy(0xbffffad0, ".mo")                   = 0xbffffad3
29273 __errno_location()                          = 0x400bc50c
29273 fputs("Desired=Unknown/Install/Remove/P"..., 0x08068bb0
<unfinished ...>
29273 --- SIGSEGV (Segmentation fault) ---
29273 +++ killed by SIGSEGV +++

mc starts and puts on a good face, but after trying to view a file...
29233 fprintf(0x080d1a90, "#!%s\n", "/bin/sash" <unfinished ...>
29233 --- SIGSEGV (Segmentation fault) ---
29234 <... SYS_read resumed> "", 1)               = 0
29234 <... read resumed> "", 1)                   = 0
29234 free(0x0804a190)                            = <void>
29234 exit(0)                                     = <void>
29234 SYS_exit(0)                                 = <void>
29234 +++ exited (status 0) +++
29233 +++ killed by SIGSEGV +++


Bug assigned to package `libc6'. Request was from jdassen@wi.leidenuniv.nl to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Dale Scheetz <dwarf@polaris.net>:
Bug#24652; Package libc6. (full text, mbox, link).


Acknowledgement sent to Kevin Turner <kevint@aracnet.com>:
Extra info received and forwarded to list. Copy sent to Dale Scheetz <dwarf@polaris.net>. (full text, mbox, link).


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

From: Kevin Turner <kevint@aracnet.com>
To: 24652@bugs.debian.org
Subject: It returns
Date: Mon, 3 Aug 1998 17:11:14 -0700
A libc update came out, and that appeared to smooth things over.
Or so I thought.

Today, after downloading and unpacking the GIMP source tree,
the problem raised it's head during configure.

I sighed and hit the reset button.  :(

Currently running libc6 2.0.7t-1, kernel 2.0.35.


Reply sent to Ben Collins <bcollins@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Kevin Turner <kevint@aracnet.com>:
Bug acknowledged by developer. (full text, mbox, link).


Message #17 received at 24652-close@bugs.debian.org (full text, mbox, reply):

From: Ben Collins <bcollins@debian.org>
To: 24652-close@bugs.debian.org
Subject: Bug#24652: fixed in glibc 2.2-6
Date: Mon, 18 Dec 2000 14:55:49 -0500
We believe that the bug you reported is fixed in the latest version of
glibc, which has been installed in the Debian FTP archive:

libc6-dev_2.2-6_powerpc.deb
  to pool/main/g/glibc/libc6-dev_2.2-6_powerpc.deb
locales_2.2-6_all.deb
  to pool/main/g/glibc/locales_2.2-6_all.deb
libc6-prof_2.2-6_sparc.deb
  to pool/main/g/glibc/libc6-prof_2.2-6_sparc.deb
nscd_2.2-6_powerpc.deb
  to pool/main/g/glibc/nscd_2.2-6_powerpc.deb
libc6-dbg_2.2-6_sparc.deb
  to pool/main/g/glibc/libc6-dbg_2.2-6_sparc.deb
nscd_2.2-6_i386.deb
  to pool/main/g/glibc/nscd_2.2-6_i386.deb
i18ndata_2.2-6_all.deb
  to pool/main/g/glibc/i18ndata_2.2-6_all.deb
libc6-prof_2.2-6_powerpc.deb
  to pool/main/g/glibc/libc6-prof_2.2-6_powerpc.deb
libc6-i686_2.2-6_i386.deb
  to pool/main/g/glibc/libc6-i686_2.2-6_i386.deb
libc6-dbg_2.2-6_i386.deb
  to pool/main/g/glibc/libc6-dbg_2.2-6_i386.deb
libc6-pic_2.2-6_sparc.deb
  to pool/main/g/glibc/libc6-pic_2.2-6_sparc.deb
libc6_2.2-6_i386.deb
  to pool/main/g/glibc/libc6_2.2-6_i386.deb
glibc_2.2-6.diff.gz
  to pool/main/g/glibc/glibc_2.2-6.diff.gz
libc6-dev_2.2-6_i386.deb
  to pool/main/g/glibc/libc6-dev_2.2-6_i386.deb
libc6-pic_2.2-6_i386.deb
  to pool/main/g/glibc/libc6-pic_2.2-6_i386.deb
glibc_2.2-6.dsc
  to pool/main/g/glibc/glibc_2.2-6.dsc
libc6_2.2-6_sparc.deb
  to pool/main/g/glibc/libc6_2.2-6_sparc.deb
libc6-prof_2.2-6_i386.deb
  to pool/main/g/glibc/libc6-prof_2.2-6_i386.deb
nscd_2.2-6_sparc.deb
  to pool/main/g/glibc/nscd_2.2-6_sparc.deb
glibc-doc_2.2-6_all.deb
  to pool/main/g/glibc/glibc-doc_2.2-6_all.deb
libc6-pic_2.2-6_powerpc.deb
  to pool/main/g/glibc/libc6-pic_2.2-6_powerpc.deb
libc6-dbg_2.2-6_powerpc.deb
  to pool/main/g/glibc/libc6-dbg_2.2-6_powerpc.deb
libc6-dev_2.2-6_sparc.deb
  to pool/main/g/glibc/libc6-dev_2.2-6_sparc.deb
libc6-v9_2.2-6_sparc.deb
  to pool/main/g/glibc/libc6-v9_2.2-6_sparc.deb
libc6_2.2-6_powerpc.deb
  to pool/main/g/glibc/libc6_2.2-6_powerpc.deb
libc6-i586_2.2-6_i386.deb
  to pool/main/g/glibc/libc6-i586_2.2-6_i386.deb
A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 24652@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ben Collins <bcollins@debian.org> (supplier of updated glibc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 15 Dec 2000 15:30:16 -0500
Source: glibc
Binary: locales libc0.2-dbg glibc-doc nscd libc6-i586 libc6.1-dbg libc6-i686 libc0.2 libc6-dbg libc6-v9 libc0.2-prof libc6.1 libc6 libc0.2-pic libc6.1-prof libc6-prof libc0.2-dev libc6.1-pic libc6-pic i18ndata libc6.1-dev libc6-dev
Architecture: source all sparc powerpc i386
Version: 2.2-6
Distribution: unstable
Urgency: low
Maintainer: Ben Collins <bcollins@debian.org>
Changed-By: Ben Collins <bcollins@debian.org>
Description: 
 glibc-doc  - GNU C Library: Documentation
 i18ndata   - GNU C Library: National Language (locale) data [source]
 libc6      - GNU C Library: Shared libraries and Timezone data
 libc6-dbg  - GNU C Library: Libraries with debugging symbols
 libc6-dev  - GNU C Library: Development Libraries and Header Files.
 libc6-pic  - GNU C Library: PIC archive library
 libc6-prof - GNU C Library: Profiling Libraries.
 libc6-v9   - GNU C Library: Shared libraries [v9 optimized]
 libc6-i586 - GNU C Library: Shared libraries [i586 optimized]
 libc6-i686 - GNU C Library: Shared libraries [i686 optimized]
 locales    - GNU C Library: National Language (locale) data [support]
 nscd       - GNU C Library: Name Service Cache Daemon
Closes: 10689 17528 19168 20988 21272 23547 24414 24652 25773 26226 27227 29675 30427 31465 31502 33197 34442 35089 35123 35624 35644 36139 36498 37296 37409 37681 38028 39077 39080 39562 39578 39582 39585 39693 39705 40053 40184 41455 41800 41917 41947 41952 42088 42135 42512 42912 42944 46173 48476 52420 52914 53748 57101 57729 58713 59429 59622 60743 61154 64074 64878 65634 66138 66757 70012 70658 74164 74945 75473 75865 77170 78495 78881 78937 79221 79224
Changes: 
 glibc (2.2-6) unstable; urgency=low
 .
   * Added m68k lchown fixes, plus removed conflict for libstdc++2.10-dev
     on m68k. Bug/patch provided by Michael Fedrowitz
     <michael.fedrowitz@informatik.uni-ulm.de>, closes: #78937
   * libc-opt: added memprof to the death list of packages that don't work
     with our optimized libraries, closes: #79224
   * Added Provides: glibc2.2 to libc6/libc6.1/libc0.2 so I can make
     locales dep on it, closes: #78495
   * CVS sync as of 2000-12-15
   * Fixed previously: closes: #75865, #77170, #75473
   * Added a "." counter while checking services for install, closes: #78881
   * %hhn works as expected in i386 in this version of glibc, closes: #79221
   * Looks like this is resolved, closes: #59429
   * The libc info page says not to use fgets on streams that may have NULL
     char's, which sockets might, closes: #57729
   * This is probably fixed, if not reopen it please, closes: #24414
   * Well this bug report has no report in the BTS, I am going to assume
     from the age and type of the title, that it is fixed, closes: #21272
   * Old ld.so issue, most likely resolved in hamm, closes: #46173
   * This bug is a simple programming mistake. For one the child never
     fills the buffer in certain cases, so it's contents are never flushed.
     If the program called fflush after every output, then it works fine,
     closes: #26226
   * The new upgrade code in libc postint should resolve this, closes: #64074
   * This is a compilation error. libc.so.6 does not contain fxstat
     (libc-nonshared.a does), so if you don't link properly (like with
     gcc), you will miss some symbols, closes: #36139
   * Similar to the above, also resolved, closes: #30427
   * Old ld.so bug, fixed, closes: #70658
   * Current localedef doesn't seem to segv on improper input, closes: #65634, #64878
   * YAOLDSOB (Yet Another LDSO Bug), closes: #42944
   * Lack of useful info in the BTS ("I suspect glibc" doesn't cut it),
     closes: #36498
   * Someone needs to read release notes, closes: #41455
   * Uh, tzconfig works. Tzselect is not for changing timezones, but for
     querying what the available ones are. From tzselect(1):
 .
       Note  that tzselect will not actually change the timezone
       for you. Use the tzconfig(8) utility to achieve this.
 .
     So you see, this is how it's meant to be, closes: #37409
   * Fixed in glibc 2.2, closes: #42512
   * a) all init scripts need to support restart
     b) postinst uses stop/start now anyway
     c) postinst fails much better now when things go wrong
 .
     closes: #52914
   * getaddrinfo does DNS lookups regardless because of the nature of the
     function. Also it handles ipv4/ipv6 better now, closes: #60743
   * I don't see why libc6 needs to create /etc/rcS.d/ when dpkg does it so
     closes: #66138
   * strstr seems pretty fast now, closes: #10689
   * Latest emacs/libc6 is working fine, closes: #48476
   * YAOLDSOB, closes: #42135
   * libstdc++-v3/glibc2.2 compiles fine together, closes: #66757
   * strerror() with maxerror+1 works as expected now, closes: #40184
   * No other info, and no similar reports. Assuming user error, closes: #31465
   * Old ssh-nonfree getting a sigsegv is not a bug in libc6, but sshd,
     closes: #41800
   * Restarting woffle already, closes: #74164
   * I believe this was due to some old nss1 issues, which are now resolved
     during upgrades, closes: #35089
   * This is something libc6 itself cannot fix. Either way, rsh/rlogin is
     broken by nature, closes: #19168
   * Well, I can't retroactively go back to hamm and add a stub for
     setresuid(), closes: #29675
   * Fixed upstream a long time ago, closes: #39693
   * From unix/getlogin.c:
 .
     /* Get name of tty connected to fd 0.  Return NULL if not a tty or
        if fd 0 isn't open.  Note that a lot of documentation says that
        getlogin() is based on the controlling terminal---what they
        really mean is "the terminal connected to standard input".  The
        getlogin() implementation of DEC Unix, SunOS, Solaris, HP-UX all
        return NULL if fd 0 has been closed, so this is the compatible
        thing to do.  Note that ttyname(open("/dev/tty")) on those
        systems returns /dev/tty, so that is not a possible solution for
        getlogin().  */
 .
     So basically, closes: #17528
   * Current nis/nss-compat code looks like it handles this right,
     closes: #33197
   * libc6 cannot compensate for broken coding, closes: #42912
   * nprocs is fixed in 2.2, closes: #57101
   * libdb.so.2 does have shlibs now, closes: #39578
   * getcwd now returns NULL in the case shown in this bug report, so there
     is no suprise if the program checks the return correctly, closes:
     #27227
   * Adduser now restarts nscd as needed, closes: #37296
   * getaddrinfo fixes for ipv4/ipv6 fixes this, closes: #58713
   * Programs using libc5/libc6 at the same time via dynamically loading
     libc5 apps from a libc6 apps) simply does not work, closes: #42088
   * getaddrinfo fix, closes: #70012
   * libc-64 was never meant to work right, closes: #53748
   * libNoVersion.so.1 is gone, closes: #37681
   * libc/postinst is file-rc friendly now, closes: #40053
   * libdb2 is no longer a reference for libdb stuff, closes: #61154
   * ld.so/ldconfig now have man pages, closes: #41917
   * Bah, libtricks is old and gone, closes: #39080
   * /var/state/glibc is gone, closes: #39562, #39705
   * glibc no longer includes db/db2, so look for docs in those seperate
     packages, closes: #23547
   * scsi/scsi.h is there, closes: #31502
   * linux/joystick.h is there, closes: #38028
   * db.h is no longer in libc6-dev, closes: #39077, #74945
   * nprocs works on sparc now, closes: #52420
   * ldd now supports libc5 better, closes: #35644
   * Unreproducable, closes: #39582, #25773, #35624, #35123
   * /var/lib/misc/Makefile does not refer to /var/db, closes: #41947
   * llseek is obsolete, use lseek64 now, closes: #20988
   * Actually this looks like an error in the program, closes: #41952
   * Hmm, I would guess that libc6/libc5.4.38 is correct, and libc5.4.17 is
     wrong, close: #21839
   * Fixed in the Before Time, during the Great Long-Long Ago,
     closes: #39585, #34442, #59622, #24652
   * That's all for now...
Files: 
 d3f54e6f043aa7553347577e3309c740 1069 libs required glibc_2.2-6.dsc
 3d6939d2bb7f0a89f02a1e24753e538d 556928 libs required glibc_2.2-6.diff.gz
 e140e92c90f0098b0addb515062068e9 3401834 base required libc6_2.2-6_sparc.deb
 900ce8aeeec887856055b43bce16f5e5 2330376 devel standard libc6-dev_2.2-6_sparc.deb
 300208e4b121c50d5c81d1fc9474a543 971026 devel extra libc6-prof_2.2-6_sparc.deb
 285945a50567f8d255cb2af743b83694 2824524 devel extra libc6-dbg_2.2-6_sparc.deb
 fdec002e9f2388322f68042ceaeb3a4b 850026 devel extra libc6-pic_2.2-6_sparc.deb
 c1951c98aec054b4c386a44b1d903b3a 902314 libs extra libc6-v9_2.2-6_sparc.deb
 746b27236f339608ae15cd316a3fa40b 40946 admin optional nscd_2.2-6_sparc.deb
 b75f644d33a1e4da03762ec621a7ff0c 576598 admin standard locales_2.2-6_all.deb
 b2b2914a04b057d293d1c0f281cc7d1f 2403278 admin extra i18ndata_2.2-6_all.deb
 e0a827139c11f580bf8d2e86d14fc9d4 2500616 doc optional glibc-doc_2.2-6_all.deb
 2d6871f7f7ba478d7bc840abccfe51d7 3055550 base required libc6_2.2-6_i386.deb
 d4f7686f9c53d9eeada0fc0222b685a5 2174674 devel standard libc6-dev_2.2-6_i386.deb
 e23322ffa892918c5400123b3096d7ef 882864 devel extra libc6-prof_2.2-6_i386.deb
 ae37b4c99b6589b8e1531712ab5a40e0 2574304 devel extra libc6-dbg_2.2-6_i386.deb
 c01aa3292df57d381a609ade98b63bda 780074 devel extra libc6-pic_2.2-6_i386.deb
 d012076eac70e9422bd20aad2e1237a8 917116 libs extra libc6-i586_2.2-6_i386.deb
 965a609bac8e3bacf0785e67b474a4f7 916004 libs extra libc6-i686_2.2-6_i386.deb
 4f28bf9425bfb1f020c1193c0c28ba5b 40802 admin optional nscd_2.2-6_i386.deb
 4786d4647af7cdcc6c73eef721f72a2b 3535288 base required libc6_2.2-6_powerpc.deb
 cd97a92d129322beb45bb808ac45b262 2162178 devel standard libc6-dev_2.2-6_powerpc.deb
 318311d43eb65e8b4b0c8926c63b3af9 1052058 devel extra libc6-prof_2.2-6_powerpc.deb
 9ca47cdca8776c6a0f3955f6069e6cfa 2865738 devel extra libc6-dbg_2.2-6_powerpc.deb
 8c258a50112dbd55ce472a9e4d150b0a 866318 devel extra libc6-pic_2.2-6_powerpc.deb
 750e6d7254851571b076285eeaaa0e19 41634 admin optional nscd_2.2-6_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Ben Collins <bcollins@debian.org>

iD8DBQE6PGMJfNc/ZB4E7C0RAhzBAJ92ZIFAtcJA0/Sc2YXoZurzY+HkcQCgorow
WjEpa3xO76P2zwix5wMm18w=
=TRsD
-----END PGP SIGNATURE-----



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Mar 29 05:41:30 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.