cancel
Showing results for 
Search instead for 
Did you mean: 

SIGSEGV problems in HotSpot VM

milprog
Champ in-the-making
Champ in-the-making
Hi all

My alfresco-1.3.0-linux mostly works as expected, but sometimes I get an error in catalina.out like the message below. Restarting alfresco then seems to make everything work again.

My environment is a linux-vserver with arch i386 running on a fc4-x86_64 box. The linux-vserver has default (i.e. minimal) privileges.

Any ideas? Should I really try to submit a bug with sun microsystems?

…I found that the errors always happen during lucene indexing, in the hs_err.pidxxxx file I find:

Current CompileTask:
opto:2142      org.apache.lucene.index.IndexReader$1.doBody()Ljava/lang/Object; (99 bytes)

Is there a simple way to prevent lucene from indexing large documents? We don't need these indexes in these cases anyway.


Regards
–Marcel

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xf78c0c41, pid=7350, tid=3455056816
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_05-b05 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x39ec41]
#
# An error report file with more information is saved as hs_err_pid7350.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
9 REPLIES 9

kevinr
Star Contributor
Star Contributor
This is an known issue with the JDK 1.5_06 JVM - if you upgrade to JDK _08 or _09 it is fixed.

Or if you can't upgrade, you can create a file called:
.hotspot_compiler
containing the following lines:

exclude  org/apache/lucene/index/IndexReader$1 doBody
exclude  org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger mergeIndexes
exclude  org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger mergeDeletions

and place it in the bin directory of tomcat.

Thanks,

Kevin

milprog
Champ in-the-making
Champ in-the-making
thanks a lot, I upgraded to _09 and did not get this error anymore in the last days.
regards
–Marcel

lgr
Champ in-the-making
Champ in-the-making
Hi,

For your information, the bug persists.
Under debian linux, with jvm _09 :
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x406003e9, pid=2428, tid=1793940400
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_09-b03 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x49b3e9]
#
# An error report file with more information is saved as hs_err_pid2428.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Laurent.

kevinr
Star Contributor
Star Contributor
That's a shame Smiley Sad we have not yet seen it return using _08 or _09 JVM. I guess you still need the hotspot compiler setting until Sun fix this Smiley Sad

Kevin

lgr
Champ in-the-making
Champ in-the-making
ok, just a question : does this quick fix downgrades any alfresco feature ?

Laurent.

paulhh
Champ in-the-making
Champ in-the-making
Hi

The hotspot exclude just stops the hotspot compiler from trying to optimise (and in this case badly) the specific methods.  So there is no functional improvement.

It would help us if you could look at the hs_err_pid2428.log file, which should say exactly which method caused the problem.

Cheers
Paul.

lgr
Champ in-the-making
Champ in-the-making
Is it enough ?

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x406003e9, pid=2428, tid=1793940400
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_09-b03 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x49b3e9]
#

—————  T H R E A D  —————

Current thread (0x080e6008):  VMThread [id=2441]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000000c

Registers:
EAX=0x00000000, EBX=0x4071de50, ECX=0x00000014, EDX=0x00000008
ESP=0x6aed5230, EBP=0x6aed5268, ESI=0x537df018, EDI=0x5373cd90
EIP=0x406003e9, CR2=0x0000000c, EFLAGS=0x00000293

Top of Stack: (sp=0x6aed5230)
0x6aed5230:   0806f0b0 4072d288 6aed52c8 4037855b
0x6aed5240:   6aed5270 5364c088 4a511210 5373cd90
0x6aed5250:   5d571870 4befe418 00000000 4071de50
0x6aed5260:   0806dd98 6aed52b0 6aed5288 40386769
0x6aed5270:   0806dd98 6aed52b0 0806dd98 0806dd98
0x6aed5280:   0806dc78 0806c790 6aed52c8 40376fff
0x6aed5290:   0806dc78 6aed52b0 00000000 00000000
0x6aed52a0:   00011ac8 6aed52bc 0806dc78 6aed52b0

Instructions: (pc=0x406003e9)
0x406003d9:   c1 ee 02 e9 5a ff ff ff 89 fe 8b 46 04 8d 50 08
0x406003e9:   8b 4a 04 85 c9 0f 8e ac 00 00 00 8d 34 8e 3b 75

