Open tsee opened 7 years ago
Yes, I came across a similar issue in my own experiments with lots of clex
blocks. It is almost surely a bug in tcc
. I plan to produce a simple test script, but I'm focusing on the cache-thrashing issue first. (I've managed to boil it down to a very simple tcc
-style script, so I have hopes somebody on tinycc-devel will be able to take it up.)
The following variation on my thread safety test script will happily segfault (might need to tune the number iterations for your system or run a few times) even outside of any threaded environment:
This may be bizarre use, but it clearly shouldn't segfault.
The start of the backtrace looks like this:
This goes on for some 20000 call stacks before gdb gives an unhelpful error message. So I suppose some recursive thing in TCC is bombing?
--Steffen