Got "segmentation fault " while trying to run dbus-daemon
edison_lin at gemtek.com.tw
Tue May 19 02:36:52 PDT 2009
This problem has been resolved. This a a linkage problem for dbus-daemon
only because my version of linker seems to not accept "--gc-section" option.
No more SIGSEGV after removing this option from Makefile for dbus-daemon.
----- Original Message -----
From: "Edison_lin-林俊翰" <edison_lin at gemtek.com.tw>
To: "Ville M. Vainio" <vivainio at gmail.com>
Cc: <dbus at lists.freedesktop.org>
Sent: Monday, May 18, 2009 9:52 PM
Subject: Re: Got "segmentation fault " while trying to run dbus-daemon
> Thanks for your help, the attached is the result after applying strace.
> Is it possible to be a library linkage problem ? Because even if I remove
> all content in the main(), the process still receives SIGSEGV.
> p.s. hello.strace is just a simple program which only prints a string for
> comparison pusrpose.
> Edison Lin
> ----- Original Message -----
> From: "Ville M. Vainio" <vivainio at gmail.com>
> To: "Edison_Lin-林俊翰" <Edison_Lin at gemtek.com.tw>
> Cc: <dbus at lists.freedesktop.org>
> Sent: Monday, May 18, 2009 6:28 PM
> Subject: Re: Got "segmentation fault " while trying to run dbus-daemon
>> 2009/5/18 Edison_lin-林俊翰 <edison_lin at gemtek.com.tw>:
>>> dbus-daemon, the console shows "segmentation fault". The strange thing
>>> I've tried to add a getchar() or printf() in the very beginning of the
>>> main() of dbus-daemon to see what's going on, but there is nothing
>>> It works like it run into a trap before entering the main() ?! The
>>> gdb debugging shows that the SIGSEGV is received. Please give me some
>>> me if you have any idea ! Thanks a lot !
>> Try running it on strace and attach info.
>> Ville M. Vainio
More information about the dbus