Stack: [0x6ae56000,0x6aed6000),  sp=0x6aed5230,  free space=508k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x49b3e9]
V  [libjvm.so+0x221769]
V  [libjvm.so+0x211fff]
V  [libjvm.so+0x212d07]
V  [libjvm.so+0x221cad]
V  [libjvm.so+0x4ca50e]
V  [libjvm.so+0x210517]
V  [libjvm.so+0x19455e]
V  [libjvm.so+0x2107b2]
V  [libjvm.so+0x510af4]
V  [libjvm.so+0x510826]
V  [libjvm.so+0x50fe37]
V  [libjvm.so+0x5100a5]
V  [libjvm.so+0x50fc10]
V  [libjvm.so+0x42e698]
C  [libpthread.so.0+0x4b63]

VM_Operation (0x6f2fed78): generation collection for allocation, mode: safepoint, requested by thread 0x6bf77e90


—————  P R O C E S S  —————

Java Threads: ( => current thread )
  0x08b48130 JavaThread "MessageDispatcher" [_thread_in_native, id=2771]
  0x0894f928 JavaThread "Sess_FTP14_192.168.2.105" daemon [_thread_blocked, id=2762]
  0x087ae6b8 JavaThread "MessageDispatcher" daemon [_thread_in_native, id=2619]
  0x08946a68 JavaThread "Index merger thread /opt/alfresco/alf_data/lucene-indexes/workspace/lightWeightVersionStore" daemon [_thread_blocked, id=2615]
  0x0844edd8 JavaThread "Index cleaner thread /opt/alfresco/alf_data/lucene-indexes/workspace/lightWeightVersionStore" daemon [_thread_blocked, id=2614]
  0x085eb8c0 JavaThread "Index merger thread /opt/alfresco/alf_data/lucene-indexes/user/alfrescoUserStore" daemon [_thread_blocked, id=2575]
  0x08c87740 JavaThread "Index cleaner thread /opt/alfresco/alf_data/lucene-indexes/user/alfrescoUserStore" daemon [_thread_blocked, id=2574]
  0x089ab430 JavaThread "Index merger thread /opt/alfresco/alf_data/lucene-indexes/archive/SpacesStore" daemon [_thread_blocked, id=2572]
  0x0844dc28 JavaThread "Index cleaner thread /opt/alfresco/alf_data/lucene-indexes/archive/SpacesStore" daemon [_thread_blocked, id=2571]
  0x085eabf0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=2567]
  0x085e9a28 JavaThread "TP-Processor4" daemon [_thread_in_native, id=2566]
  0x0827dc80 JavaThread "TP-Processor3" daemon [_thread_blocked, id=2565]
  0x08a2bf68 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2564]
  0x0827eac8 JavaThread "TP-Processor1" daemon [_thread_blocked, id=2563]
  0x08a2acf8 JavaThread "http-80-Monitor" [_thread_blocked, id=2562]
  0x084d7ec0 JavaThread "http-80-Processor25" daemon [_thread_blocked, id=2561]
  0x084d6e70 JavaThread "http-80-Processor24" daemon [_thread_blocked, id=2560]
  0x084d6230 JavaThread "http-80-Processor23" daemon [_thread_blocked, id=2559]
  0x08ac47c0 JavaThread "http-80-Processor22" daemon [_thread_in_native, id=2558]
  0x08ac3a48 JavaThread "http-80-Processor21" daemon [_thread_blocked, id=2557]
  0x08466c60 JavaThread "http-80-Processor20" daemon [_thread_blocked, id=2556]
  0x08465ee8 JavaThread "http-80-Processor19" daemon [_thread_blocked, id=2555]
  0x08465170 JavaThread "http-80-Processor18" daemon [_thread_blocked, id=2554]
  0x084644a8 JavaThread "http-80-Processor17" daemon [_thread_blocked, id=2553]
  0x08c7db20 JavaThread "http-80-Processor16" daemon [_thread_blocked, id=2552]
  0x08c7c748 JavaThread "http-80-Processor15" daemon [_thread_blocked, id=2551]
  0x08c7bba0 JavaThread "http-80-Processor14" daemon [_thread_blocked, id=2550]
  0x080e1458 JavaThread "http-80-Processor13" daemon [_thread_blocked, id=2549]
  0x080e07d8 JavaThread "http-80-Processor12" daemon [_thread_blocked, id=2548]
  0x080dff38 JavaThread "http-80-Processor11" daemon [_thread_blocked, id=2547]
  0x084b0768 JavaThread "http-80-Processor10" daemon [_thread_blocked, id=2546]
  0x084afae8 JavaThread "http-80-Processor9" daemon [_thread_blocked, id=2545]
  0x084aee68 JavaThread "http-80-Processor8" daemon [_thread_blocked, id=2544]
  0x084ae240 JavaThread "http-80-Processor7" daemon [_thread_blocked, id=2543]
  0x08ab5340 JavaThread "http-80-Processor6" daemon [_thread_blocked, id=2542]
  0x08ab43c8 JavaThread "http-80-Processor5" daemon [_thread_blocked, id=2541]
  0x0828fa08 JavaThread "http-80-Processor4" daemon [_thread_blocked, id=2540]
  0x08cf50d0 JavaThread "http-80-Processor3" daemon [_thread_blocked, id=2539]
  0x084ad720 JavaThread "http-80-Processor2" daemon [_thread_blocked, id=2538]
  0x084ad140 JavaThread "http-80-Processor1" daemon [_thread_blocked, id=2537]
  0x08409928 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=2536]
  0x08544900 JavaThread "TcpipSMB_Handler" daemon [_thread_in_native, id=2535]
  0x6e7ae710 JavaThread "FTP Server" [_thread_blocked, id=2534]
  0x08d95088 JavaThread "TCPHostAnnouncer" daemon [_thread_blocked, id=2533]
  0x08d95270 JavaThread "NetBIOS_Handler" daemon [_thread_in_native, id=2532]
  0x08d94710 JavaThread "NetBIOSRefresh" daemon [_thread_blocked, id=2531]
  0x08d96240 JavaThread "NetBIOSRequest" daemon [_thread_blocked, id=2530]
  0x707ffd58 JavaThread "SMB Server" daemon [_thread_blocked, id=2528]
  0x6f6ffab8 JavaThread "NetBIOS Name Server" daemon [_thread_blocked, id=2527]
  0x6ff1bb00 JavaThread "Notify_workspace://SpacesStore/252e27c3-7673-11db-b45f-8fcae631b67f" daemon [_thread_blocked, id=2526]
  0x706955c8 JavaThread "FileStateExpire" daemon [_thread_blocked, id=2525]
  0x6e8516f8 JavaThread "Index merger thread /opt/alfresco/alf_data/lucene-indexes/workspace/SpacesStore" daemon [_thread_blocked, id=2524]
  0x6e7e7d98 JavaThread "Index cleaner thread /opt/alfresco/alf_data/lucene-indexes/workspace/SpacesStore" daemon [_thread_blocked, id=2523]
  0x6c03fc40 JavaThread "Index merger thread /opt/alfresco/alf_data/lucene-indexes/system/system" daemon [_thread_blocked, id=2519]
  0x6fdfdea8 JavaThread "Index cleaner thread /opt/alfresco/alf_data/lucene-indexes/system/system" daemon [_thread_blocked, id=2518]
  0x08954de8 JavaThread "Thread-6" daemon [_thread_blocked, id=2513]
  0x6fff7c20 JavaThread "DefaultScheduler_QuartzSchedulerThread" [_thread_blocked, id=2508]
  0x6bcb8e00 JavaThread "DefaultScheduler_Worker-9" [_thread_blocked, id=2507]
  0x6bcb8120 JavaThread "DefaultScheduler_Worker-8" [_thread_blocked, id=2506]
  0x6bfd4a30 JavaThread "DefaultScheduler_Worker-7" [_thread_blocked, id=2505]
  0x700fae48 JavaThread "DefaultScheduler_Worker-6" [_thread_blocked, id=2504]
  0x700fa240 JavaThread "DefaultScheduler_Worker-5" [_thread_blocked, id=2503]
  0x6bf77e90 JavaThread "DefaultScheduler_Worker-4" [_thread_blocked, id=2502]
  0x70699500 JavaThread "DefaultScheduler_Worker-3" [_thread_blocked, id=2501]
  0x6ffac450 JavaThread "DefaultScheduler_Worker-2" [_thread_blocked, id=2500]
  0x6ffac228 JavaThread "DefaultScheduler_Worker-1" [_thread_blocked, id=2499]
  0x6bdcc3a0 JavaThread "DefaultScheduler_Worker-0" [_thread_blocked, id=2498]
  0x08737b88 JavaThread "Store webservice.UserQuerySessionCache Expiry Thread" daemon [_thread_blocked, id=2494]
  0x0875bf98 JavaThread "Store webservice.UserQuerySessionCache Spool Thread" daemon [_thread_blocked, id=2493]
  0x08d996b0 JavaThread "Store webservice.QuerySessionCache Expiry Thread" daemon [_thread_blocked, id=2492]
  0x08bea9d0 JavaThread "Store webservice.QuerySessionCache Spool Thread" daemon [_thread_blocked, id=2491]
  0x6eb79a30 JavaThread "PassthruReaper" daemon [_thread_blocked, id=2489]
  0x6fffb6c0 JavaThread "PassthruOfflineChecker" daemon [_thread_blocked, id=2488]
  0x08d14e08 JavaThread "HSQLDB Timer @15e00b7" daemon [_thread_blocked, id=2475]
  0x0808b548 JavaThread "Timer-0" daemon [_thread_blocked, id=2474]
  0x080f7658 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2449]
  0x080f61d0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=2448]
  0x080f5170 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2447]
  0x080f4040 JavaThread "AdapterThread" daemon [_thread_blocked, id=2446]
  0x080f31c8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2445]
  0x080e8988 JavaThread "Finalizer" daemon [_thread_blocked, id=2443]
  0x080e84f8 JavaThread "Reference Handler" daemon [_thread_blocked, id=2442]
  0x0805cde0 JavaThread "main" [_thread_in_native, id=2428]

