commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Agris Klimkans <Agris.Klimk...@adventus.lv>
Subject Re: jsvc on Solaris9_x86
Date Thu, 04 Dec 2003 09:09:18 GMT
The 'jvm.cfg' files of j2sdk 1.3.1 and 1.4.x are different. In 1.4.x, using the location and
format of the file from 1.3.1 seems to solve the problem.


----- Original Message ----- 
From: "Agris Klimkans" <Agris.Klimkans@adventus.lv>
To: <commons-user@jakarta.apache.org>
Sent: Tuesday, December 02, 2003 6:25 PM
Subject: jsvc on Solaris9_x86


> I have not been able to run jsvc on Solaris9_ x86 with the latest patches.
> I followed the installation instructions from http://jakarta.apache.org/commons/daemon/jsvc.html
> gcc, gmake and autoconfig are from packages from the product CDs, java is the j2sdk1.4.2_02
binary from java.sun.com. Compilation completes without errors. However, jsvc crashes at startup:
> 
> 
> bash-2.05$ ./jsvc -help
> Usage: jsvc [-options] class [args...]
> 
> Where options include:
> 
>     -jvm <JVM name>
>         use a specific Java Virtual Machine. Available JVMs:
> Segmentation Fault (core dumped)
> bash-2.05$
> 
> 
> 
> 'truss' produces the following:
> 
> bash-2.05$ truss ./jsvc -help
> execve("jsvc", 0x08047C30, 0x08047C3C)  argc = 2
> open(".", O_RDONLY|O_LARGEFILE)                 = 3
> fstat64(3, 0x080473BC)                          = 0
> close(3)                                        = 0
> open("./..", O_RDONLY|O_NDELAY|O_LARGEFILE)     = 3
> fstat64(3, 0x080473BC)                          = 0
> getdents64(3, 0x08044A90, 8192)                 = 240
> close(3)                                        = 0
> open("./../..", O_RDONLY|O_NDELAY|O_LARGEFILE)  = 3
> fstat64(3, 0x080473BC)                          = 0
> getdents64(3, 0x08044A90, 8192)                 = 256
> close(3)                                        = 0
> open("./../../..", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
> fstat64(3, 0x080473BC)                          = 0
> getdents64(3, 0x08044A90, 8192)                 = 104
> close(3)                                        = 0
> open("./../../../..", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
> fstat64(3, 0x080473BC)                          = 0
> getdents64(3, 0x08044A90, 8192)                 = 760
> close(3)                                        = 0
> open("./../../../../..", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
> fstat64(3, 0x080473BC)                          = 0
> getdents64(3, 0x08044A90, 8192)                 = 80
> close(3)                                        = 0
> open("./../../../../../..", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
> fstat64(3, 0x080473BC)                          = 0
> getdents64(3, 0x08044A90, 8192)                 = 104
> close(3)                                        = 0
> open("./../../../../../../..", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
> fstat64(3, 0x080473BC)                          = 0
> open("/etc/mnttab", O_RDONLY|O_LARGEFILE)       = 4
> read(4, " /", 1)                                = 1
> ioctl(4, MNTIOC_NMNTS, 0x08044A68)              = 0
> fxstat(2, 4, 0x08044938)                        = 0
> ioctl(4, MNTIOC_GETDEVLIST, 0x080448B8)         = 0
> read(4, " d e v / d s k / c 0 t 0".., 925)      = 925
> close(4)                                        = 0
> lstat64("/export", 0x080449D4)                  = 0
> close(3)                                        = 0
> lstat64("/export/home/agrisk/commons-daemon/dist/bin/jsvc-src", 0xDDBF1CF8) = 0
> resolvepath("/export/home/agrisk/commons-daemon/dist/bin/jsvc-src/jsvc", "/export/home/agrisk/commons-daemon/dist/bin/js
> vc-src/jsvc", 1023) = 57
> sysconfig(_CONFIG_PAGESIZE)                     = 4096
> resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
> xstat(2, "/export/home/agrisk/commons-daemon/dist/bin/jsvc-src/jsvc", 0x08047A84) = 0
> open("/var/ld/ld.config", O_RDONLY)             = 3
> fxstat(2, 3, 0x080479A4)                        = 0
> mmap(0x00000000, 112, PROT_READ, MAP_SHARED, 3, 0) = 0xDDBB0000
> close(3)                                        = 0
> xstat(2, "/usr/lib/libdl.so.1", 0x080474E4)     = 0
> open("/usr/lib/libdl.so.1", O_RDONLY)           = 3
> fxstat(2, 3, 0x080474E4)                        = 0
> mmap(0x00000000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xDDBA0000
> resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19
> close(3)                                        = 0
> xstat(2, "/usr/lib/libthread.so.1", 0x080474E4) = 0
> open("/usr/lib/libthread.so.1", O_RDONLY)       = 3
> fxstat(2, 3, 0x080474E4)                        = 0
> mmap(0x00000000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xDDB90000
> mmap(0x00000000, 163840, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xDDB60000
> mmap(0xDDB86000, 3352, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 90112)
= 0xDDB86000
> mmap(0xDDB87000, 2704, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON,
-1, 0) = 0xDDB87000
> munmap(0xDDB76000, 65536)                       = 0
> mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) =
0xDDB50000
> resolvepath("/usr/lib/libthread.so.1", "/usr/lib/libthread.so.1", 1023) = 23
> memcntl(0xDDB60000, 26148, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
> close(3)                                        = 0
> xstat(2, "/usr/lib/libc.so.1", 0x080474E4)      = 0
> open("/usr/lib/libc.so.1", O_RDONLY)            = 3
> fxstat(2, 3, 0x080474E4)                        = 0
> mmap(0xDDB90000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xDDB90000
> mmap(0x00000000, 737280, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xDDA90000
> mmap(0xDDB3D000, 21564, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 643072)
= 0xDDB3D000
> mmap(0xDDB43000, 3704, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON,
-1, 0) = 0xDDB43000
> munmap(0xDDB2D000, 65536)                       = 0
> resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18
> memcntl(0xDDA90000, 98248, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
> close(3)                                        = 0
> xstat(2, "/usr/lib/libc.so.1", 0x080474E4)      = 0
> xstat(2, "/usr/lib/libdl.so.1", 0x080474E4)     = 0
> xstat(2, "/usr/lib/libdl.so.1", 0x080474E4)     = 0
> mmap(0x00000000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xDDA80000
> munmap(0xDDB90000, 4096)                        = 0
> sigfillset(0xDDB42EB0)                          = 0
> sigprocmask(SIG_SETMASK, 0xDDB87A54, 0x080479CC) = 0
> getcontext(0x080477CC)
> getrlimit(RLIMIT_STACK, 0x080479DC)             = 0
> sysconfig(_CONFIG_PAGESIZE)                     = 4096
> mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) =
0xDDB90000
> sysi86(SI86DSCR, 0x08047788, 0xDDB3D000, 0x00000107) = 0x00000000
> sysconfig(_CONFIG_SEM_VALUE_MAX)                = 2147483647
> sysconfig(_CONFIG_NPROC_ONLN)                   = 1
> getpid()                                        = 5416 [5415]
> sigaction(SIGHUP, 0x00000000, 0x08047798)       = 0
> sigaction(SIGINT, 0x00000000, 0x08047798)       = 0
> sigaction(SIGQUIT, 0x00000000, 0x08047798)      = 0
> sigaction(SIGILL, 0x00000000, 0x08047798)       = 0
> sigaction(SIGTRAP, 0x00000000, 0x08047798)      = 0
> sigaction(SIGABRT, 0x00000000, 0x08047798)      = 0
> sigaction(SIGEMT, 0x00000000, 0x08047798)       = 0
> sigaction(SIGFPE, 0x00000000, 0x08047798)       = 0
> sigaction(SIGKILL, 0x00000000, 0x08047798)      = 0
> sigaction(SIGBUS, 0x00000000, 0x08047798)       = 0
> sigaction(SIGSEGV, 0x00000000, 0x08047798)      = 0
> sigaction(SIGSYS, 0x00000000, 0x08047798)       = 0
> sigaction(SIGPIPE, 0x00000000, 0x08047798)      = 0
> sigaction(SIGALRM, 0x00000000, 0x08047798)      = 0
> sigaction(SIGTERM, 0x00000000, 0x08047798)      = 0
> sigaction(SIGUSR1, 0x00000000, 0x08047798)      = 0
> sigaction(SIGUSR2, 0x00000000, 0x08047798)      = 0
> sigaction(SIGCLD, 0x00000000, 0x08047798)       = 0
> sigaction(SIGPWR, 0x00000000, 0x08047798)       = 0
> sigaction(SIGWINCH, 0x00000000, 0x08047798)     = 0
> sigaction(SIGURG, 0x00000000, 0x08047798)       = 0
> sigaction(SIGPOLL, 0x00000000, 0x08047798)      = 0
> sigaction(SIGSTOP, 0x00000000, 0x08047798)      = 0
> sigaction(SIGTSTP, 0x00000000, 0x08047798)      = 0
> sigaction(SIGCONT, 0x00000000, 0x08047798)      = 0
> sigaction(SIGTTIN, 0x00000000, 0x08047798)      = 0
> sigaction(SIGTTOU, 0x00000000, 0x08047798)      = 0
> sigaction(SIGVTALRM, 0x00000000, 0x08047798)    = 0
> sigaction(SIGPROF, 0x00000000, 0x08047798)      = 0
> sigaction(SIGXCPU, 0x00000000, 0x08047798)      = 0
> sigaction(SIGXFSZ, 0x00000000, 0x08047798)      = 0
> sigaction(SIGWAITING, 0x00000000, 0x08047798)   = 0
> sigaction(SIGLWP, 0x00000000, 0x08047798)       = 0
> sigaction(SIGFREEZE, 0x00000000, 0x08047798)    = 0
> sigaction(SIGTHAW, 0x00000000, 0x08047798)      = 0
> sigaction(SIGCANCEL, 0x00000000, 0x08047798)    = 0
> sigaction(SIGLOST, 0x00000000, 0x08047798)      = 0
> sigaction(SIGXRES, 0x00000000, 0x08047798)      = 0
> sigaction(SIGRTMIN, 0x00000000, 0x08047798)     = 0
> sigaction(SIGRTMIN+1, 0x00000000, 0x08047798)   = 0
> sigaction(SIGRTMIN+2, 0x00000000, 0x08047798)   = 0
> sigaction(SIGRTMIN+3, 0x00000000, 0x08047798)   = 0
> sigaction(SIGRTMAX-3, 0x00000000, 0x08047798)   = 0
> sigaction(SIGRTMAX-2, 0x00000000, 0x08047798)   = 0
> sigaction(SIGRTMAX-1, 0x00000000, 0x08047798)   = 0
> sigaction(SIGRTMAX, 0x00000000, 0x08047798)     = 0
> lwp_schedctl(SC_STATE|SC_PREEMPT, 0, 0x08047738) = 0
> sigaction(SIGCANCEL, 0x0804778C, 0x00000000)    = 0
> sigaction(SIGWAITING, 0x0804778C, 0x00000000)   = 0
> sigaction(SIGLWP, 0x0804778C, 0x00000000)       = 0
> sigprocmask(SIG_SETMASK, 0x080479CC, 0x00000000) = 0
> sysi86(SI86FPHW, 0xDDB43E10, 0xDDBF1080, 0xDDBF257C) = 0x00000000
> brk(0x08066768)                                 = 0
> brk(0x08068768)                                 = 0
> xstat(2, "/opt/chroot/j2sdk1.4.2_02", 0x080476A0) = 0
> xstat(2, "/opt/chroot/j2sdk1.4.2_02/jre/lib/jvm.cfg", 0x080476A0) Err#2 ENOENT
> xstat(2, "/opt/chroot/j2sdk1.4.2_02/lib/jvm.cfg", 0x080476A0) Err#2 ENOENT
> xstat(2, "/opt/chroot/j2sdk1.4.2_02/jre/lib/i386/classic/libjvm.so", 0x080476A0) Err#2
ENOENT
> xstat(2, "/opt/chroot/j2sdk1.4.2_02/jre/lib/i386/client/libjvm.so", 0x080476A0) = 0
> ioctl(1, TCGETA, 0x08046F70)                    = 0
> fstat64(1, 0x08046EE0)                          = 0
> Usage: jsvc [-options] class [args...]
> write(1, " U s a g e :   j s v c  ".., 39)      = 39
> 
> write(1, "\n", 1)                               = 1
> Where options include:
> write(1, " W h e r e   o p t i o n".., 23)      = 23
> 
> write(1, "\n", 1)                               = 1
>     -jvm <JVM name>
> write(1, "         - j v m   < J V".., 20)      = 20
>         use a specific Java Virtual Machine. Available JVMs:
> write(1, "                 u s e  ".., 61)      = 61
>     Incurred fault #6, FLTBOUNDS  %pc = 0xDDAAF414
>       siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
>     Received signal #11, SIGSEGV [default]
>       siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
> bash-2.05$
> 
> 
> Any ideas?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message