NetBSD-Bugs archive

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

Re: bin/44235: lint1 fails when compiling mesa for sparc



The following reply was made to PR bin/44235; it has been noted by GNATS.

From: "Valeriy E. Ushakov" <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/44235: lint1 fails when compiling mesa for sparc
Date: Sat, 15 Jan 2011 02:18:37 +0300

 Some data points.
 
 I tried to reproduce this under linux (hoping to track it down with
 valgrind) and can't.  I was building under amd64, but with -m32.
 There's no crash and valgrind of the offending lint1 detects nothing.
 
 Under netbsd lint1 emits the following warning before the crash: 
 
 /usr/xsrc/external/mit/MesaLib/dist/src/mesa/main/enums.c(1930): {}-enclosed 
initializer required [181]
 
 I don't see that warning building under linux.
 
 Under netbsd when I poke around with gdb I see:
 
 Program received signal SIGSEGV, Segmentation fault.
 0x08058139 in cconv (tn=0xbb891000)
     at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/tree.c:745
 745             if (tn->tn_type->t_tspec == ARRAY) {
 (gdb) bt
 #0  0x08058139 in cconv (tn=0xbb891000)
     at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/tree.c:745
 #1  0x0806267b in mkinit (tn=0xbb891000)
     at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/init.c:552
 #2  0x0804b10a in yyparse ()
     at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/cgram.y:1171
 #3  0x08051f2c in main (argc=2, argv=0xbfbfe858)
     at /usr/src/tools/lint1/../../usr.bin/xlint/lint1/main1.c:222
 (gdb) p/x *tn
 $6 = {tn_op = 0x45565f32, tn_type = 0x58455452, tn_lvalue = 0x1,
   tn_cast = 0x1, tn_parn = 0x1, tn_u = {tn_s = {_tn_left = 0x30424952,
       _tn_right = 0x4e5f345f}, _tn_sym = 0x30424952, _tn_val = 0x30424952,
     _tn_strg = 0x30424952}}
 (gdb) x/s tn
 0xbb891000:      "2_VERTEX_ATTRIB0_4_NV"
 
 
 and mkinit call:
 
 1169    init_expr:
 1170              expr                          %prec T_COMMA {
 1171                    mkinit($1);
 1172              }
 
 gets bogus tn already on entry.
 
 -uwe
 


Home | Main Index | Thread Index | Old Index