dbus-daemon segfault under Solaris

Pavel Strashkin pavel.strashkin at gmail.com
Wed Jan 5 06:18:58 PST 2011


Does anybody got this email with the patch? Any comments?

2010/12/24 Pavel Strashkin <pavel.strashkin at gmail.com>:
> I've attached the patch which fixes some issues related to Solaris platform:
>
> - [remove duplicated code], cleanup
>
> - [use -D_REENTRANT flag when Solaris detected], makes standard
> functions be reentrant and errno thread-safe
>
> - [don't use --gc-sections when Solaris detected], fix for SEGFAULT
>
> - [use -D_XOPEN_SOURCE=500 flag when Solaris detected], this flag
> enables required members of struct msghdr when UNIX FD passing is
> possible
>
> 2010/12/20 Thiago Macieira <thiago at kde.org>:
>> On Monday, 20 de December de 2010 14:40:49 Pavel Strashkin wrote:
>>> Program received signal SIGSEGV, Segmentation fault.
>>> 0x00000000 in ?? ()
>>> (gdb) bt
>>> #0  0x00000000 in ?? ()
>>> #1  0xfed71680 in ?? () from /lib/libgcc_s.so.1
>>> #2  0xfed713d5 in ?? () from /lib/libgcc_s.so.1
>>> #3  0xfef863c6 in call_init () from /lib/ld.so.1
>>> #4  0xfef852cb in setup () from /lib/ld.so.1
>>> #5  0xfef9326c in _setup () from /lib/ld.so.1
>>> #6  0xfef79694 in _rt_boot () from /lib/ld.so.1
>>> #7  0x08047538 in ?? ()
>>> #8  0x08047648 in ?? ()
>>> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
>>
>> Given the evidence above, I would guess that gc-sections removed the .init
>> section from the library.
>>
>> Looking at the map file produced by the linker on Linux, I don't see anything
>> coming from libdbus-1 in the init section. They come all from gcc itself.
>>
>> So I guess it's safe to remove the gc-sections option on Solaris, and probably
>> everywhere where GNU ld isn't used.
>>
>> --
>> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>>  Senior Product Manager - Nokia, Qt Development Frameworks
>>      PGP/GPG: 0x6EF45358; fingerprint:
>>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>>
>> _______________________________________________
>> dbus mailing list
>> dbus at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus
>>
>>
>


More information about the dbus mailing list