Bug 5738

Summary: testHaveSysRoot(frysk.hpd.TestSysRoot) fails as process reaches sigsegv (ie break main did not fire)
Product: frysk Reporter: Phil Muldoon <pmuldoon>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2246    

Description Phil Muldoon 2008-02-06 12:14:16 UTC
When run:

There was 1 error:
1) testHaveSysRoot(frysk.hpd.TestSysRoot)frysk.expunit.TimeoutException: timeout
of 5expired; expecting:  <<go.*\n\(fhpd\) Breakpoint>>; buffer <<go
Running process 10613
(fhpd) Task 10613 is terminating from signal SIGSEGV(11)
>>
   at frysk.expunit.Child.expectMilliseconds(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.hpd.TestSysRoot.testHaveSysRoot(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

Doing the test manually in fhpd produces:

[pmuldoon@localhost frysk-core]$ ./frysk/bindir/fhpd 
(fhpd) load
/home/pmuldoon/frysk_bin/frysk-core/frysk/pkglibdir/test-sysroot/usr/bin/funit-addresses
-sysroot /home/pmuldoon/frysk_bin/frysk-core/frysk/pkglibdir/test-sysroot/
Loaded executable file:
/home/pmuldoon/frysk_bin/frysk-core/frysk/pkglibdir/test-sysroot/usr/bin/funit-addresses
(fhpd) start
Attached to process 12454
starting/running with this command:
/home/pmuldoon/frysk_bin/frysk-core/frysk/pkglibdir/test-sysroot/usr/bin/funit-addresses

(fhpd) break main
breakpoint 0 deferred
(fhpd) go
Running process 12454
(fhpd) Task 12454 is terminating from signal SIGSEGV(11)
Comment 1 Stan Cox 2008-02-06 20:01:54 UTC
Recalculate CRC for test-sysroot.
    
* Makefile.am (frysk/pkglibdir/funit-addresses-stripped): Run
eu-strip last so CRC gets recalculated.

(missed because test-sysroot wasn't rebuilt prior to testing the "Check
debuginfo CRC." commit)