RC 2 and Jetty cause core dump

RC 2 and Jetty cause core dump

Post by William Hol » Sat, 28 Dec 2002 13:00:16



Hi,

I have just tried the new RC2 and it looks very good, it
installed on a blank partition quite easily.  Then I
installed
Jetty by cd'ing to the /usr/ports/www/jetty and then type
make
followed by
make install

I then run the Jetty demo and I get a core dump.  I'm
looking for
advice on how to troubleshot this - it's probably something
dumb
on my part but I'm not sure where to start!

TIA,

-Will

==========================snip======================
ginger# bin/jetty.sh demo
Running Jetty:
19:43:51.446 EVENT  Starting Jetty/4.1
19:43:51.548 EVENT  Started
org.mortbay.http.NCSARequestLog@e4eb053c
19:43:51.595 EVENT  Started ServletHttpContext[/cgi-bin]
19:43:51.649 EVENT  Started ServletHttpContext[/demo]
19:43:51.972 EVENT  setStatsOn true for
WebApplicationContext[/jetty,Jetty Demo]
19:43:52.008 EVENT  Started
WebApplicationContext[/jetty,Jetty Demo]
19:43:52.513 EVENT  Started WebApplicationContext[/,Jetty
Demo Root]
19:43:52.839 EVENT  Started
WebApplicationContext[/examples,/usr/local/share/java/jetty-4.1.3/demo
/webapps/examples]
19:43:52.847 EVENT  ContextListener: contextInitialized()
19:43:52.854 EVENT  SessionListener: contextInitialized()
19:43:52.893 EVENT  ContextListener:
attributeAdded('javax.servlet.context.tempdir',
'/var/tmp/Jet
ty__8080__examples')
19:43:52.904 EVENT  Started ServletHttpContext[/javadoc]
19:43:53.007 EVENT  Started SocketListener on 0.0.0.0:8080
19:43:53.014 EVENT  Started AJP13Listener on 0.0.0.0:8009
19:43:53.020 EVENT  NOTICE: AJP13 is not a secure protocol.
Please protect the port 0.0.0.0:8009
19:43:53.025 EVENT  Started
org.mortbay.jetty.Server@e4e9c211
SIGBUS    10*  bus error

Full thread dump Classic VM (1.3.1-p7-root-021226-18:47,
green threads):
    "AJP13Listener-4" (TID:0x28ecb870,
sys_thread_t:0x8458a80, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "AJP13Listener-3" (TID:0x28ecbe10,
sys_thread_t:0x8458880, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "AJP13Listener-2" (TID:0x28ecbcb8,
sys_thread_t:0x8458680, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "AJP13Listener-1" (TID:0x28ecc490,
sys_thread_t:0x8458480, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "AJP13Listener-0" (TID:0x28ecc188,
sys_thread_t:0x8458280, state:MW) prio=5
        at
org.mortbay.util.ThreadPool.getJob(ThreadPool.java:547)
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:678)
        at java.lang.Thread.run(Thread.java:484)
    "Thread-7" (TID:0x28ecc020, sys_thread_t:0x8458080,
state:R) prio=5
        at
org.mortbay.util.ThreadedServer$Acceptor.run(ThreadedServer.java:508)
    "SocketListener-4" (TID:0x28eccaf0,
sys_thread_t:0x8439e80, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "SocketListener-3" (TID:0x28ecd580,
sys_thread_t:0x8439c80, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "SocketListener-2" (TID:0x28ecd138,
sys_thread_t:0x8439a80, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "SocketListener-1" (TID:0x28ecdbc8,
sys_thread_t:0x8439880, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "SocketListener-0" (TID:0x28ecda30,
sys_thread_t:0x8439680, state:MW) prio=5
        at
org.mortbay.util.ThreadPool.getJob(ThreadPool.java:547)
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:678)
        at java.lang.Thread.run(Thread.java:484)
    "Thread-1" (TID:0x28ed2cc8, sys_thread_t:0x8439280,
state:R) prio=5
        at java.net.InetAddressImpl.getHostByAddr(Native
Method)
        at
java.net.InetAddress.getHostName(InetAddress.java:156)
        at
java.net.InetAddress.getHostName(InetAddress.java:127)
        at
java.net.InetAddress.toString(InetAddress.java:265)
        at java.lang.String.valueOf(String.java:1947)
        at
java.lang.StringBuffer.append(StringBuffer.java:370)
        at
java.net.ServerSocket.toString(ServerSocket.java:316)
        at java.lang.String.valueOf(String.java:1947)
        at
java.lang.StringBuffer.append(StringBuffer.java:370)
        at
org.mortbay.util.ThreadedServer$Acceptor.run(ThreadedServer.java:508)
    "SessionScavenger" (TID:0x28ee1178,
sys_thread_t:0x8406a80, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "SessionScavenger" (TID:0x28ed3b20,
sys_thread_t:0x83daa80, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "SessionScavenger" (TID:0x28eeb1c0,
sys_thread_t:0x8386e80, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "SessionScavenger" (TID:0x28ec5bf8,
sys_thread_t:0x8386a80, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "SessionScavenger" (TID:0x28ecd740,
sys_thread_t:0x8386880, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "Rollover" (TID:0x28ecf060, sys_thread_t:0x8386080,
state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.util.RolloverFileOutputStream$Rollover.run(RolloverFileOutputStream.java:26
2)
    "Finalizer" (TID:0x28eba528, sys_thread_t:0x80d4080,
state:CW) prio=8
        at java.lang.Object.wait(Native Method)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
        at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162)
    "Reference Handler" (TID:0x28eba300,
sys_thread_t:0x80b6480, state:CW) prio=10
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:420)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110)
    "Signal dispatcher" (TID:0x28eba330,
sys_thread_t:0x80b6280, state:CW) prio=5
    "main" (TID:0x28eba1b0, sys_thread_t:0x8053080,
state:MW) prio=5
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at
org.mortbay.util.Loader.loadClass(Loader.java:36)
        at
org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:198)
        at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:160)
        at org.mortbay.jetty.Server.<init>(Server.java:94)
        at org.mortbay.jetty.Server.<init>(Server.java:68)
        at org.mortbay.jetty.Server.main(Server.java:397)
Monitor Cache Dump:
    org.mortbay.http.ajp.AJP13Listener@28ECD538/28F3CD00:
owner "AJP13Listener-0" (0x8458280) 1 en
try
        Waiting to enter:
            "AJP13Listener-1" (0x8458480)
            "AJP13Listener-2" (0x8458680)
            "AJP13Listener-3" (0x8458880)
            "AJP13Listener-4" (0x8458a80)
    java.lang.StringBuffer@28EED310/28FC4038: owner
"Thread-1" (0x8439280) 1 entry
    java.lang.StringBuffer@28EECFB8/28FC40A0: owner
"Thread-1" (0x8439280) 1 entry
    sun.misc.Launcher$AppClassLoader@28EBB8C8/28F027A0:
owner "Thread-7" (0x8458080) 0 entries
        Waiting to enter:
            "SocketListener-0" (0x8439680)
            "main" (0x8053080)
            "AJP13Listener-0" (0x8458280)
    java.lang.ref.ReferenceQueue$Lock@28EBA540/28EF0478:
<unowned>
        Waiting to be notified:
            "Finalizer" (0x80d4080)
    java.lang.ref.Reference$Lock@28EBA310/28EEFF98:
<unowned>
        Waiting to be notified:
            "Reference Handler" (0x80b6480)
    org.mortbay.http.SocketListener@28EC5430/28F39D70:
owner "SocketListener-0" (0x8439680) 1 entr
y
        Waiting to enter:
            "SocketListener-1" (0x8439880)
            "SocketListener-2" (0x8439a80)
            "SocketListener-3" (0x8439c80)
            "SocketListener-4" (0x8439e80)
Registered Monitor Dump:
    utf8 hash table: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: <unowned>
    Class linking lock: <unowned>
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Monitor cache lock: owner "Thread-1" (0x8439280) 1
entry
    Dynamic loading lock: <unowned>
    Monitor IO lock: <unowned>
    User signal monitor: <unowned>
        Waiting to be notified:
            "Signal dispatcher" (0x80b6280)
    Child death monitor: <unowned>
    I/O monitor: <unowned>
    Alarm monitor: <unowned>
        Waiting to be notified:
            <unknown thread> (0x8053280)
    Thread queue lock: owner "Thread-1" (0x8439280) 1 entry
    Monitor registry: owner "Thread-1" (0x8439280) 1 entry

SIGABRT   6*   abort (generated by abort(3) routine)

Full thread dump Classic VM (1.3.1-p7-root-021226-18:47,
green threads):
    "AJP13Listener-4" (TID:0x28ecb870,
sys_thread_t:0x8458a80, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "AJP13Listener-3" (TID:0x28ecbe10,
sys_thread_t:0x8458880, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "AJP13Listener-2" (TID:0x28ecbcb8,
sys_thread_t:0x8458680, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "AJP13Listener-1" (TID:0x28ecc490,
sys_thread_t:0x8458480, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "AJP13Listener-0" (TID:0x28ecc188,
sys_thread_t:0x8458280, state:MW) prio=5
        at
org.mortbay.util.ThreadPool.getJob(ThreadPool.java:547)
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:678)
        at java.lang.Thread.run(Thread.java:484)
    "Thread-7" (TID:0x28ecc020, sys_thread_t:0x8458080,
state:R) prio=5
        at
org.mortbay.util.ThreadedServer$Acceptor.run(ThreadedServer.java:508)
    "SocketListener-4" (TID:0x28eccaf0,
sys_thread_t:0x8439e80, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "SocketListener-3" (TID:0x28ecd580,
sys_thread_t:0x8439c80, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "SocketListener-2" (TID:0x28ecd138,
sys_thread_t:0x8439a80, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "SocketListener-1" (TID:0x28ecdbc8,
sys_thread_t:0x8439880, state:MW) prio=5
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:669)
        at java.lang.Thread.run(Thread.java:484)
    "SocketListener-0" (TID:0x28ecda30,
sys_thread_t:0x8439680, state:MW) prio=5
        at
org.mortbay.util.ThreadPool.getJob(ThreadPool.java:547)
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:678)
        at java.lang.Thread.run(Thread.java:484)
    "Thread-1" (TID:0x28ed2cc8, sys_thread_t:0x8439280,
state:R) prio=5
        at java.net.InetAddressImpl.getHostByAddr(Native
Method)
        at
java.net.InetAddress.getHostName(InetAddress.java:156)
        at
java.net.InetAddress.getHostName(InetAddress.java:127)
        at
java.net.InetAddress.toString(InetAddress.java:265)
        at java.lang.String.valueOf(String.java:1947)
        at
java.lang.StringBuffer.append(StringBuffer.java:370)
        at
java.net.ServerSocket.toString(ServerSocket.java:316)
        at java.lang.String.valueOf(String.java:1947)
        at
java.lang.StringBuffer.append(StringBuffer.java:370)
        at
org.mortbay.util.ThreadedServer$Acceptor.run(ThreadedServer.java:508)
    "SessionScavenger" (TID:0x28ee1178,
sys_thread_t:0x8406a80, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "SessionScavenger" (TID:0x28ed3b20,
sys_thread_t:0x83daa80, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "SessionScavenger" (TID:0x28eeb1c0,
sys_thread_t:0x8386e80, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "SessionScavenger" (TID:0x28ec5bf8,
sys_thread_t:0x8386a80, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "SessionScavenger" (TID:0x28ecd740,
sys_thread_t:0x8386880, state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.jetty.servlet.AbstractSessionManager$SessionScavenger.run(AbstractSessionMa
nager.java:362)
    "Rollover" (TID:0x28ecf060, sys_thread_t:0x8386080,
state:CW) prio=5
        at java.lang.Thread.sleep(Native Method)
        at
org.mortbay.util.RolloverFileOutputStream$Rollover.run(RolloverFileOutputStream.java:26
2)
    "Finalizer" (TID:0x28eba528, sys_thread_t:0x80d4080,
state:CW) prio=8
        at java.lang.Object.wait(Native Method)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
        at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162)
    "Reference Handler" (TID:0x28eba300,
sys_thread_t:0x80b6480, state:CW) prio=10
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:420)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110)
    "Signal dispatcher" (TID:0x28eba330,
sys_thread_t:0x80b6280, state:CW) prio=5
    "main" (TID:0x28eba1b0, sys_thread_t:0x8053080,
state:MW) prio=5
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at
org.mortbay.util.Loader.loadClass(Loader.java:36)
        at
org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:198)
        at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:160)
        at org.mortbay.jetty.Server.<init>(Server.java:94)
        at org.mortbay.jetty.Server.<init>(Server.java:68)
        at org.mortbay.jetty.Server.main(Server.java:397)
Monitor Cache Dump:
    org.mortbay.http.ajp.AJP13Listener@28ECD538/28F3CD00:
owner "AJP13Listener-0" (0x8458280) 1 en
try
        Waiting to enter:
            "AJP13Listener-1" (0x8458480)
            "AJP13Listener-2" (0x8458680)
            "AJP13Listener-3" (0x8458880)
            "AJP13Listener-4" (0x8458a80)
    java.lang.StringBuffer@28EED310/28FC4038: owner
"Thread-1" (0x8439280) 1 entry
    java.lang.StringBuffer@28EECFB8/28FC40A0: owner
"Thread-1" (0x8439280) 1 entry
    sun.misc.Launcher$AppClassLoader@28EBB8C8/28F027A0:
owner "Thread-7" (0x8458080) 0 entries
        Waiting to enter:
            "SocketListener-0" (0x8439680)
            "main" (0x8053080)
            "AJP13Listener-0" (0x8458280)
    java.lang.ref.ReferenceQueue$Lock@28EBA540/28EF0478:
<unowned>
        Waiting to be notified:
            "Finalizer" (0x80d4080)
    java.lang.ref.Reference$Lock@28EBA310/28EEFF98:
<unowned>
        Waiting to be notified:
            "Reference Handler" (0x80b6480)
    org.mortbay.http.SocketListener@28EC5430/28F39D70:
owner "SocketListener-0" (0x8439680) 1 entr
                       y
        Waiting to enter:
            "SocketListener-1" (0x8439880)
            "SocketListener-2" (0x8439a80)
            "SocketListener-3" (0x8439c80)
            "SocketListener-4" (0x8439e80)
Registered Monitor Dump:
    utf8 hash table: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: <unowned>
    Class linking lock: <unowned>
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Monitor cache lock: owner "Thread-1" (0x8439280) 1
entry
    Dynamic loading lock: <unowned>
    Monitor IO lock: <unowned>
    User signal monitor: <unowned>
        Waiting to be notified:
            "Signal dispatcher" (0x80b6280)
    Child death monitor: <unowned>
    I/O monitor: <unowned>
    Alarm monitor: <unowned>
        Waiting to be notified:
            <unknown thread> (0x8053280)
    Thread queue lock: owner "Thread-1" (0x8439280) 1 entry
    Monitor registry: owner "Thread-1" (0x8439280) 1 entry

Abort (core dumped)
ginger#

To Unsubscribe: send mail to majord...@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message

 
 
 

1. 5.0-RELEASE core dumps running Jetty

Hi,

I have been trying to use Jetty on 5.0 and still not having
any
luck. I recently pinned it down to a problem with trying to
convert
a ServerSocket to a String!  The following short program
crashes in exactly the same way as Jetty.

I have tracked it further to the native class
InetAddressImpl.c

Specifically getHostByAddr( int ) seems to be causing
the problem.

I haven't got any response to previous posts - is anyone
else seeing this problem?  Please try and run the following
small program and let me know if it core dumps on your 5.0
release
system.

Thank you,
-Will

PS: this is using jdk1.31p7 - just go to
/usr/ports/www/jetty
and type make and it will build it for you.

===============snip=====================
import java.net.*;
public class CrashBSD
{
    static public void main( String args[] )
    {
        try
        {
            ServerSocket ss = new ServerSocket( 0 );
            System.out.println( ss );
        }
        catch ( Exception e )
       {
           System.out.println( e );
           System.exit( 1 );
       }
   }


with "unsubscribe freebsd-java" in the body of the message

2. Advise on remote sccs wanted....

3. dump core or not dump core

4. X11R5, Motif 1,2 AIX: what IBM numbers?

5. core dumps core dumps everywhere...

6. exec, redirect output

7. LD_PRELOAD causes a core dump

8. Is the XFree86 Project Dead?

9. regular expression library calls caused core-dumped

10. SIGBUS does not cause core dump

11. exiting Gnome caused core dump

12. Segment Fault doesn't cause core dump

13. Incompatibility between gcc and cc causes core dump?