* commit '9dbd4c06fe143a4187d2d8d418c1a3b7c1ed39ba': [MIPS] Use an aligned address to provoke SIGSEGV in abort()
This commit is contained in:
commit
edc5fe530f
@ -79,7 +79,12 @@ abort(void)
|
|||||||
|
|
||||||
/* temporary, for bug hunting */
|
/* temporary, for bug hunting */
|
||||||
/* seg fault seems to produce better debuggerd results than SIGABRT */
|
/* seg fault seems to produce better debuggerd results than SIGABRT */
|
||||||
|
#ifdef __mips__
|
||||||
|
/* An access that will generate SIGSEGV rather than SIGBUS. */
|
||||||
|
*((char*)0xdeadc0c0) = 39;
|
||||||
|
#else
|
||||||
*((char*)0xdeadbaad) = 39;
|
*((char*)0xdeadbaad) = 39;
|
||||||
|
#endif
|
||||||
/* -- */
|
/* -- */
|
||||||
|
|
||||||
(void)kill(getpid(), SIGABRT);
|
(void)kill(getpid(), SIGABRT);
|
||||||
|
Loading…
Reference in New Issue
Block a user