Other Threads:
=>0x080e6008 VMThread [id=2441]
  0x080f8af8 WatcherThread [id=2450]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x0805c230/0x0805c258] Threads_lock - owner thread: 0x080e6008
[0x0805c680/0x0805c698] Heap_lock - owner thread: 0x6bf77e90

Heap
def new generation   total 34176K, used 3776K [0x46c30000, 0x49140000, 0x4a510000)
  eden space 30400K,   0% used [0x46c30000, 0x46c30000, 0x489e0000)
  from space 3776K, 100% used [0x48d90000, 0x49140000, 0x49140000)
  to   space 3776K,   0% used [0x489e0000, 0x489e0000, 0x48d90000)
tenured generation   total 311808K, used 311686K [0x4a510000, 0x5d590000, 0x66c30000)
   the space 311808K,  99% used [0x4a510000, 0x5d571870, 0x4befe600, 0x5d590000)
compacting perm gen  total 40960K, used 40869K [0x66c30000, 0x69430000, 0x6ac30000)
   the space 40960K,  99% used [0x66c30000, 0x694196f0, 0x69419800, 0x69430000)
No shared spaces configured.

lgr
Champ in-the-making
Champ in-the-making
The last args that could be usefull to you.
I omitted the dynamic library list, but i can add it if it can help you.

