[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] TCC segfault on Fedora 30
From: |
Klaus Ebbe Grue |
Subject: |
[Tinycc-devel] TCC segfault on Fedora 30 |
Date: |
Wed, 1 May 2019 20:09:47 +0000 |
Hello,
Just a short note: my tcc did segfault on Fedora 30.
Workaround: git clone git://repo.or.cz/tinycc.git, recompile, reinstall
Is that something one should do for each new Fedora?
Cheers,
Klaus
---
Details:
~> tcc hello.c
Segmentation fault (core dumped)
~> tcc
Tiny C Compiler 0.9.27 - Copyright (C) 2001-2006 Fabrice Bellard
...
# So:
# tcc segfaults when trying to compile hello.c (identical to examples/ex1.c).
# But when invoked without parameters, tcc responds with the help text.
~> mkdir temp
~> cd temp
temp> git clone git://repo.or.cz/tinycc.git
temp> cd tinycc/
tinycc> ./configure --with-selinux
tinycc> make
tinycc> cd examples/
examples> ../tcc -o ex1 ex1.c
examples> ./ex1
Hello World
# So the recompiled tcc works
examples> cd ..
tinycc> ldd ./tcc
linux-vdso.so.1 (0x00007ffdd61e9000)
/usr/$LIB/libgtk3-nocsd.so.0 => /usr/lib64/libgtk3-nocsd.so.0
(0x000014f681b72000)
libm.so.6 => /lib64/libm.so.6 (0x000014f681a01000)
libdl.so.2 => /lib64/libdl.so.2 (0x000014f6819fb000)
libc.so.6 => /lib64/libc.so.6 (0x000014f681835000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x000014f681814000)
/lib64/ld-linux-x86-64.so.2 (0x000014f681d7b000)
tinycc> which tcc
/usr/local/bin/tcc
tinycc> ldd /usr/local/bin/tcc
linux-vdso.so.1 (0x00007ffc21dec000)
/usr/$LIB/libgtk3-nocsd.so.0 => /usr/lib64/libgtk3-nocsd.so.0
(0x00001550efb66000)
libm.so.6 => /lib64/libm.so.6 (0x00001550ef9f5000)
libdl.so.2 => /lib64/libdl.so.2 (0x00001550ef9ef000)
libc.so.6 => /lib64/libc.so.6 (0x00001550ef829000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00001550ef808000)
/lib64/ld-linux-x86-64.so.2 (0x00001550efd6f000)
# I have no clue what changed
> sudo make install
> cd examples/
> tcc -o ex1 ex1.c
# so the new tcc also works when put in /usr/local/bin
- [Tinycc-devel] TCC segfault on Fedora 30,
Klaus Ebbe Grue <=