Re: [Tinycc-devel] A stack-overflow in tinycc-f150f93/tccpp.c

2019-12-29 Thread Daniel Glöckner
Hi, On Tue, Dec 24, 2019 at 01:12:55PM +0800, magic googlo wrote: > The attachment includes the error message of stack-overflow.c and asan that > triggered the crash. Hope to help you fix this bug as soon as possible tinycc relies heavily on recursion and AFAIK it nowhere limits the recursion dep

Re: [Tinycc-devel] A stack-overflow in tinycc-f150f93/tccpp.c

2019-12-29 Thread Pascal Cuoq
Hello, > On 29 Dec 2019, at 23:31, Daniel Glöckner wrote: > > Adding recursion depth limitation into all cycles of this graph is a > lot of work. It would also be counter-productive. Currently it takes a single ulimit command to compile a larger-than-usual program, but if tcc enforced its own

Re: [Tinycc-devel] A stack-overflow in tinycc-f150f93/tccpp.c

2019-12-29 Thread Christian Jullien
I once wrote a C++ program using a huge constexpr std::array having a lot a ctor (also constexpr). Gcc miserably failed with a core dump after more than 1mn of compilation. In a sense, tcc is gcc compatible :o) C. -Original Message- From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis