tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Windows x86_64 BUG, SIGSEV is not correctly handled b


From: Michael Matz
Subject: Re: [Tinycc-devel] Windows x86_64 BUG, SIGSEV is not correctly handled by installed signal handler.
Date: Mon, 8 Apr 2019 17:42:36 +0000 (UTC)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)

Hello,

On Mon, 8 Apr 2019, Christian Jullien wrote:

> c:\tmp>tcc -m64 signal.c && signal
> 
> Waiting for SIGSEGV  <<= program terminates after this print!!

Works for me under wine64:

% ./x86_64-win32-tcc -m64 -B. -Iwin32/include -L. signal.c -Lwin32/lib
% file signal.exe
signal.exe: PE32+ executable (console) x86-64 (stripped to external PDB), 
for MS Windows

(so it's really x86_64), and then:

% wine signal.exe
Waiting for SIGSEGV
Got signal 11!! Want to exit? [y/n] y
Exiting from handler...

(answering 'n' works as expected too).

So I can't reproduce (with a quite different environment though).  As 
you're probably using the same headers as me (the ones delivered with 
tinycc) it would seem that the differences can't be coming from there, so
the difference is coming from the runtime environment from Windows proper.  
I can't really speculate what that might be and how to amend TCC to care 
for this; the code generation in principle works as demonstrated above, 
some detail is missing :-/


Ciao,
Michael.



reply via email to

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