Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Unexpected Signal : 11

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are currently developing an application on a Sun Ultra 5 server, Solaris 8 operating system, JDK1.4.2_04-b05 and Perl version 5.8.4.

The application uses JPL to allow Java to execute some functions within a perl API and return the results. After a fixed number of calls between Java and Perl the following error occurs and the application core dumps. Any help with this matter would be greatly appreciated.

Stephen

Unexpected Signal : 11 occurred at PC=0xFE0EE000
Function=[Unknown. Nearest: JVM_IsSupportedJNIVersion+0x984]
Library=/usr/j2se/jre/lib/sparc/client/libjvm.so

Current Java thread:
at JPLINManagerDebug.retreiveRecords(Native Method)
at CTPMultipleTest.main(CTPMultipleTest.java:85)

Dynamic libraries:
0x10000 java
0xff360000 /usr/lib/libthread.so.1
0xff3a0000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
0xfe000000 /usr/j2se/jre/lib/sparc/client/libjvm.so
0xff2e0000 /usr/lib/libCrun.so.1
0xff1e0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff1c0000 /usr/lib/libsched.so.1
0xff310000 /usr/lib/libw.so.1
0xff0a0000 /usr/lib/libmp.so.2
0xff070000 /usr/j2se/jre/lib/sparc/native_threads/libhpi.so
0xff020000 /usr/j2se/jre/lib/sparc/libverify.so
0xfe7c0000 /usr/j2se/jre/lib/sparc/libjava.so
0xfe790000 /usr/j2se/jre/lib/sparc/libzip.so
0xfe730000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
0xfddc0000 /export/home/sb/SXIAPI/Prototype/JPLINManagerDebug/libJPLINManagerDebug.so
0xf1280000 /usr/local/lib/perl5/5.8.4/sun4-solaris/CORE/libperl.so
0xfc3e0000 /usr/jpl/lib/sun4-solaris/libPerlInterpreter.so
0xfc3a0000 /usr/local/lib/perl5/site_perl/5.8.4/sun4-solaris/auto/JNI/JNI.so
0xf1180000 /usr/j2se/jre/lib/sparc/libawt.so
0xfc180000 /usr/j2se/jre/lib/sparc/libmlib_image.so
0xfc2e0000 /usr/local/lib/perl5/5.8.4/sun4-solaris/auto/Socket/Socket.so
0xfc2c0000 /usr/local/lib/perl5/5.8.4/sun4-solaris/auto/Sys/Hostname/Hostname.so
0xfc2a0000 /usr/local/lib/perl5/5.8.4/sun4-solaris/auto/Cwd/Cwd.so
0xfc160000 /usr/local/lib/perl5/site_perl/5.8.4/sun4-solaris/auto/SVRQ/SVRQ.so
0xfbbe0000 /usr/lib/nss_files.so.1

Heap at VM Abort:
Heap
def new generation total 2112K, used 130K [0xf1400000, 0xf1620000, 0xf1b10000)
eden space 2048K, 6% used [0xf1400000, 0xf1420b88, 0xf1600000)
from space 64K, 0% used [0xf1600000, 0xf1600000, 0xf1610000)
to space 64K, 0% used [0xf1610000, 0xf1610000, 0xf1620000)
tenured generation total 1408K, used 0K [0xf1b10000, 0xf1c70000, 0xf5400000)
the space 1408K, 0% used [0xf1b10000, 0xf1b10000, 0xf1b10200, 0xf1c70000)
compacting perm gen total 4096K, used 964K [0xf5400000, 0xf5800000, 0xf9400000)
the space 4096K, 23% used [0xf5400000, 0xf54f13f0, 0xf54f1400, 0xf5800000)

Local Time = Thu Aug 12 14:20:34 2004
Elapsed Time = 2
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
#
# An error report file has been saved as hs_err_pid3319.log.
# Please refer to the file for further information.
#
Abort(coredump)
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

Well, it's either a bug in the implementation of the native method JPLINManagerDebug.retreiveRecords, or it's a bug in some other native method, or it's a JVM bug. I'd investigate these three in that order.

Make sure the native code checks for errors and/or exceptions after every JNI call; if you continue after getting such an error, the behavior can be undefined. Remember, this is C, so dereferencing a null pointer can get you a Sig11, rather than the nice neat NullPointerException you'll get in Java.
 
Stephen Burns
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ernest,

Managed to isolate the problem and it only seems to occur when passing an array of Objects back from the Native code. Have managed a work-around by passing delimited strings instead. Would still be interested in knowing the cause of the problem, if anyone has any suggestions.

Thanks again

Stephen.
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It couldn't be the JVM's attempt to throw an:

 
Stephen Burns
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Juliet,

Managed to find the error when stepping through the stack trace, see below

$ pstack core
core 'core' of 4247: java -Xcheck:jni -verbose:jni JPLStubbTestCaller
----------------- lwp# 1 / thread# 1 --------------------
ff3791f0 __sigprocmask (ff37b7f4, 0, 0, 29130, ff38c000, 0) + 8
ff36dd0c _sigon (29130, ff3938a8, 6, ffbedbfc, 29130, ff39321c) + d0
ff370d4c _thrp_kill (0, 1, 6, ff38c000, 1, ff2c0458) + f8
ff24bce0 raise (6, 0, 0, ffffffff, ff2c03c4, ff3931fc) + 40
ff235984 abort (ff2bc008, ffbedd50, 0, fffffff8, 4, ffbedd71) + 100
fe33987c __1cCosFabort6Fi_v_ (1, fe3d15ca, ffbede00, fe3fa000, fe40f908, 35e820) + 80
fe337974 __1cCosbBhandle_unexpected_exception6FpnGThread_ipCpv_v_ (2cde0, a, fe0ee000, ffbeeb38, a,
0) + 2cc
fe33d7e8 JVM_handle_solaris_signal (fe0ee000, ffbeeb38, ffbee880, 3400, 3558, 0) + 8a4
ff37b118 __sighndlr (a, ffbeeb38, ffbee880, fe33b2f4, 291d8, 291c8) + c
ff37811c sigacthandler (a, 29130, 0, 0, 0, ff38c000) + 708
-- JNI exception raised (java.lang.yourNoFunnyBawbag)

 
reply
    Bookmark Topic Watch Topic
  • New Topic