public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/5727] New: Next command crashes
@ 2008-02-04 18:09 swagiaal at redhat dot com
  0 siblings, 0 replies; only message in thread
From: swagiaal at redhat dot com @ 2008-02-04 18:09 UTC (permalink / raw)
  To: frysk-bugzilla

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-04 18:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-04 18:09 [Bug general/5727] New: Next command crashes swagiaal at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).