Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Problems running in a chroot jail.

Steven W. Orr

2003-08-21


Environment is Solaris 2.8 with java 1.4.2.

I have the tomcat book and I'm trying to set the jail up. I created the
directory structure and using ldd I rang out the list of shared objects
that are needed. I'm not getting past running java.

Using normal unchrooted java, here's what I get:

bash-2.03# /usr/j2se/bin/java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
bash-2.03#


but when I run it in the jail, I get this:

bash-2.03# chroot /usr/local/jakarta-tomcat-4.1.24-chroot
/usr/j2se/bin/java -version
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#
Segmentation Fault (core dumped)
bash-2.03#

I looked at truss output but I don't see anything obvious except at the
very end:

1367:  sysconfig(_CONFIG_NPROC_CONF)      = 1
1367:  sysconfig(_CONFIG_NPROC_ONLN)      = 1
1367:  sysconfig(_CONFIG_PHYS_PAGES)      = 65536
1367:  open("/dev/zero", O_RDWR)      Err#2 ENOENT
1367:  write(1, " #\n", 2)        = 2
1367:  write(1, " #  H o t S p o t  V i".., 48)  = 48
1367:  write(1, " #  P l e a s e  r e p".., 30)  = 30
1367:  write(1, " #  h t t p : / / j a v".., 44)  = 44
1367:  write(1, " #\n", 2)        = 2
1367:  write(1, " #  J a v a  V M :  J".., 61)  = 61
1367:  write(1, " #\n", 2)        = 2
1367:     Incurred fault #6, FLTBOUNDS %pc = 0xFE237F3C
1367:      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000078
1367:     Received signal #11, SIGSEGV [default]
1367:      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000078
1367:    *** process killed ***

It looks like it's trying to convert a floating point exception into a
segfault.

I have no clue what to try next. Anyone?

TIA

--
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question?
steveo at syslang.net

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.