Bug 6662

Summary: testCountDownTimersAndSignals(frysk.event.TestPollEventLoop)java.lang.UnsatisfiedLinkError: malloc
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal CC: cagney
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on: 6663    
Bug Blocks: 6675    

Description Andrew Cagney 2008-06-20 13:13:29 UTC
testCountDownTimersAndSignals(frysk.event.TestPollEventLoop)java.lang.UnsatisfiedLinkError:
malloc
   at frysk.sys.Poll$Fds.<init>(Poll.java:82)
   at frysk.sys.Poll.<clinit>(Poll.java:94)
   at java.lang.Class.initializeClass(libgcj.so.8rh)
   at frysk.event.PollEventLoop.signalEmpty(PollEventLoop.java:58)
   at frysk.event.EventLoop.<init>(EventLoop.java:67)
   at frysk.event.PollEventLoop.<init>(PollEventLoop.java:53)
   at frysk.event.TestPollEventLoop.newEventLoop(TestPollEventLoop.java:52)
   at frysk.event.EventLoopTestBed.setUp(EventLoopTestBed.java:67)
   at frysk.junit.Runner.runCases(Runner.java:214)
   at frysk.junit.Runner.runTestCases(Runner.java:441)
   at TestRunner.main(TestRunner.java:64)
Comment 1 Andrew Cagney 2008-06-20 21:18:32 UTC
Had something to do with nested classes; fix by just eliminating them.

commit 96412cf7f66a603e6ba048433317aed31c8b1543
Author: Andrew Cagney <cagney@redhat.com>
Date:   Fri Jun 20 17:13:03 2008 -0400

    (Re-)implement frysk.sys.poll, fixing JNI failures.
    
    Number of things:
    - move frysk.sys.Poll to its own package
    - make the nexted Poll$Fds class first class
    - Use FileDescriptor, instead of <<int fd>> in parameters
    This also fixes the JNI frysk.event failures.
    
    frysk-core/frysk/event/ChangeLog
    2008-06-20  Andrew Cagney  <cagney@redhat.com>
    
        * PollEventLoop.java: Update; Poll et.al., moved to
        frysk.sys.poll.
    
    frysk-sys/frysk/sys/ChangeLog
    2008-06-20  Andrew Cagney  <cagney@redhat.com>
    
        * Poll.java: Move to frysk.sys.poll.
        * PollBuilder.java: Ditto.
        * jni/Poll.cxx: Ditto.
        * cni/Poll.cxx: Ditto.
    
    frysk-sys/frysk/sys/poll/ChangeLog
    2008-06-20  Andrew Cagney  <cagney@redhat.com>
    
        * Poll.java: Moved from frysk.sys.
        * PollBuilder.java: Ditto.
        * jni/Poll.cxx: Ditto.
        * cni/Poll.cxx: Ditto.
        * PollFileDescriptors.java: Extract from Poll.java.
        * jni/PollFileDescriptors.java: Extract from jni/Poll.cxx.
        * cni/PollFileDescriptors.java: Similar.

Comment 2 Andrew Cagney 2008-06-20 21:19:18 UTC
*** Bug 6663 has been marked as a duplicate of this bug. ***