public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
@ 2007-07-06 11:04 mark at klomp dot org
  2007-07-16 11:15 ` [Bug general/4747] " mark at klomp dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-07-06 11:04 UTC (permalink / raw)
  To: frysk-bugzilla

The following doesn't always happen, but it should never happen. The
"IllegalStateException: Already stepping" exception is thrown as an internal
sanity check that clearly failed in this case and that should never be triggered
 even in the worst situations.

$ ./TestRunner frysk.rt.TestUpdatingDisplayValue
Running testTaskStopped(frysk.rt.TestUpdatingDisplayValue) ...PASS
Running testValueChanged(frysk.rt.TestUpdatingDisplayValue) ...PASS
Running testFuncReturn(frysk.rt.TestUpdatingDisplayValue) ...PASS
Running testExceptionThrown(frysk.rt.TestUpdatingDisplayValue) ...UNRESOLVED
  http://sourceware.org/bugzilla/show_bug.cgi?id=4639
Running testLongjmp(frysk.rt.TestUpdatingDisplayValue) ...PASS
Running testTaskDead(frysk.rt.TestUpdatingDisplayValue) ...PASS
Running testDisabled(frysk.rt.TestUpdatingDisplayValue) ...ERROR
  java.lang.IllegalStateException: Already stepping
Running testEnabledExprUnavailable(frysk.rt.TestUpdatingDisplayValue) ...ERROR
  java.lang.IllegalStateException: Already stepping

Time: 0.446
There were 1 unresolved:
  http://sourceware.org/bugzilla/show_bug.cgi?id=4639
There were 2 errors:
1)
testDisabled(frysk.rt.TestUpdatingDisplayValue)java.lang.IllegalStateException:
Already stepping
   at frysk.proc.Breakpoint.prepareStep(TestRunner)
   at frysk.proc.live.LinuxTaskState$Running.sendContinue(TestRunner)
   at frysk.proc.live.LinuxTaskState$Running.handleStoppedEvent(TestRunner)
   at frysk.proc.live.LinuxTask.processStoppedEvent(TestRunner)
   at frysk.proc.live.LinuxWaitBuilder.stopped(TestRunner)
   at frysk.sys.Wait.wait(TestRunner)
   at frysk.sys.Wait.waitAll(TestRunner)
   at frysk.event.WaitEventLoop.block(TestRunner)
   at frysk.event.EventLoop.runEventLoop(TestRunner)
   at frysk.event.EventLoop.runPolling(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.rt.TestUpdatingDisplayValue.testDisabled(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
2)
testEnabledExprUnavailable(frysk.rt.TestUpdatingDisplayValue)java.lang.IllegalStateException:
Already stepping
   at frysk.proc.Breakpoint.prepareStep(TestRunner)
   at frysk.proc.live.LinuxTaskState$Running.sendContinue(TestRunner)
   at frysk.proc.live.LinuxTaskState$Running.handleStoppedEvent(TestRunner)
   at frysk.proc.live.LinuxTask.processStoppedEvent(TestRunner)
   at frysk.proc.live.LinuxWaitBuilder.stopped(TestRunner)
   at frysk.sys.Wait.wait(TestRunner)
   at frysk.sys.Wait.waitAll(TestRunner)
   at frysk.event.WaitEventLoop.block(TestRunner)
   at frysk.event.EventLoop.runEventLoop(TestRunner)
   at frysk.event.EventLoop.runPolling(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.rt.TestUpdatingDisplayValue.testEnabledExprUnavailable(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

FAILURES!!!
Tests run: 8,  Failures: 0,  Errors: 2

Failed after run #0

-- 
           Summary: frysk.rt.TestUpdatingDisplayValue
                    java.lang.IllegalStateException: Already stepping
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: mark at klomp dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
@ 2007-07-16 11:15 ` mark at klomp dot org
  2007-07-18 13:49 ` mark at klomp dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-07-16 11:15 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-07-16 11:15 -------
I am unable to reproduce this, although I have seen it in the past happen.
Please add a note to this if you are seeing this happen.

On x86_64 (FC6) I can run ./TestRunner -r 1000 frysk.rt.TestUpdatingDisplayValue
and not get any failure at all.

If I do the same on x86 (F7) then I do after some runs I almost always get:

There were 4 failures:
1)
testFuncReturn(frysk.rt.TestUpdatingDisplayValue)junit.framework.AssertionFailedError:
Display is not available
   at frysk.rt.TestUpdatingDisplayValue.testFuncReturn(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
2)
testLongjmp(frysk.rt.TestUpdatingDisplayValue)junit.framework.AssertionFailedError:
Display is not available
   at frysk.rt.TestUpdatingDisplayValue.testLongjmp(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
3)
testTaskDead(frysk.rt.TestUpdatingDisplayValue)junit.framework.AssertionFailedError:
Display is not available
   at frysk.rt.TestUpdatingDisplayValue.testTaskDead(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
4)
testEnabledExprUnavailable(frysk.rt.TestUpdatingDisplayValue)junit.framework.AssertionFailedError:
Display is not available
   at frysk.rt.TestUpdatingDisplayValue.testEnabledExprUnavailable(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

But never the original reported failure. Maybe this new failure is hiding the
original?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ajocksch at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
  2007-07-16 11:15 ` [Bug general/4747] " mark at klomp dot org
