pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39012: boehm-gc coredumps on GC_INIT under hpcmips (mipsel)

>Number:         39012
>Category:       pkg
>Synopsis:       boehm-gc coredumps on GC_INIT under hpcmips (mipsel)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 22 06:10:00 +0000 2008
>Originator:     Ben Wong
>Release:        NetBSD 4.0
System: NetBSD 4.0 NetBSD 4.0 (GENERIC) #0: Sat Dec 15 
22:00:07 PST 2007 
Architecture: mipsel
Machine: hpcmips

Any C program that uses the binary pkg build of the Boehm garbage
collection dumps core. I believe this is a problem with the package,
as I have, in the past, compiled boehm-gc by hand and used it with no
problems on my NetBSD/hpcmips (mipsel) machine.


Install boehm-gc binary package using 'pkg_add -v boehm-gc'

Compile this program and watch it core dump.

    #include <stdlib.h>
    #include <gc.h>

    main(int argc, char *argv[], char **envp)

    /*  Compile with:

    gcc -g -R/usr/pkg/lib -I/usr/pkg/include -I/usr/pkg/include/gc 
-L/usr/pkg/lib gctest.c -lgc


Here is the gdb backtrace:

    Program received signal SIGSEGV, Segmentation fault.
    0x7df4549c in GC_find_limit_with_bound () from /usr/pkg/lib/
    (gdb) bt
    #0  0x7df4549c in GC_find_limit_with_bound () from /usr/pkg/lib/
    #1  0x7df45658 in GC_init_netbsd_elf () from /usr/pkg/lib/
    #2  0x7df442c8 in GC_init_inner () from /usr/pkg/lib/
    #3  0x00400adc in main (argc=1, argv=0x7fffdd34, envp=0x7fffdd3c) at 


None known. Probably the package is just being compiled with the wrong options.


Home | Main Index | Thread Index | Old Index