tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] bounds checking does not work any more after last commit


From: Herman ten Brugge
Subject: [Tinycc-devel] bounds checking does not work any more after last commit
Date: Wed, 11 Dec 2019 08:35:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

When doing on x86_64:

cd tests; make btest

I get a core dump:
#0  tcc_add_bcheck (s1=0x46a2a0) at x86_64-gen.c:665
#1  0x00000000004227aa in tcc_add_runtime (s1=0x46a2a0) at tccelf.c:1323
#2  0x0000000000424d6e in elf_output_file (s1=0x46a2a0, filename=0x46b540 "a") at tccelf.c:2260 #3  0x0000000000425420 in tcc_output_file (s=0x46a2a0, filename=0x46b540 "a") at tccelf.c:2430
#4  0x0000000000403c53 in main (argc0=5, argv0=0x7fffffffd8a8) at tcc.c:358

It seems the global tcc_state is gone after the compile state.
This function needs the bounds_section and because USING_GLOBALS is set it will fail.

Regards,

    Herman



reply via email to

[Prev in Thread] Current Thread [Next in Thread]