@ 2007-07-18 13:49 ` mark at klomp dot org
  2007-07-24 10:31 ` mark at klomp dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-07-18 13:49 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-07-18 13:48 -------
Created an attachment (id=1919)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1919&action=view)
fhpd session showing the bug


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
  2007-07-16 11:15 ` [Bug general/4747] " mark at klomp dot org
  2007-07-18 13:49 ` mark at klomp dot org
@ 2007-07-24 10:31 ` mark at klomp dot org
  2007-07-24 10:57 ` mark at klomp dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-07-24 10:31 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-07-24 10:31 -------
(In reply to comment #2)
> Created an attachment (id=1919)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1919&action=view)
> fhpd session showing the bug

The session was on a Fedora 7, x86 machine. Trying to reproduce it on Fedora
Core 6, x86_64 doesn't produce the bug.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
                   ` (2 preceding siblings ...)
  2007-07-24 10:31 ` mark at klomp dot org
@ 2007-07-24 10:57 ` mark at klomp dot org
  2007-07-24 11:24 ` mark at klomp dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-07-24 10:57 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-07-24 10:56 -------
(In reply to comment #1)
> I am unable to reproduce this, although I have seen it in the past happen.
> Please add a note to this if you are seeing this happen.
> 
> On x86_64 (FC6) I can run ./TestRunner -r 1000 frysk.rt.TestUpdatingDisplayValue
> and not get any failure at all.
> 
> If I do the same on x86 (F7) then I do after some runs I almost always get:
> 
> There were 4 failures:

Confirmed this is still an issue on x86 (F7), but not reproducable on x86_64
(FC6). Although it now isn't always 4 failures, most of the time it is just one
failure (but sometimes all of the above).


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
                   ` (3 preceding siblings ...)
  2007-07-24 10:57 ` mark at klomp dot org
@ 2007-07-24 11:24 ` mark at klomp dot org
  2007-07-24 11:46 ` mark at klomp dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-07-24 11:24 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-07-24 11:23 -------
(In reply to comment #3)
> (In reply to comment #2)
> > Created an attachment (id=1919)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1919&action=view)
> > fhpd session showing the bug
> 
> The session was on a Fedora 7, x86 machine. Trying to reproduce it on Fedora
> Core 6, x86_64 doesn't produce the bug.

Also not reproducable on x86 F7 even though that machine was used for the demo
from which the attached session comes. sigh.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
                   ` (4 preceding siblings ...)
  2007-07-24 11:24 ` mark at klomp dot org
@ 2007-07-24 11:46 ` mark at klomp dot org
  2007-07-26 15:28 ` mark at klomp dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-07-24 11:46 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-07-24 11:46 -------
OK finally reproduced by:

$ frysk/bindir/fhpd frysk/pkglibdir/funit-rt-varchange
Attached to process 404
(fhpd) break @funit-rt-varchange.c@50
breakpoint 0
(fhpd) go
(fhpd) Breakpoint 0 @funit-rt-varchange.c@50

- Now externally from fhpd: $ kill 404

And back in fhpd do a go, which will result in:

(fhpd) Exception in thread "Thread-1" java.lang.IllegalStateException: Already
stepping
   at frysk.proc.Breakpoint.prepareStep(fhpd)
   at frysk.proc.live.LinuxTaskState$Running.sendContinue(fhpd)
   at frysk.proc.live.LinuxTaskState$Running.handleSignaledEvent(fhpd)
   at frysk.proc.live.LinuxTask.processSignaledEvent(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)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
                   ` (5 preceding siblings ...)
  2007-07-24 11:46 ` mark at klomp dot org
@ 2007-07-26 15:28 ` mark at klomp dot org
  2007-07-26 17:52 ` cagney at redhat dot com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-07-26 15:28 UTC (permalink / raw)
  To: frysk-bugzilla



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |4847
              nThis|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
                   ` (6 preceding siblings ...)
  2007-07-26 15:28 ` mark at klomp dot org
@ 2007-07-26 17:52 ` cagney at redhat dot com
  2007-08-10 11:22 ` mark at klomp dot org
  2007-08-15 11:07 ` mark at klomp dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cagney at redhat dot com @ 2007-07-26 17:52 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From cagney at redhat dot com  2007-07-26 17:52 -------
Given this assembler:

     LOAD_IMMED(REG0,0)
here:
     LOAD(REG0,REG0)

set a breakpoint at "here" and then try to step off it.  Should result in a
signaled notification with everything looking like it is still at "here".

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcvet at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
                   ` (7 preceding siblings ...)
  2007-07-26 17:52 ` cagney at redhat dot com
@ 2007-08-10 11:22 ` mark at klomp dot org
  2007-08-15 11:07 ` mark at klomp dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-08-10 11:22 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-08-10 11:22 -------
New testcase added frysk.proc.TestTaskObserverCode.testCodeSignalInterrupt

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug general/4747] frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping
  2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
                   ` (8 preceding siblings ...)
  2007-08-10 11:22 ` mark at klomp dot org
@ 2007-08-15 11:07 ` mark at klomp dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mark at klomp dot org @ 2007-08-15 11:07 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-08-15 11:06 -------
Fixed by:

frysk-core/frysk/proc/ChangeLog
2007-08-15  Mark Wielaard  <mwielaard@redhat.com>
 
    * getSetupAddress (getSetupAddress): New method.
    (stepAbort): Likewise.
    * TestTaskObserverCode.java (testCodeSignalInterrupt): Enable test.
    (testInstallCodeDuringCode): Likewise.
    (Symbol): New static helper class.
    (getGlobalLabelAddress): New helper method.
    (breakTest): New test harness for funit-raise.
    (testBreakDivZero): New test based on breakTest.
    (testBreakIllegalAddress): Likewise.
    (testBreakIllegalInstruction): Likewise.
    (testBreakSignalTerminate): Likewise.
    (testBreakSignalIgnore): Likewise.
    (AttachedObserver.task): New field.
    (updateAttached): Set task field.
    (TerminatingObserver.task): New field.
    (TerminatingObserver.signal): Likewise.
    (TerminatingObserver.value): Likewise.
    (TerminatingObserver.updateTerminating): Set new fields.

frysk-core/frysk/proc/live/ChangeLog
2007-08-15  Mark Wielaard  <mwielaard@redhat.com>

    * LinuxTaskState.java (Stepping.handleTrappedpEvent): Always check
    steppingBreakpoint.
    (checkBreakpointStepping): New helper method.
    (handleSignaledEvent): Use checkBreakpointStepping before
    continuing.
    (handleStoppedEvent): Likewise.

frysk-core/frysk/pkglibdir/ChangeLog
2007-08-15  Mark Wielaard  <mwielaard@redhat.com>

    * funit-raise.S: New test.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=4747

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-08-15 11:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-06 11:04 [Bug general/4747] New: frysk.rt.TestUpdatingDisplayValue java.lang.IllegalStateException: Already stepping mark at klomp dot org
2007-07-16 11:15 ` [Bug general/4747] " mark at klomp dot org
2007-07-18 13:49 ` mark at klomp dot org
2007-07-24 10:31 ` mark at klomp dot org
2007-07-24 10:57 ` mark at klomp dot org
2007-07-24 11:24 ` mark at klomp dot org
2007-07-24 11:46 ` mark at klomp dot org
2007-07-26 15:28 ` mark at klomp dot org
2007-07-26 17:52 ` cagney at redhat dot com
2007-08-10 11:22 ` mark at klomp dot org
2007-08-15 11:07 ` mark at klomp dot org

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).