OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c98e236
)
[MIPS] Use an aligned address to provoke SIGSEGV in abort()
author
Chris Dearman
<chris@mips.com>
Tue, 10 Jul 2012 18:46:55 +0000
(11:46 -0700)
committer
Elliott Hughes
<enh@google.com>
Wed, 25 Jul 2012 00:42:06 +0000
(17:42 -0700)
Change-Id: I269c9ccc07058773fb0f9d70673673157ab38f6a
libc/unistd/abort.c
patch
|
blob
|
history
diff --git
a/libc/unistd/abort.c
b/libc/unistd/abort.c
index
a3f8c54
..
58d620d
100644
(file)
--- a/
libc/unistd/abort.c
+++ b/
libc/unistd/abort.c
@@
-79,7
+79,12
@@
abort(void)
/* temporary, for bug hunting */
/* 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;
+#endif
/* -- */
(void)kill(getpid(), SIGABRT);