

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
6 messages in net.java.dev.jna.usersRe: Failed build of repository| From | Sent On | Attachments |
|---|---|---|
| Richard Otero | Dec 18, 2007 1:03 pm | .log |
| Timothy Wall | Dec 18, 2007 2:04 pm | |
| Timothy Wall | Dec 18, 2007 8:09 pm | |
| Richard Otero | Dec 19, 2007 10:26 am | .log |
| Timothy Wall | Dec 19, 2007 10:46 am | |
| Richard Otero | Dec 19, 2007 5:51 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: Failed build of repository | Actions... |
|---|---|---|
| From: | Richard Otero (rich...@gmail.com) | |
| Date: | Dec 19, 2007 10:26:40 am | |
| List: | net.java.dev.jna.users | |
| Attachments: | ||
The Structure test testNestedStructureTypeInfo() is the one that's failing on my machine.
Each of the three assert statements below were able to cause a failure in the VM. Commenting them all allowed for the tests to complete without error.
assertEquals("Wrong type information for 'inner' field", inner, els.getPointer(0)); assertEquals("Wrong type information for integer field", s.getTypeInfo(new Integer(0)), els.getPointer(Pointer.SIZE)); assertNull("Type element list should be null-terminated", els.getPointer(Pointer.SIZE*2));
--------------------------------------------------------------- I inserted print statements to write out the variables the asserts were operating on:
The testNestedStructureTypeInfo test is starting.
Info on s variable from testNestedStructureTypeInfo: com.sun.jna.StructureTest$NestedTypeInfoStructure(Native Allocated Memory <0x2aaaf14912e0> (8 bytes)) class com.sun.jna.StructureTest$NestedTypeInfoStructure$Inner inner@0=com.sun.jna.StructureTest$NestedTypeInfoStructure$Inner(Native Allocated Memory <0x2aaaf1491300> (4 bytes)) int dummy@0=0 memory dump [00000000] int dummy@4=0 memory dump [00000000] [00000000]
Info on p variable from testNestedStructureTypeInfo: Native Allocated Memory <0x2aaaf190b050> (24 bytes) els info from testNestedStructureTypeInfo: native@0xf149152000000000
Info on inner variable from testNestedStructureTypeInfo: Native Allocated Memory <0x2aaaf1491620> (24 bytes)
---------------------------------------------------------------------
Hope this gives more insight into the behavior on my machine.
[junit] Running com.sun.jna.StructureTest [junit] # [junit] # An unexpected error has been detected by Java Runtime Environment: [junit] # [junit] # SIGSEGV (0xb) at pc=0x00002b7ce3d7ccf6, pid=2819, tid=1076017488 [junit] # [junit] # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-b05 mixed mode) [junit] # Problematic frame: [junit] # C [libc.so.6+0x7ccf6] memcpy+0x46 [junit] # [junit] # An error report file with more information is saved as hs_err_pid2819.log [junit] # [junit] # If you would like to submit a bug report, please visit: [junit] # http://java.sun.com/webapps/bugreport/crash.jsp [junit] #
I've attached the log file that was generated by the VM.
thanks! Richard
Date: Tue, 18 Dec 2007 23:09:47 -0500 From: Timothy Wall <twal...@dev.java.net> Content-type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Subject: [jna-users]
I don't see anything obvious. Make sure you do a clean build, then perhaps dump the FFIType structure (Structure.toString() prints the field values and memory contents) just prior to the crash.








.log