From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11914 invoked by alias); 4 Feb 2008 18:09:30 -0000 Received: (qmail 11685 invoked by uid 48); 4 Feb 2008 18:08:43 -0000 Date: Mon, 04 Feb 2008 18:09:00 -0000 From: "swagiaal at redhat dot com" To: frysk-bugzilla@sourceware.org Message-ID: <20080204180842.5727.swagiaal@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/5727] New: Next command crashes 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: 2008-q1/txt/msg00270.txt.bz2 List-Id: run fhpd like this ./frysk/bindir/fhpd ./frysk/pkglibdir/funit-addresses break main run next next you either get a crash or next doesnt return and a where causes a crash. [swagiaal@toner frysk-core]$ ./frysk/bindir/fhpd ./frysk/pkglibdir/funit-addresses Loaded executable file: /notnfs/swagiaal/frysks/frysk/frysk-core/frysk/pkglibdir/funit-addresses (fhpd) break main breakpoint 0 deferred (fhpd) run Attached to process 17235 starting/running with this command: /notnfs/swagiaal/frysks/frysk/frysk-core/frysk/pkglibdir/funit-addresses Running process 17235 (fhpd) Breakpoint 0 main list [0.0] 67 char* string = "hello world"; 68 char* char_ptr = NULL; 69 int* int_ptr = NULL; 70 char* ptrStrings[] = {"zero", "one", "two", "three"}; 71 int** dynamicTwoD = NULL; 72 int* dynamicOneD = NULL; 73 74 int main(int argc, char* argv[]) 75 { 76 static int static_int = 22; -> 77 volatile int volatile_int = 33; 78 register int reg = 5; 79 int i, k; 80 81 // Dynamically allocated two d array [5][3] 82 dynamicTwoD = malloc (sizeof (int*) * 5); 83 for (i=0; i<5; i++) 84 dynamicTwoD[i] = malloc (sizeof(int) * 3); 85 // Fill with value 9 86 for (i=0; i<5; i++) (fhpd) next Task stopped at line 82 in file /to/scratch/swagiaal/frysks/frysk/frysk-core/frysk/pkglibdir/funit-addresses.c (fhpd) next Exception in thread "Thread-1" java.lang.NullPointerException at frysk.stepping.StepOverTestState.handleUpdate(fhpd) at frysk.stepping.TaskStepEngine.handleUpdate(fhpd) at frysk.stepping.SteppingEngine$SteppingObserver.updateExecuted(fhpd) at frysk.proc.live.LinuxPtraceTask.notifyInstruction(fhpd) at frysk.proc.live.LinuxPtraceTaskState$Stepping.handleTrappedEvent(fhpd) at frysk.proc.live.LinuxPtraceTaskState$Stepping.handleStoppedEvent(fhpd) at frysk.proc.live.LinuxPtraceTask.processStoppedEvent(fhpd) at frysk.proc.live.LinuxWaitBuilder.stopped(fhpd) at frysk.sys.Wait.wait(fhpd) at frysk.sys.Wait.waitAll(fhpd) at frysk.event.WaitEventLoop.block(fhpd) at frysk.event.EventLoop.runEventLoop(fhpd) at frysk.event.EventLoop.run(fhpd) -- Summary: Next command crashes Product: frysk Version: unspecified Status: NEW Severity: normal Priority: P2 Component: general AssignedTo: frysk-bugzilla at sourceware dot org ReportedBy: swagiaal at redhat dot com OtherBugsDependingO 5719 nThis: http://sourceware.org/bugzilla/show_bug.cgi?id=5727 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.