Crash in com.sun.jna.Memory.finalize() during VM shutdown
---------------------------------------------------------

                 Key: JRUBY-3831
                 URL: http://jira.codehaus.org/browse/JRUBY-3831
             Project: JRuby
          Issue Type: Bug
          Components: Windows
    Affects Versions: JRuby 1.3
         Environment: Microsoft Windows [Version 6.1.7100]

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
            Reporter: Trejkaz
         Attachments: hs_err_pid2288.log

(Without knowing for sure, I assigned this to Windows for now.)

We use JRuby for functional testing, and the tests have been passing except 
that sometimes at the end of the JVM's life, Hotspot bombs out with an error 
from JNA (crash log attached.)

I have done searching on the error, and the only case of it was one where one 
of the user's other DLLs was to blame.  Because we do have a lot of DLLs loaded 
in order to run these tests, I can't rule that out here either, but it's very 
hard to check.  And the issue isn't 100% reproducible either, but occurs around 
10% of the time.  This kind of thing *could* occur in code which allocates JNA 
memory though, and I had a scan through the calls we make to JRuby and it's 
pretty much all the file utilities.

After cutting out all the calls to our own code (which doesn't use JNA yet, 
incidentally) I am left with only three calls into the utility libraries which 
might (although it seems questionable) require native calls.

1. FileUtils.rmtree
2. FileUtils.rm_f
3. File.open(filename, "rb") do |f| ... end


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to