Bug 25029 - glibc 2.2.1-3 causes kdm to segfault
Summary: glibc 2.2.1-3 causes kdm to segfault
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Aaron Brown
URL:
Whiteboard: Florence RC-1
: 26297 26456 27054 28308 28429 28431 29204 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-26 12:35 UTC by Tim Waugh
Modified: 2016-11-24 15:05 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-02-11 16:23:21 UTC
Embargoed:


Attachments (Terms of Use)
kdm-log (77.53 KB, text/plain)
2001-01-26 20:39 UTC, Tim Waugh
no flags Details

Description Tim Waugh 2001-01-26 12:35:27 UTC
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 1024 (LWP 817)]
0x401faa19 in __wait4 () from /lib/libc.so.6
#0  0x401faa19 in __wait4 () from /lib/libc.so.6
#1  0x4026508c in __DTOR_END__ () from /lib/libc.so.6
#2  0x405d55c8 in KCrash::defaultCrashHandler () from
/usr/lib/libkdecore.so.3

#3  <signal handler called>
#4  __errno_location () at errno.c:25
#5  0x40762969 in QFile::open () from /usr/lib/qt-2.2.3/lib/libqt.so.2
#6  0x40569721 in KConfigINIBackEnd::parseConfigFiles ()
   from /usr/lib/libkdecore.so.3
#7  0x4054c43e in KConfigBase::parseConfigFiles ()
   from /usr/lib/libkdecore.so.3

#8  0x40562524 in KSimpleConfig::KSimpleConfig () from
/usr/lib/libkdecore.so.3

#9  0x40575f9d in KApplication::applyGUIStyle () from
/usr/lib/libkdecore.so.3

#10 0x40577e37 in KApplication::kdisplaySetStyle ()
   from /usr/lib/libkdecore.so.3
#11 0x40572bf7 in KApplication::init () from /usr/lib/libkdecore.so.3
#12 0x40572894 in KApplication::KApplication () from
/usr/lib/libkdecore.so.3

#13 0x4027eb39 in GreetUser (d2=0x8061d00, dpy2=0xbffff7f8,
verify2=0x805b620, 

    greet2=0x805b604, dlfuncs=0x805ac00) at kgreeter.cpp:846
#14 0x08052671 in strcpy () at ../sysdeps/generic/strcpy.c:31
#15 0x0804e98b in strcpy () at ../sysdeps/generic/strcpy.c:31
#16 0x0804e6e6 in strcpy () at ../sysdeps/generic/strcpy.c:31
#17 0x0804f138 in strcpy () at ../sysdeps/generic/strcpy.c:31
#18 0x0804e700 in strcpy () at ../sysdeps/generic/strcpy.c:31
#19 0x0804dd6d in strcpy () at ../sysdeps/generic/strcpy.c:31
#20 0x4015ef11 in __libc_start_main (main=0x804dba0 <strcpy+13820>, argc=2, 
    ubp_av=0xbffffd8c, init=0x8049c7c <_init>, fini=0x805659c <_fini>, 
    rtld_fini=0x4000e214 <_dl_fini>, stack_end=0xbffffd84)
    at ../sysdeps/generic/libc-start.c:129

Comment 1 Tim Waugh 2001-01-26 18:36:12 UTC
Managed to get some more symbols, if it's helpful.

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 1024 (LWP 23223)]
0x401fba19 in __wait4 () from /lib/libc.so.6
#0  0x401fba19 in __wait4 () from /lib/libc.so.6
#1  0x4026608c in __DTOR_END__ () from /lib/libc.so.6
#2  0x405d75c8 in KCrash::defaultCrashHandler (signal=11) at kcrash.cpp:191
#3  <signal handler called>
#4  __errno_location () at errno.c:25
#5  0x407a7ab3 in QFile::open (this=0xbfffe718, m=1)
    at tools/qfile_unix.cpp:252
#6  0x4056b721 in KConfigINIBackEnd::parseConfigFiles (this=0x809d650)
    at kconfigbackend.cpp:181
#7  0x4054e43e in KConfigBase::parseConfigFiles (this=0xbffff018)
    at kconfigbase.cpp:1291
#8  0x40564524 in KSimpleConfig::KSimpleConfig (this=0xbffff018, 
    pFileName=@0x809522c, bReadOnly=false) at ksimpleconfig.cpp:50
#9  0x40577f9d in KApplication::applyGUIStyle (this=0xbffff378)
    at kapp.cpp:1315
#10 0x40579e37 in KApplication::kdisplaySetStyle (this=0xbffff378)
    at kapp.cpp:1586
