The problem is in libc. I pushed a patch for older libc's.
The real problem is in the signal handling in the pthread_create
implementation.
There are changes in glibc-2.32 to fix this.
Herman
On 11/8/20 11:10 AM, Christian Jullien wrote:
Update,
It curiously don’t seg fault on an even older laptop also install with
Debian 10.6. Laptop is a PIII 333MHz 256MB ram
*From:*Tinycc-devel
[mailto:[email protected]] *On Behalf
Of *Christian Jullien
*Sent:* Saturday, November 07, 2020 15:52
*To:* [email protected]
*Subject:* [Tinycc-devel] Seg fault with test 114 on Debian i686
Hi all,
I don’t used i686 these days but, from time to time, I boot a very old
laptop running Debian (currently 10.6) on a i686.
Today, I gave a try with tinycc mod and got an reproducible error with
test 114. Here is what I get:
jullien@simtest:~/tinycc$ uname -a
Linux simtest 4.19.0-12-686 #1 SMP Debian 4.19.152-1 (2020-10-18) i686
GNU/Linux
jullien@simtest:~/tinycc$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++
--prefix=/usr --with-gcc-major-version-only --program-suffix=-8
--program-prefix=i686-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin
--enable-default-pie --with-system-zlib --with-target-system-zlib
--enable-objc-gc=auto --enable-targets=all --enable-multiarch
--disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic --enable-checking=release
--build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)
jullien@simtest:~/tinycc$ ./configure; make && make test
Binary directory /usr/local/bin
TinyCC directory /usr/local/lib/tcc
Library directory /usr/local/lib
Include directory /usr/local/include
Manual directory /usr/local/share/man
Info directory /usr/local/share/info
Doc directory /usr/local/share/doc
Source path /home/jullien/tinycc
C compiler gcc (8.3)
Target OS Linux
CPU i386
Triplet i386-linux-gnu
Creating config.mak and config.h
gcc -o tcc.o -c tcc.c -DCONFIG_TRIPLET="\"i386-linux-gnu\""
-DTCC_TARGET_I386 -DONE_SOURCE=0 -Wall -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign
-Wno-sign-compare -Wno-unused-result -Wno-format-truncation -I.
…
Test: 113_btdll...
Test: 114_bound_signal...
Segmentation fault
--- 114_bound_signal.expect 2020-11-07 15:30:50.217940473 +0100
+++ 114_bound_signal.output 2020-11-07 15:36:00.106349033 +0100
@@ -1,2 +1 @@
start
-end
make[3]: *** [Makefile:117: 114_bound_signal.test] Error 1
Test: 115_bound_setjmp...
Test: 116_bound_setjmp2...
Test: 117_builtins...
Test: 118_switch...
Test: 119_random_stuff...
Test: 120_alias...
Test: 121_struct_return...
Test: 122_vla_reuse...
make[3]: Target 'all' not remade because of errors.
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel