[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] regression tinycc gets stuck infinitely while parsing opt
From: |
Michael Ackermann |
Subject: |
[Tinycc-devel] regression tinycc gets stuck infinitely while parsing options |
Date: |
Sat, 16 Nov 2024 03:02:07 +0000 |
Greetings,
while regression-testing tcc against a system profile of ~500 ebuilds a
potential endless-loop condition was spotted
(during one of hundreds of configure checks):
- if a library linking option is passed such as -lz
- and this library libz.so isn't present in the library search path
(i am supporting static linking against libz.a currently)
- then tcc option parser got stuck in an endless loop and tcc binary
didn't terminate then
The problem got introduced with the following commit February 2024:
42395a19128b7db756721a55e4630ece82cb315b
It may not be trivial to re-produce the error-condition, and it is rarely hit,
but I could reliably confirm reverting the change made to tcc.c resolved the
issue under mentioned circuumstances. The required revert/patch is attached.
As a side note, i am not sure if each individual regression that i could reveal
with extensive testing if those should be posted to the mailing list
(see https://lists.gnu.org/archive/html/tinycc-devel/2024-11/msg00016.html).
Temporarily i joined #tcc channel at OFTC, but it seems completely abandoned.
Please let me know how efforts could best be coordinated to produce the least
amount of noise possible.
Regards.
aggi
--
tcc-42395a19128b7db756721a55e4630ece82cb315b-revert_tcc_c.patch
Description: Text document
signature.asc
Description: Digital signature
- [Tinycc-devel] regression tinycc gets stuck infinitely while parsing options,
Michael Ackermann <=