This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug on alpha. already fixed?
- To: Martin Vogt <mvogt at aixd1 dot rhrk dot uni-kl dot de>, egcs-bugs at cygnus dot com
- Subject: Re: bug on alpha. already fixed?
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sun, 17 Jan 1999 20:55:24 -0800
- References: <19990113114150.A394214@aixd1.rhrk.uni-kl.de>
- Reply-To: Richard Henderson <rth at cygnus dot com>
> Success :
>
> g++ -I/opt/kde/include -I/opt/qt/include -I/usr/X11R6/include -L/opt/kde/lib
> -L/opt/qt/lib -L/usr/X11R6/lib test.cpp -lkfile -lkfm -lkdeui -lkdecore -lqt
> -lXext -lX11 -lpthread
>
>
> SEGFAULT :
>
> g++ -I/opt/kde/include -I/opt/qt/include -I/usr/X11R6/include -L/opt/kde/lib
> -L/opt/qt/lib -L/usr/X11R6/lib test.cpp -lpthread -lkfile -lkfm -lkdeui
> -lkdecore -lqt -lXext -lX11
>
>
> The only difference is the linking order of the pthread library.
It seems unlikely that this is a compiler bug.
It is probably something to do with libraries. Note that shared
library initialization happens in reverse order of declaration,
so in the later case, libpthread may not have been initialized
before KDE does something with it.
If true, this would be a bug in KDE, since it should have been
linked against the libraries it requires to ensure a correct
partial ordering of initialization.
You'll have to stick a dubugger on this to find out what's up.
r~