Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Oct 2023 20:00:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 274211] lang/tcc: Crashes with SIGSEGV on 14.x / 15.0-CURRENT when compiling hello world
Message-ID:  <bug-274211-7788-l7o0s2SbAW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274211-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274211-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274211

--- Comment #2 from Mina Gali=C4=87 <freebsd@igalic.co> ---
Created attachment 245415
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D245415&action=
=3Dedit
valgrind --leak-check=3Dfull --show-leak-kinds=3Dall -s tcc

(In reply to Paul Floyd from comment #1)
rebuild and rerun with ASAN:

```
AddressSanitizer:DEADLYSIGNAL
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D90002=3D=3DERROR: AddressSanitizer: SEGV on unknown address 0x0000000=
0001c (pc
0x00000035ac8f bp 0x7fffffffd710 sp 0x7fffffffcdc0 T0)
=3D=3D90002=3D=3DThe signal is caused by a READ memory access.
=3D=3D90002=3D=3DHint: 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
=3D=3D90002=3D=3DABORTING
```

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274211-7788-l7o0s2SbAW>