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
>Organization:
        
>Environment:
        
        
System: NetBSD quince.wongs.net 4.0 NetBSD 4.0 (GENERIC) #0: Sat Dec 15 
22:00:07 PST 2007 
builds@wb46:/home/builds/ab/netbsd-4-0-RELEASE/hpcmips/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/hpcmips/compile/GENERIC
 hpcmips
Architecture: mipsel
Machine: hpcmips
>Description:

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.


>How-To-Repeat:

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>

    int
    main(int argc, char *argv[], char **envp)
    {
        GC_INIT();
        exit(0);
    }

    /*  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/libgc.so.1
    (gdb) bt
    #0  0x7df4549c in GC_find_limit_with_bound () from /usr/pkg/lib/libgc.so.1
    #1  0x7df45658 in GC_init_netbsd_elf () from /usr/pkg/lib/libgc.so.1
    #2  0x7df442c8 in GC_init_inner () from /usr/pkg/lib/libgc.so.1
    #3  0x00400adc in main (argc=1, argv=0x7fffdd34, envp=0x7fffdd3c) at 
gctest.c:7
    (gdb) 




>Fix:

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

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index