tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Bug: segfault when running empty file on tcc-0.9.26-win64


From: André Willik Valenti
Subject: [Tinycc-devel] Bug: segfault when running empty file on tcc-0.9.26-win64
Date: Wed, 5 Jul 2017 00:18:06 -0300

Hello,

I believe I've found a bug. It happens on 64-bit version of tcc for Windows. No problems were found on 32-bit Windows or 64-bit Linux (installed from apt-get).

To reproduce, run on a terminal:

REM Creates an empty file
type nul > empty.c

REM win32 tcc works normally
win32\tcc empty.c
tcc: error: undefined symbol 'main'

REM win32 tcc works normally
win32\tcc -run empty.c
tcc: error: main not defined

REM win64 tcc works normally when generating file output
win64\tcc empty.c
tcc: error: undefined symbol 'main'

REM ...but crashes with a segfault when running source code directly
win64\tcc -run empty.c


The same happens with a file containing just

#

or

#inclu


Regards,
André

reply via email to

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