NetBSD-Bugs archive

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

toolchain/51237: $TOOLDIR/bin/...-install crashes



>Number:         51237
>Category:       toolchain
>Synopsis:       $TOOLDIR/bin/...-install crashes
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 13 13:15:00 +0000 2016
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.30
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 7.99.30 NetBSD 7.99.30 (MODULAR) #521: Wed Jun 8 18:15:20 CEST 2016 martin%thirdstage.duskware.de@localhost:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

When building natively on sparc64 with ASLR enabled, I get random crashes
from install:

Core was generated by `sparc64--netbsd-'.
Program terminated with signal SIGSEGV, Segmentation fault.
(gdb) bt
#0  0x000000001cb06cc8 in ?? ()
#1  0xffffffffe32cc670 in _nsloadmod (source=0xffffffffe31120d8 "nis", 
    reg_fn=0x0) at /usr/src/lib/libc/net/nsdispatch.c:319
#2  0xffffffffe32cca28 in _nsdbtaddsrc (dbt=dbt@entry=0xffffffffe34af660, 
    src=0xffffffffe34af650) at /usr/src/lib/libc/net/nsdispatch.c:395
#3  0xffffffffe32c9d20 in _nsaddsrctomap (elem=0xffffffffe31120d8 "nis")
    at /usr/src/lib/libc/net/nsparser.y:185
#4  0xffffffffe32ca4a0 in _nsyyparse () at /usr/src/lib/libc/net/nsparser.y:119
#5  0xffffffffe32cc8ec in _nsconfigure ()
    at /usr/src/lib/libc/net/nsdispatch.c:540
#6  0xffffffffe32cd1e8 in _nsdispatch (retval=retval@entry=0x0, 
    disp_tab=0xffffffffe348fab0, database=0xffffffffe336eca0 "group", 
    method=0xffffffffe336ee50 "endgrent", 
    defaults=0xffffffffe348df98 <__nsdefaultcompat_forceall>)
    at /usr/src/lib/libc/net/nsdispatch.c:644
#7  0xffffffffe330971c in _endgrent () at /usr/src/lib/libc/gen/getgrent.c:1913
#8  0x000000000010b91c in __nbcompat_pwcache_groupdb (
    a_setgroupent=0x107300 <gi_setgroupent>, 
    a_endgrent=0x10735c <gi_endgrent>, a_getgrnam=0x1071a4 <gi_getgrnam>, 
    a_getgrgid=0x10724c <gi_getgrgid>)
    at /usr/src/tools/compat/../../lib/libc/gen/pwcache.c:569
#9  0x000000000010711c in setup_getid (dir=0xfffffffffffcd6ea "/usr/src/etc")
    at /usr/src/usr.sbin/mtree/getid.c:137
#10 0x0000000000103594 in main (argc=14, argv=0xfffffffffffcb2f8)
    at /usr/src/tools/binstall/../../usr.bin/xinstall/xinstall.c:250
(gdb) up
#1  0xffffffffe32cc670 in _nsloadmod (source=0xffffffffe31120d8 "nis", 
    reg_fn=0x0) at /usr/src/lib/libc/net/nsdispatch.c:319
319                     mod.handle = dlopen(buf, RTLD_LOCAL | RTLD_LAZY);
(gdb) info reg
g0             0x0      0
g1             0xffffffffe32cc668       -483604888
g2             0x0      0
g3             0x7fffffff       2147483647
g4             0x0      0
g5             0xc      12
g6             0x206e69730a     139291357962
g7             0xffffffffe3a441c0       -475774528
o0             0xfffffffffffc9ca8       -222040
o1             0x201    513
o2             0xffffffffe33692b8       -482962760
o3             0xffffffffe31120e0       -485416736
o4             0x0      0
o5             0xffffffffe31120d8       -485416744
sp             0xfffffffffffc93d1       0xfffffffffffc93d1
o7             0xffffffffe32cc668       -483604888
l0             0x0      0
l1             0xfffffffefdc15154       -4332629676
l2             0xfffffffffffffffd       -3
l3             0x3      3
l4             0x0      0
l5             0xffffffffe34a9efc       -481648900
l6             0xffffffffe34aa040       -481648576
l7             0xffffffffe34922c0       -481746240
i0             0xffffffffe31120d8       -485416744
i1             0xffffffffe311c068       -485375896
i2             0x0      0
i3             0xfffffffffffc9ca8       -222040
i4             0xffffffffe34b4498       -481606504
i5             0xfffffffffffc9c80       -222080
fp             0xfffffffffffc98b1       0xfffffffffffc98b1
i7             0xffffffffe32cca20       -483603936
pc             0xffffffffe32cc670       0xffffffffe32cc670 <_nsloadmod+272>
npc            0xffffffffe32cc674       0xffffffffe32cc674 <_nsloadmod+276>
state          0x9982008203     659311067651
fsr            0x0      [ ]
fprs           <unavailable>
y              0x0      0
cwp            0x3      3
pstate         0x82     [ IE #7 ]
asi            0x82     130
ccr            0x99     153



>How-To-Repeat:
On -current, run build.sh

>Fix:
n/a



Home | Main Index | Thread Index | Old Index