[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Bug Report: tcc segfault on fedora 29
From: |
Herb Thompson |
Subject: |
[Tinycc-devel] Bug Report: tcc segfault on fedora 29 |
Date: |
Wed, 31 Oct 2018 21:53:48 -0300 |
Bug Report: tcc seg faults during "make test" at tccelf.c:2462 "
s->sh_info = sm_table[sh->sh_info].s->sh_num; " on Fedora 29 but works
on Fedora 28. See core dump details below.
Note that if "make install" is run after "make test" fails, "tcc -run
ex1.c " does work but "tcc ex1.c "does not.
---/---
address@hidden tcc-0.9.27]# make test
make -C tests
make[1]: Entering directory '/root/tcc-0.9.27/tests'
------------ hello-exe ------------
../tcc -B.. -I../include -I.. -I.. ../examples/ex1.c -o hello &&
./hello || (set -x; ../tcc -vv; ldd ../tcc; exit 1)
/bin/sh: line 1: 6296 Segmentation fault (core dumped) ../tcc
-B.. -I../include -I.. -I.. ../examples/ex1.c -o hello
+ ../tcc -vv
tcc version 0.9.27 (x86_64 Linux)
install: /usr/local/lib/tcc
include:
/usr/local/lib/tcc/include
/usr/local/include
/usr/include
libraries:
/usr/lib64
/lib64
/usr/local/lib64
libtcc1:
/usr/local/lib/tcc/libtcc1.a
crt:
/usr/lib64
elfinterp:
/lib64/ld-linux-x86-64.so.2
+ ldd ../tcc
linux-vdso.so.1 (0x00007fff6150e000)
libm.so.6 => /lib64/libm.so.6 (0x00007f5f6e36b000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f5f6e363000)
libc.so.6 => /lib64/libc.so.6 (0x00007f5f6e19b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5f6e50b000)
+ exit 1
make[1]: *** [Makefile:66: hello-exe] Error 1
make[1]: Leaving directory '/root/tcc-0.9.27/tests'
make: *** [Makefile:347: test] Error 2
address@hidden tcc-0.9.27]#
---/---
address@hidden tcc-0.9.27]# coredumpctl debug
PID: 6296 (tcc)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Wed 2018-10-31 21:41:35 ADT (1min 33s ago)
Command Line: ../tcc -B.. -I../include -I.. -I.. ../examples/ex1.c -o hello
Executable: /root/tcc-0.9.27/tcc
Control Group:
/user.slice/user-1000.slice/address@hidden/gnome-terminal-server.service
Unit: address@hidden
User Unit: gnome-terminal-server.service
Slice: user-1000.slice
Owner UID: 1000 (user)
Boot ID: 004d89d979b842c5ad724885401e5bfe
Machine ID: b6067221fff34e1faeb327b7f084988e
Hostname: localhost.localdomain
Storage:
/var/lib/systemd/coredump/core.tcc.0.004d89d979b842c5ad724885401e5bfe.6296.1541032895000000.lz4
Message: Process 6296 (tcc) of user 0 dumped core.
Stack trace of thread 6296:
#0 0x000000000041efe4 n/a (/root/tcc-0.9.27/tcc)
GNU gdb (GDB) Fedora 8.2-3.fc29
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /root/tcc-0.9.27/tcc...done.
[New LWP 6296]
warning: Loadable section ".note.gnu.property" outside of ELF segments
Core was generated by `../tcc -B.. -I../include -I.. -I..
../examples/ex1.c -o hello'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000041efe4 in tcc_load_object_file (address@hidden,
address@hidden, address@hidden)
at tccelf.c:2462
2462 s->sh_info = sm_table[sh->sh_info].s->sh_num;
(gdb)
---/---
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] Bug Report: tcc segfault on fedora 29,
Herb Thompson <=