Skip to contentSkip to conversation

Triple-fault causes abort(), which doesn't end pointer grabs

Qemu-devel Samuel Bronson 4 participants 5 messages May 7, 2007 – May 13, 2007

lore
Share & tools
lore
#0 lore raw

So, if the guest system has a triple-fault, and I had had my mouse grabbed, it stays grabbed, so that X has to be restarted (as far as I know).

This happens because abort() doesn't run functions registered with atexit(). Suggest use of exit() instead.

#1 lore raw
Quoted 5 lines · Samuel Bronson

So, if the guest system has a triple-fault, and I had had my mouse grabbed, it stays grabbed, so that X has to be restarted (as far as I know).

This happens because abort() doesn't run functions registered with atexit(). Suggest use of exit() instead.

Sounds like an X server bug to me.

Paul

#2 lore raw
Quoted 8 lines · Paul Brook
Quoted 5 lines · Samuel Bronson

So, if the guest system has a triple-fault, and I had had my mouse grabbed, it stays grabbed, so that X has to be restarted (as far as I know).

This happens because abort() doesn't run functions registered with atexit(). Suggest use of exit() instead.

Sounds like an X server bug to me.

Possibly. Certainly it is not a desirable behaviour. But atexit() handlers are there for a reason...

It might also be an SDL bug. actually.

Sorry I took so long to reply.

#3 lore raw
In reply to Samuel Bronson
Quoted 2 lines · Samuel Bronson

So, if the guest system has a triple-fault, and I had had my mouse grabbed, it stays grabbed, so that X has to be restarted (as far as I know).

Not if you have XF86_Ungrab bound to a key.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#4 lore raw
Quoted 4 lines · Andreas Schwab
Quoted 2 lines · Samuel Bronson

So, if the guest system has a triple-fault, and I had had my mouse grabbed, it stays grabbed, so that X has to be restarted (as far as I know).

Not if you have XF86_Ungrab bound to a key.

That's a workaround, not a fix.

Phil