some errors to run programs build with uClibc-master

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sat Aug 8 19:13:58 UTC 2009


2009/8/7 Stephan Raue <mailinglists at openelec.tv>:
> Hi Bernhard
>
> does this all help you or do you need more informations?

Can you turn on SUPPORT_LD_DEBUG_EARLY and run the dynamic binary with
LD_DEBUG=all
>
>
> Stephan
>
>
> Zitat von Stephan Raue <mailinglists at openelec.tv>:
>
>> Am 05.08.2009 13:33, schrieb Bernhard Reutner-Fischer:
>>>
>>> 2009/8/4 Stephan Raue<mailinglists at openelec.tv>:
>>>
>>>> Am 03.08.2009 11:29, schrieb Bernhard Reutner-Fischer:
>>>>
>>>> 2009/8/3 Stephan Raue<mailinglists at openelec.tv>:
>>>>
>>>>
>>>>
>>>> - i have busybox-1.14.2 (and busybox-master) build statically for
>>>> initramfs
>>>> and shared für system. statically build busybox produces a segfault,
>>>> when i
>>>> am building busybox shared it works.
>>>>
>>>>
>>>> Test a simple static binary, something like:
>>>> #include<unistd.h>
>>>> int main(void) {
>>>>        char *msg = "works\n";
>>>>        return write(STDOUT_FILENO, msg, 6) != 6;
>>>> }
>>>>
>>>> If that static binary also segfaults, then provide a gdb backtrace.
>>>>
>>>>
>>>> Backtrace of this test:
>>>>
>>>> Program received signal SIGSERV, Segmentation fault.
>>>> 0x00000000 in ?? ()
>>>>
>>>> (gdb) bt
>>>> #0  0x00000000 in ?? ()
>>>> #1 0x080483b1 in ?? ()
>>>> #2  0x00000000 in ?? ()
>>>>
>>>
>>> Please provide a backtrace with a non-stripped version (built with -g,
>>> or -g3 -ggdb3).
>>>
>> (gdb) bt
>> #0  0x00000000 in ?? ()
>> #1  0x080483b5 in __uClibc_main ()
>> #2  0x00000000 in ?? ()
>>
>>> Can you also try whether it runs if you build everything with -O0?
>>>
>> the sam error and backtrace
>>>
>>> (which version of gcc and binutils are you using, again)?
>>>
>>>
>> gcc-4.4.1
>> binutils-2.19.51.0.1
>>>>
>>>> /usr/bin/gst-launch-0.10: symbol 'v4lconvert_needs_conversion': can't
>>>> resolve symbol in lib '/usr/lib/gstreamer-0.10/libgstvideo4linux2.so'.
>>>>
>>>
>>> Is that so stripped? If so, with which strip?
>>>
>>>
>> yes, with strip from toolchains binutils-2.19.51.0.1
>>
>> many many thanks
>>
>> Stephan
>>
>> --
>>              ### OpenELEC.tv ###
>> The free and open Mediacenter Distribution 4 you
>>             http://www.openelec.tv
>>
>> _______________________________________________
>> uClibc mailing list
>> uClibc at uclibc.org
>> http://lists.busybox.net/mailman/listinfo/uclibc
>>
>>
>
>
>
> --
>              ### OpenELEC.tv ###
> The free and open Mediacenter Distribution 4 you
>              http://www.openelec.tv
>
>
>


More information about the uClibc mailing list