https://bugs.kde.org/show_bug.cgi?id=505302
Mark Wielaard <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Mark Wielaard <[email protected]> --- (In reply to Florian Krohm from comment #0) > Division by zero causes SIGFPE signal. > When run natively, there is no difference as to whether the signal handler > returns via siglongjmp or not. > The handler is called once, the program exits. > > Under valgrind the program runs into an infinite loop when the handler > returns without siglongjmp. The handler is called again and again. > > That's not what I would expect. I would expect the behaviour to be identical. > Or am I missing something? This might be s390x specific. On x86_64 the native and valgrind behavior are identical. Without the siglongjmp the program goes into an infinite "loop" because the signal handler just returns to the divide by zero instuction over and over again and again. With the siglongjump the signal handler is called once and the handler returns to the if(sigsetjmp) and bypasses the divide by zero instruction and just returns from main. -- You are receiving this mail because: You are watching all bug changes.
