From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14882 invoked by alias); 1 Mar 2007 14:26:53 -0000 Received: (qmail 14842 invoked by uid 48); 1 Mar 2007 14:26:41 -0000 Date: Thu, 01 Mar 2007 14:26:00 -0000 From: "timoore at redhat dot com" To: frysk-bugzilla@sourceware.org Message-ID: <20070301142640.4117.timoore@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/4117] New: state detaching doesn't handle unblock after deleting a breakpoint. X-Bugzilla-Reason: AssignedTo Mailing-List: contact frysk-bugzilla-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-bugzilla-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00507.txt.bz2 List-Id: When running the test program below with fhpd: [moore@localhost frysk-build]$ ./frysk-core/frysk/bindir/fhpd (fhpd) attach ~/test/test1.c 8862 runState state = 0 Attached to process 8862 (fhpd) where #0 0x00000000004006ca in main () from: /home/moore/test/test1.c#42 #1 0x0000003f8501da44 in __libc_start_main () #2 0x0000000000400559 in _start () (fhpd) break test1.c 44 breakpoint 0 (fhpd) go runState state = 1 (fhpd) runState state = 0 breakpoint hit file frysk.rt.RunState$PersistentBreakpoint@2e37ae25 delete 0 (fhpd) go runState state = 1 (fhpd) Exception in thread "Thread-3" java.lang.RuntimeException: {frysk.proc.LinuxPtraceTask@2e372435,pid=8862,tid=8862,state=detaching} in state "detaching" did not handle handleUnblock at frysk.proc.State.unhandled(fhpd) at frysk.proc.TaskState.handleUnblock(fhpd) at frysk.proc.Task$2.execute(fhpd) at frysk.event.EventLoop.runEventLoop(fhpd) at frysk.event.EventLoop.run(fhpd) at frysk.cli.hpd.CLI$CLIEventLoop.run(fhpd) #include #include #include #include volatile int running = 1; static void signal_handler(int sig) { running = 0; } int main (int argc, char **argv) { int i = 0; if (argc > 2) { pid_t target_pid; int signal; errno = 0; target_pid = (pid_t)strtoul(argv[1], (char **)0, 10); if (errno) { perror("Invalid pid"); exit(1); } signal = (int)strtoul(argv[2], (char **)0, 10); if (errno) { perror("Invalid signal"); exit(1); } kill(target_pid, signal); } signal(SIGALRM, &signal_handler); while (running) { if (i >= 0) i--; else i++; } return 0; } -- Summary: state detaching doesn't handle unblock after deleting a breakpoint. Product: frysk Version: unspecified Status: NEW Severity: normal Priority: P2 Component: general AssignedTo: frysk-bugzilla at sourceware dot org ReportedBy: timoore at redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=4117 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.