bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vfprintf bug


From: Pete Sperzel
Subject: vfprintf bug
Date: Tue, 3 Oct 2000 17:27:44 -0500 (CDT)

I have found a bug preesumably in the vfprintf code which presents iteself
when an X server generates warning messages.

To reproduce:

On a linux machine (I used Linux ebba 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 
i686 unknown) and assuming a csh variant:

>setenv XKEYSYMDB /tmp/junk (ie a non-existent location)
>ddd   (run ddd or any other X application).


this will seg fault.

my ddd:

GNU DDD 3.2.1 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universitaet Braunschweig, Germany.
Copyright (C) 1999-2000 Universitaet Passau, Germany



Here's a stack trace from my own application that fails in the same place:

Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libstdc++-libc6.1-1.so.2...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /lib/libnss_nisplus.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libnss_nis.so.2...done.

#0  0x400c579d in buffered_vfprintf (s=0x8655840, format=0x85512c5 "%sWarning: 
%s\n", args=0xbfffe610)
    at vfprintf.c:1767
1767    vfprintf.c: No such file or directory.
(gdb) where
#0  0x400c579d in buffered_vfprintf (s=0x8655840, format=0x85512c5 "%sWarning: 
%s\n", args=0xbfffe610)
    at vfprintf.c:1767
#1  0x400c0986 in _IO_vfprintf (s=0x8655840, format=0x85512c5 "%sWarning: 
%s\n", 
ap=0xbfffe610) at vfprintf.c:1029
#2  0x400c9047 in fprintf (stream=0x8655840, format=0x85512c5 "%sWarning: 
%s\n") 
at fprintf.c:32
#3  0x8454a60 in _XtDefaultWarning () at ststrg__.cpp:774
#4  0x8454acc in XtWarning () at ststrg__.cpp:774
#5  0x84547b3 in DefaultMsg () at ststrg__.cpp:774
#6  0x8454821 in _XtDefaultWarningMsg () at ststrg__.cpp:774
#7  0x84548f3 in XtAppWarningMsg () at ststrg__.cpp:774
#8  0x844effa in XtDisplayStringConversionWarning () at ststrg__.cpp:774
#9  0x8434c88 in CvtStringToVirtualBinding () at ststrg__.cpp:774
#10 0x844e58a in CallConverter () at ststrg__.cpp:774
#11 0x844e8d0 in XtCallConverter () at ststrg__.cpp:774
#12 0x8434d5a in FillBindingsFromDB () at ststrg__.cpp:774
#13 0x8434f93 in _XmVirtKeysInitialize () at ststrg__.cpp:774
#14 0x843ac6f in DisplayInitialize () at ststrg__.cpp:774
#15 0x8451e91 in CallInitialize () at ststrg__.cpp:774
#16 0x8452285 in xtCreate () at ststrg__.cpp:774
#17 0x845292f in _XtAppCreateShell () at ststrg__.cpp:774
#18 0x8452987 in XtAppCreateShell () at ststrg__.cpp:774
#19 0x843b51f in GetDisplay () at ststrg__.cpp:774
---Type <return> to continue, or q <return> to quit--- 
#20 0x843b56d in XmGetXmDisplay () at ststrg__.cpp:774
#21 0x843c1e0 in XmGetXmScreen () at ststrg__.cpp:774
#22 0x843d404 in GetShellDesktopParent () at ststrg__.cpp:774
#23 0x843d427 in SecondaryObjectCreate () at ststrg__.cpp:774
#24 0x843d55e in InitializePrehook () at ststrg__.cpp:774
#25 0x8434283 in InitializeRootWrapper () at ststrg__.cpp:774
#26 0x8451e91 in CallInitialize () at ststrg__.cpp:774
#27 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#28 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#29 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#30 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#31 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#32 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#33 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#34 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#35 0x8451e64 in CallInitialize () at ststrg__.cpp:774
#36 0x8452285 in xtCreate () at ststrg__.cpp:774
#37 0x845292f in _XtAppCreateShell () at ststrg__.cpp:774
#38 0x8452987 in XtAppCreateShell () at ststrg__.cpp:774
#39 0x804cb25 in maXAppInitialize (argc=0xbffff970, argv=0xbffff9b4, 
fallbacks=0x0) at mainvx.cpp:445
#40 0x804cde8 in main (argc=1, argv=0xbffff9b4) at mainvx.cpp:628



Here are my libs:

        libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 
(0x4001c000)
        libm.so.6 => /lib/libm.so.6 (0x4005e000)
        libc.so.6 => /lib/libc.so.6 (0x4007b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]