NetBSD-Bugs archive

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

bin/44235: lint1 fails when compiling mesa for sparc

>Number:         44235
>Category:       bin
>Synopsis:       lint1 fails when compiling mesa for sparc
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 15 14:50:00 +0000 2010
>Originator:     Martin Husemann
>Release:        NetBSD 5.9.41
The NetBSD Foundation, Inc.
#23: Sun Nov 21 11:25:34 CET 2010
Architecture: i386
Machine: i386

Trying to run a -x with -m sparc reproducable fails for me with a
lint1 core dump. Interestingly this core is called 
./tools/lint1/lint1 ./external/rg/lib/libOSMesa/sparc--netbsdelf.core
(compare the prefix passed to the lint build - the lint1 is missing).

The failure happens here:

Core was generated by `sparc--netbsdelf'.
Program terminated with signal 11, Segmentation fault.
#0  0x08061f81 in nextinit (brace=0)
    at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/init.c:420
420                     if (initstk->i_type == NULL &&
(gdb) bt
#0  0x08061f81 in nextinit (brace=0)
    at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/init.c:420
#1  0x0806222a in mkinit (tn=0xbb784000)
    at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/init.c:538
#2  0x0804ae9b in yyparse ()
    at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/cgram.y:1171
#3  0x08051b74 in main (argc=2, argv=0xbfbfe510)
    at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/main1.c:222
(gdb) print *initstk
$1 = {i_type = 0x0, i_subt = 0xbb76fdc4, i_brace = 0, i_nolimit = 0, 
  i_namedmem = 0, i_mem = 0x0, i_cnt = 1, i_nxt = 0x0}

now 0xbb76fdc4 is a bad index into the types array (and issclt() does no
index checking). No idea where that bogus number comes from.

Any -m sparc -x will do for me, build host is netbsd-5 on i386.

yes please.

Home | Main Index | Thread Index | Old Index