#11 0x40574bf7 in KApplication::init (this=0xbffff378, GUIenabled=true)
    at kapp.cpp:658
#12 0x40574894 in KApplication::KApplication (this=0xbffff378, 
    allowStyles=true, GUIenabled=true) at kapp.cpp:571

#13 0x4027fb39 in GreetUser (d2=0x8061d00, dpy2=0xbffff538, verify2=0x805b620, 

    greet2=0x805b604, dlfuncs=0x805ac00) at kgreeter.cpp:846
#14 0x08052671 in strcpy () at ../sysdeps/generic/strcpy.c:31
#15 0x0804e98b in strcpy () at ../sysdeps/generic/strcpy.c:31
#16 0x0804e6e6 in strcpy () at ../sysdeps/generic/strcpy.c:31
#17 0x0804f138 in strcpy () at ../sysdeps/generic/strcpy.c:31
#18 0x0804e700 in strcpy () at ../sysdeps/generic/strcpy.c:31
#19 0x0804dd6d in strcpy () at ../sysdeps/generic/strcpy.c:31
#20 0x4015ff11 in __libc_start_main (main=0x804dba0 <strcpy+13820>, argc=1, 
    ubp_av=0xbffffacc, init=0x8049c7c <_init>, fini=0x805659c <_fini>, 
    rtld_fini=0x4000e214 <_dl_fini>, stack_end=0xbffffac4)
    at ../sysdeps/generic/libc-start.c:129


Comment 2 Tim Waugh 2001-01-26 20:38:46 UTC
If I do 'touch /root/.kde/share/config/kstylerc', the problem goes away.

I'll attach strace output, obtained by:

# kdm; A=$(($(ps axf | grep [k]dm | head -1 | awk '{ print $1 }') + 12)); sleep
3; strace -fp $A 2>&1 | tee /tmp/kdm-log

(for some reason, 'strace -fp kdm' just gave me a gray stipple screen and
stopped at select()..)

Comment 3 Tim Waugh 2001-01-26 20:39:35 UTC
Created attachment 8329 [details]
kdm-log

Comment 4 Bernhard Rosenkraenzer 2001-01-29 20:08:44 UTC
This is a glibc problem - install glibc 2.2.1-2 and it'll work perfectly.


Comment 5 Bernhard Rosenkraenzer 2001-01-29 20:10:34 UTC
*** Bug 25180 has been marked as a duplicate of this bug. ***

Comment 6 Bernhard Rosenkraenzer 2001-01-29 21:40:53 UTC
A workaround is compiling kdebase with --disable-greet-lib, so I guess the 
problem is in dlopen().



Comment 7 Tim Waugh 2001-01-29 23:09:13 UTC
With glibc-2.2.1-3.i386 instead of glibc-2.2.1-3.i686, the problem goes away.  
So it's specific to the i686 glibc.


Comment 8 Glen Foster 2001-01-30 00:01:33 UTC
This defect is considered MUST-FIX for Florence Release-Candidate #1

Comment 9 Bernhard Rosenkraenzer 2001-02-06 17:06:37 UTC
*** Bug 26297 has been marked as a duplicate of this bug. ***

Comment 10 Bernhard Rosenkraenzer 2001-02-07 16:22:23 UTC
*** Bug 26456 has been marked as a duplicate of this bug. ***

Comment 11 Bernhard Rosenkraenzer 2001-02-11 16:23:18 UTC
*** Bug 27054 has been marked as a duplicate of this bug. ***

Comment 12 Jakub Jelinek 2001-02-12 09:30:54 UTC
glibc-2.2.1-7 makes sure __pthread_initialize_minimal is called even when
dlopening a library linked against -lpthread from program not linked against
it.
No matter what, this is playing with fire and either the libraries should
not be linked against -lpthread (there is actually no reason in this case,
I've provided patches for Mesa) or kdm should be linked against -lpthread.

Comment 13 Bernhard Rosenkraenzer 2001-02-20 17:50:17 UTC
*** Bug 28429 has been marked as a duplicate of this bug. ***

Comment 14 Bernhard Rosenkraenzer 2001-02-20 17:54:08 UTC
*** Bug 28431 has been marked as a duplicate of this bug. ***

Comment 15 Bernhard Rosenkraenzer 2001-02-20 17:56:12 UTC
*** Bug 28308 has been marked as a duplicate of this bug. ***

Comment 16 Bernhard Rosenkraenzer 2001-02-24 19:23:37 UTC
*** Bug 29204 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.