[Bug 274211] lang/tcc: Crashes with SIGSEGV on 14.x / 15.0-CURRENT when compiling hello world
Date: Tue, 03 Oct 2023 20:00:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274211
--- Comment #2 from Mina Galić <freebsd@igalic.co> ---
Created attachment 245415
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245415&action=edit
valgrind --leak-check=full --show-leak-kinds=all -s tcc
(In reply to Paul Floyd from comment #1)
rebuild and rerun with ASAN:
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==90002==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000001c (pc
0x00000035ac8f bp 0x7fffffffd710 sp 0x7fffffffcdc0 T0)
==90002==The signal is caused by a READ memory access.
==90002==Hint: address points to the zero page.
#0 0x35ac8f in tcc_load_object_file
/usr/ports/lang/tcc/work/tinycc-release_0_9_26/tccelf.c:2533:51
#1 0x3052da in tcc_add_file_internal
/usr/ports/lang/tcc/work/tinycc-release_0_9_26/libtcc.c:1181:19
#2 0x3058f6 in tcc_add_library_internal
/usr/ports/lang/tcc/work/tinycc-release_0_9_26/libtcc.c:1254:13
#3 0x305a6b in tcc_add_crt
/usr/ports/lang/tcc/work/tinycc-release_0_9_26/libtcc.c:1270:15
#4 0x3062e0 in tcc_set_output_type
/usr/ports/lang/tcc/work/tinycc-release_0_9_26/libtcc.c:1360:13
#5 0x2fd12a in main
/usr/ports/lang/tcc/work/tinycc-release_0_9_26/tcc.c:302:5
#6 0x8004e4be9 in __libc_start1
/poudriere/jails/current-amd64/usr/src/lib/libc/csu/libc_start1.c:157:7
#7 0x251d6f in _start
/poudriere/jails/current-amd64/usr/src/lib/csu/amd64/crt1_s.S:83
#8 0x8003a7007 (<unknown module>)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV
/usr/ports/lang/tcc/work/tinycc-release_0_9_26/tccelf.c:2533:51 in
tcc_load_object_file
==90002==ABORTING
```
--
You are receiving this mail because:
You are the assignee for the bug.