Re: avoiding SIGSEGV
- From: "T.M. Sommers" <tms@xxxxxx>
- Date: Sat, 11 Nov 2006 17:08:33 -0500
Frank Kotler wrote:
Herbert Kleebauer wrote:
Frank Kotler wrote:
In an xterm, the "non-robust" build segfaults as expected. With the
But which value has esi when it faults?
0804A000h, same as in a "regular" terminal.
For another data point, in an xterm, the non-robust version crashed with a sig 11 after printing these last lines:
08049FFD
08049FFE
08049FFF
0804A000
Segmentation fault (core dumped)
gdb says:
Program terminated with signal 11, Segmentation fault.
#0 0x0804808c in _start.top ()
objdump disassembly:
08048085 <_start.top>:
8048085: 89 f0 mov %esi,%eax
8048087: e8 28 00 00 00 call 80480b4 <showeaxh>
804808c: ac lods %ds:(%esi),%al
804808d: eb f6 jmp 8048085 <_start.top>
It's the behavior of the "-dROBUST" version that's puzzling! It *doesn't* fault, but exits cleanly, as expected, but later than expected...
The robust verion exited cleanly after printing:
08049FFD
08049FFE
08049FFF
0804A000
--
Thomas M. Sommers -- tms@xxxxxx -- AB2SB
.
- Follow-Ups:
- Re: avoiding SIGSEGV
- From: Frank Kotler
- Re: avoiding SIGSEGV
- References:
- avoiding SIGSEGV
- From: Frank Kotler
- Re: avoiding SIGSEGV
- From: Herbert Kleebauer
- Re: avoiding SIGSEGV
- From: Frank Kotler
- avoiding SIGSEGV
- Prev by Date: Re: Time this code, please!
- Next by Date: Re: DLL Exports, determine Arg types and RetVal?
- Previous by thread: Re: avoiding SIGSEGV
- Next by thread: Re: avoiding SIGSEGV
- Index(es):
Relevant Pages
|
|