Re: [Gc] trouble with gc-7.2d compiling against musl libc
ivmai at mail.ru
Tue Jan 8 02:31:12 PST 2013
7 Jan 2013, 11:23 +01:00 John Spencer <maillist-boehm at barfooze.de>:
>On 01/06/2013 03:34 PM, Ivan Maidanski wrote:
>> Hi John,
>> Does single-threaded gc pass all tests? If no, it's better to fix the problem in the single-threaded gc first (--enable-threads=none).
>i'm using your git repo (biting the bullet and installed libtool to make
>the autogen stuff happy ...)
>CFLAGS="-DNO_SIGCONTEXT_H -DNO_GETCONTEXT" ./configure
>--enable-threads=none --enable-gc-assertions --prefix=
>make -j9 && make check
>make: Entering directory `/root/GC/bdwgc'
>Assertion failure: finalize.c:801
>Switched to incremental mode
>Emulating dirty bits with mprotect/signals
>Unexpected bus error or segmentation fault
>3 of 10 tests failed
>Please report to gc at linux.hpl.hp.com
>> Also, please check GC assertion checking on (--enable-gc-assertions).
>> Воскресенье, 6 января 2013, 13:00 +01:00 от John Spencer< maillist-boehm at barfooze.de >:
>>> Hi Ivan,
>>> On 01/06/2013 11:30 AM, Ivan Maidanski wrote:
>>>> Use -DNO_SIGCONTEXT_H instead (I've added this macro recognition to master branch for now).
>>>> I don't know whether we still need inclusion of sigcontext.h for any target.
>>> thanks, i will try.
>this does not work:
>gcc -fexceptions -Wall -Wextra -DNO_SIGCONTEXT_H -fno-strict-aliasing -o
>.libs/cordtest cordtest.o ./.libs/libgc.so ./.libs/libcord.so
>./.libs/libgc.so: undefined reference to `getcontext'
>it still needs -DNO_GETCONTEXT in order to make that missing ref go away.
Yes, these seem to be independent.
>>>> which algorithm is used for detection of main stack base in your case? which macro is defined - STACKBOTTOM, HEURISTIC1, LINUX_STACKBOTTOM?
>>> out of these 3, only LINUX_STACKBOTTOM seems to be defined (i added
>>> #warnings into os_dep.c in order to find out)
>> Seems to be correct.
>> Does GC_get_main_stack_base return reasonable value?
>how can i check ?
What is the difference between this value and address of any local var of main() function? (It should not be bigger than several K.) Is this value bigger than that local var address? (stack grows down on your target, right?)
>>>>> in any case, i'd welcome advice on how to workaround this issue, so that
>>>>> i get a working libgc.so in order to use inkscape.
>>>> Thanks for reporting the problem, I'll definitely fix the gc source if we understand how to do it correctly. (Typically, first I apply the fixes to master branch and, then, cherry-pick to 7.2 release.)
>>> thank you. is there anything else i can help with in order to get this
>>> fixed ?
>> Also, static data roots should be checked (GC_static_roots, all global/static variables should be within one of the regions).
>how can i check ? List all root ranges.
Compile with linker map output, it will show addresses of global variables. These addresses (excluding read-only data) must be inside of a root range.
>Gc mailing list
>Gc at linux.hpl.hp.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gc