Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 230189 Details for
Bug 318331
dev-util/radare-1.5 crash in debug mode
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for the problem
p.txt (text/plain), 1.67 KB, created by
Adriana Castro
on 2010-05-03 19:46:33 UTC
(
hide
)
Description:
Patch for the problem
Filename:
MIME Type:
Creator:
Adriana Castro
Created:
2010-05-03 19:46:33 UTC
Size:
1.67 KB
patch
obsolete
>diff -r a0e68135e78b src/dbg/unix/debug.c >--- a/src/dbg/unix/debug.c Wed Apr 14 15:57:57 2010 +0200 >+++ b/src/dbg/unix/debug.c Mon May 03 20:59:12 2010 +0200 >@@ -98,9 +98,7 @@ > } > #endif > >-int debug_os_kill(int pid, int sig) >-{ >- //return 0; >+int debug_os_kill(int pid, int sig) { > /* prevent killall selfdestruction */ > if (pid < 1) > return -1; >@@ -115,8 +113,7 @@ > #include <sys/uio.h> > #include <sys/ktrace.h> > >-int debug_ktrace() >-{ >+int debug_ktrace() { > #if __OpenBSD__ || __FreeBSD__ > eprintf("No fktrace for OpenBSD. Needs to be implemented with ktrace(2)\n"); > #else >@@ -142,14 +139,14 @@ > ret = arch_continue(); > ret = read (pd[0], buf, 1); > if (ret>0) { >- kill(ps.tid, SIGSTOP); >+ debug_os_kill(ps.tid, SIGSTOP); > printf("Have sweet dreamz my lil pon1e!!1!\n"); > > ret = fktrace(pd[1], KTROP_CLEAR, trp, ps.tid); > ret |= fktrace(pd[1], KTROP_CLEARFILE, trp, ps.tid); > printf("<fktrace> %d\n", ret); > >- ret = kill(ps.tid, 0); >+ ret = debug_os_kill(ps.tid, 0); > printf("<kill0> %d (alive)\n", ret); > > ret = wait(&sta); >@@ -398,6 +395,8 @@ > > static int is_alive(int pid) > { >+ if (pid<1) >+ return 0; > return kill (pid, 0)==0; > } > >@@ -460,9 +459,8 @@ > /* restore breakpoints */ > debug_bp_reload_all(); > >- if (config_get("dbg.stop")) >- kill(ps.pid, SIGSTOP); >- >+ if (config_get("dbg.stop")) >+ debug_os_kill (ps.pid, SIGSTOP); > ps.steps = 1; > } > >@@ -830,7 +828,7 @@ > debug_msg_set("process %d finished\n", ps.tid); > eprintf("\n\n______________[ process finished ]_______________\n\n"); > //ps.opened = 0; >- kill(ps.tid, SIGKILL); >+ debug_os_kill (ps.tid, SIGKILL); > sleep(1); > eprintf("Use !load or ^C to reload\n"); > config.interrupted=1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 318331
: 230189