tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] This commit causes segfaults on make test


From: Domingo Alvarez Duarte
Subject: Re: [Tinycc-devel] This commit causes segfaults on make test
Date: Wed, 26 Mar 2014 14:37:35 +0000

Hello !

I can understand you because it happen to me too, then makefile on tests was not cleaning the generated files ending with "-cc" and "-tcc" and if we've generated ones that worked before they will be used on tests instead of generating new ones with the modification we did to tinycc sources.

And yes I'm testing on ubuntu 12.04 X86_64.

I've added a commit to mob that do clean then, after that try "make clean", "make" and "make test" then you probably will get the segfault:

../tcc -B.. -I.. -I.. -I../include -o abitest-tcc abitest.c ../libtcc.c -I..  -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -DCONFIG_LDDIR="\"lib\"" -DCONFIG_MULTIARCHDIR="\"x86_64-linux-gnu\"" -DTCC_TARGET_X86_64 -DONE_SOURCE -lm -ldl  -I..
------------ abitest ------------
./abitest-cc lib_path=.. include="../include"
ret_int_test... success
ret_longlong_test... success
ret_float_test... success
ret_double_test... success
ret_longdouble_test... success
ret_2float_test... success
ret_2double_test... success
reg_pack_test... success
reg_pack_longlong_test... success
sret_test... success
one_member_union_test... success
two_member_union_test... success
many_struct_test... success
many_struct_test_2... success
stdarg_test... success
stdarg_struct_test... success
arg_align_test... success
./abitest-tcc lib_path=.. include="../include"
Segmentation fault (core dumped)
make[1]: *** [abitest] Error 139
make[1]: Leaving directory `/home/mingo/dev/c/tinycc/tests'
make: *** [test] Error 2


Cheers !



On Wed, Mar 26, 2014 at 1:54 PM, Thomas Preudhomme <address@hidden> wrote:
Le 2014-03-26 07:58, Domingo Alvarez Duarte a écrit :
Hello !

Hi there,



This commit "Support GOT32 and PLT32 reloc for same symbol"
causes "make test" to segfault, also tcc compiles by itself segfault.

Unfortunetely I cannot reproduce. Before uploading I tried on i386 target and tried again today on x86-64 without any segfault, except a bug in abitest for x86-64 that I have seen for months now.

So to debug it I'll need some help. Can you tell me which test segfaults? If it's the hello program (examples/ex1.c), can you run readelf -a and show me the output over there? Else, can you try to compile the program (instead of executing it with -run switch) and see if it still segfaults. If that is the case, can you show me the output of readelf -a on the program?

Best regards,

Thomas

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


reply via email to

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