[Top][All Lists]

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

Re: [Tinycc-devel] Segmentation fault compiling jslong.c

From: Rob Landley
Subject: Re: [Tinycc-devel] Segmentation fault compiling jslong.c
Date: Tue, 18 Sep 2007 14:25:20 -0500
User-agent: KMail/1.9.6

On Tuesday 18 September 2007 11:17:17 am Sanghyeon Seo wrote:
> Hi,
> I'm trying to get Spidermonkey built on TCC, which didn't go well.
> How to reproduce:
> wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.60.tar.gz
> tar zxf js-1.60.tar.gz
> cd js/src
> make -f Makefile.ref CC=tcc

Specifically, the segfaulting line is:
tcc -o Linux_All_DBG.OBJ/jslong.o -c -Wall -Wno-format -g -DXP_UNIX -DSVR4 \
 -DDEBUG -DDEBUG_landley -DEDITLINE -ILinux_All_DBG.OBJ  jslong.c

Hmmm...  -E preprocesses it without a segfault, but then compiling the 
resulting .c segfaults.  Let's try commenting out the second half of that 
file...  Second 1/4,  second 1/8...  Ok, the bit that segfaults is right at 
the end, and it can be narrowed down to...

typedef long long JSInt64 ;
static JSInt64 ll_zero = ( ( 0x00000000LL << 32 ) + 0x00000000LL ) ;

Compiling those two lines segfaults.

I'll try to track it down this evening.  Thanks for the bug report.

"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]