VM Arguments:
jvm_args: -Xms128m -Xmx512m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/alfresco/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/alfresco/tomcat/common/endorsed -Dcatalina.base=/opt/alfresco/tomcat -Dcatalina.home=/opt/alfresco/tomcat -Djava.io.tmpdir=/opt/alfresco/tomcat/temp
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/opt/jdk1.5.0_09
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/local/mysql/bin
LD_LIBRARY_PATH=/opt/jdk1.5.0_09/jre/lib/i386/server:/opt/jdk1.5.0_09/jre/lib/i386:/opt/jdk1.5.0_09/jre/../lib/i386
SHELL=/bin/bash

Signal Handlers:
SIGSEGV: [libjvm.so+0x508860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x508860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x42cac0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x42cac0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x42cac0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x42ef10], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x42e940], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: [libjvm.so+0x42e940], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x42e940], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004


—————  S Y S T E M  —————

OS:3.1

uname:Linux 2.6.8-2-686 #1 Tue Aug 16 13:22:48 UTC 2005 i686
libc:glibc 2.3.2 NPTL 0.60
rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
load average:1.45 1.79 2.50

CPU:total 1 (cores per cpu 1, threads per core 1) family 6 model 11 stepping 4, cmov, cx8, fxsr, mmx, sse

Memory: 4k page, physical 752048k(3872k free), swap 996020k(593888k free)

vm_info: Java HotSpot(TM) Server VM (1.5.0_09-b03) for linux-x86, built on Oct 12 2006 09:41:12 by java_re with gcc 3.2.1-7a (J2SE release)

andy
Champ on-the-rise
Champ on-the-rise
Hi

VM_Operation (0x6f2fed78): generation collection for allocation, mode: safepoint, requested by thread 0x6bf77e90

Indicates a problem in the JVM garbage collection.

There are other similar reports to be found on the web - see http://forum.java.sun.com/thread.jspa?threadID=764551 for example.

I would suggest trying a different version of the JVM and/or changing the garbage collection options.

Regards

Andy