pkgsrc-Bugs archive

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

pkg/46074: NetBSD pkgsrc-2011Q4 devel/jam null pointer dereference at hash.c:108 on Darwin-10.8/x86_64 (Snow Leopard)



>Number:         46074
>Category:       pkg
>Synopsis:       NetBSD pkgsrc-2011Q4 devel/jam null pointer dereference at 
>hash.c:108 on Darwin-10.8/x86_64 (Snow Leopard)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 22 19:35:00 +0000 2012
>Originator:     System Administrator
>Release:        Darwin 10.8.0
>Organization:
none
>Environment:
System: Darwin Lambda.Stanford.EDU 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 
7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64

>Description:

A jam0 is built during the build of devel/jam and it core dumps.

[jam/work.x86_64/ftjam-2.5.2] gdb ./jam0
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared 
libraries .. done

(gdb) run
Starting program: jam0
Reading symbols for shared libraries +. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
hashitem (hp=0x1001000e0, data=0x7fff5fbfc7a0, enter=1) at hash.c:108
108             keyval = *b;
(gdb) bt
#0  hashitem (hp=0x1001000e0, data=0x7fff5fbfc7a0, enter=1) at hash.c:108
#1  0x00000001000088a9 in newstr (string=0x0) at newstr.c:52
#2  0x000000010000be4d in addsettings (head=0x0, setflag=0, symbol=0x0, 
value=0x100196cb0) at rules.c:253
#3  0x0000000100002556 in evaluate_rule (rulename=<value temporarily 
unavailable, due to optimizations>, args=0x7fff5fbfc880, result=0x0) at 
compile.c:586
#4  0x00000001000026ff in compile_rule (parse=<value temporarily unavailable, 
due to optimizations>, args=0x7fff5fbfc940, jmp=<value temporarily unavailable, 
due to optimizations>) at compile.c:518
#5  0x0000000100001737 in compile_rules (parse=0x1001951a0, 
args=0x7fff5fbfc940, jmp=0x7fff5fbfc99c) at compile.c:630
#6  0x0000000100008cf7 in parse_file (f=<value temporarily unavailable, due to 
optimizations>) at parse.c:59
#7  0x0000000100005770 in main (argc=<value temporarily unavailable, due to 
optimizations>, argv=<value temporarily unavailable, due to optimizations>, 
arg_environ=<value temporarily unavailable, due to optimizations>) at jam.c:336
(gdb) bt full
#0  hashitem (hp=0x1001000e0, data=0x7fff5fbfc7a0, enter=1) at hash.c:108
        base = <value temporarily unavailable, due to optimizations>
        i = <value temporarily unavailable, due to optimizations>
        keyval = <value temporarily unavailable, due to optimizations>
#1  0x00000001000088a9 in newstr (string=0x0) at newstr.c:52
        str = 0x0
        s = (STRING *) 0x7fff5fbfc7a8
#2  0x000000010000be4d in addsettings (head=0x0, setflag=0, symbol=0x0, 
value=0x100196cb0) at rules.c:253
        v = <value temporarily unavailable, due to optimizations>
#3  0x0000000100002556 in evaluate_rule (rulename=<value temporarily 
unavailable, due to optimizations>, args=0x7fff5fbfc880, result=0x0) at 
compile.c:586
        s = (SETTINGS *) 0x0
        jmp = 0
        i = 0
        l = (LIST *) 0x100100800
        rule = <value temporarily unavailable, due to optimizations>
#4  0x00000001000026ff in compile_rule (parse=<value temporarily unavailable, 
due to optimizations>, args=0x7fff5fbfc940, jmp=<value temporarily unavailable, 
due to optimizations>) at compile.c:518
        nargs = {{
    count = 2,
    list = {0x100196680, 0x100196840, 0x10080f010, 0x0, 0x100196680, 
0x100196780, 0x1001363a0, 0x7fff5fbfc900, 0x10000238e}
  }}
        result = (LIST *) 0x0
        ll = (LIST *) 0x100196780
        l = (LIST *) 0x100196780
        p = <value temporarily unavailable, due to optimizations>
#5  0x0000000100001737 in compile_rules (parse=0x1001951a0, 
args=0x7fff5fbfc940, jmp=0x7fff5fbfc99c) at compile.c:630
        result = <value temporarily unavailable, due to optimizations>
#6  0x0000000100008cf7 in parse_file (f=<value temporarily unavailable, due to 
optimizations>) at parse.c:59
        l = {
  count = 0,
  list = {0x0, 0x100100800, 0x100809560, 0x100809510, 0x1008092e0, 0x10001a350, 
0x0, 0x7fff5fbfc9c0, 0x10000150b}
}
        p = (PARSE *) 0x100195fa0
        jmp = 0
#7  0x0000000100005770 in main (argc=<value temporarily unavailable, due to 
optimizations>, argv=<value temporarily unavailable, due to optimizations>, 
arg_environ=<value temporarily unavailable, due to optimizations>) at jam.c:336
        n = 0
        num_targets = 0
        s = 0x0
        optv = {{
    flag = 0 '\0',
    val = 0x0
  } <repeats 256 times>}
        targets = {0x0 <repeats 256 times>}
        all = 0x10000dda0 "all"
        status = <value temporarily unavailable, due to optimizations>

>How-To-Repeat:
        Build devel/jam on Snow Leopard.
>Fix:
        Unknown.

>Unformatted:
 >X-send-pr-version: 3.113.1
 


Home | Main Index | Thread Index | Old Index