tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] tcc i386 test failures after commit ea2805f


From: Ramsay Jones
Subject: [Tinycc-devel] tcc i386 test failures after commit ea2805f
Date: Thu, 03 Apr 2014 20:34:56 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hi Michael,

tcc on i386 has been failing a couple of tests for a while.
For example, commit 3e56584 ("Allow local redefinition of enumerator",
31-03-2014), fails like so:

  $ make test
  ...
  ------------ test1b ------------
  ../tcc -B.. -I.. -I.. -I../include -b -run tcctest.c > test.out1
  --- test.ref  2014-04-03 20:09:19.207429405 +0100
  +++ test.out1 2014-04-03 20:09:19.879432730 +0100
  @@ -538,7 +538,7 @@
   Test C99 VLA 2 (ptrs substract): PASSED
   Test C99 VLA 3 (ptr add): PASSED
   Test C99 VLA 4 (ptr access): PASSED
  -Test C99 VLA 5 (bounds checking (might be disabled)): PASSED PASSED PASSED 
PASSED PASSED PASSED PASSED PASSED 
  +Test C99 VLA 5 (bounds checking (might be disabled)): FAILED PASSED FAILED 
PASSED FAILED PASSED FAILED PASSED 
   sizeof(int) = 4
   sizeof(unsigned int) = 4
   sizeof(long) = 4
  make[1]: *** [test1b] Error 1
  make[1]: Leaving directory `/home/ramsay/tinycc/tests'
  make: *** [test] Error 2
  $ 

After commit ea2805f ("shared libs: Build libtcc1.a with -fPIC", 02-04-2014),
this now fails like so:

  $ make test
  ...
  ------------ test1b ------------
  ../tcc -B.. -I.. -I.. -I../include -b -run tcctest.c > test.out1
  Runtime error: dereferencing invalid pointer
  at 0x9a6dc23 __bound_init()
  Segmentation fault
  make[1]: *** [test1b] Error 139
  make[1]: Leaving directory `/home/ramsay/tinycc/tests'
  make: *** [test] Error 2
  $ 

Also, running 'make -k test', show other (bounds) tests failing in
a similar fashion (test3b and btest).

I don't have time to investigate this myself (sorry!).

HTH

ATB,
Ramsay Jones






reply via email to

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