NetBSD Problem Report #46074
From y591jht02@sneakemail.com Wed Feb 22 19:31:14 2012
Return-Path: <y591jht02@sneakemail.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 4813E63BCEF
for <gnats-bugs@gnats.netbsd.org>; Wed, 22 Feb 2012 19:31:14 +0000 (UTC)
Message-Id: <7026-1329935472-91342@sneakemail.com>
Date: Wed, 22 Feb 2012 18:31:11 +0000
From: y591jht02@sneakemail.com
To: gnats-bugs@gnats.netbsd.org
Subject: 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: schmonz
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 22 19:35:00 +0000 2012
>Last-Modified: Thu Feb 23 00:41:38 +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.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->schmonz
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 23 Feb 2012 00:41:38 +0000
Responsible-Changed-Why:
Over to maintainer (if you can't handle it, please assign it to darwin-pkg-people, thanks)
>Unformatted:
>X-send-pr-version: 3.113.1
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.