5 Replies Latest reply on Jun 3, 2009 2:32 PM by Alexandre Gomes

    Segmentation Fault

    Alexandre Gomes Newbie

      Hello guys,

      I really need your help in order to debug this problem.

      Some days ago, Jopr was crashing by segfault every time I logged in using Safari 4 web browser. Today, it's happening with any web browser. How can I inspect this issue deeper? I guess I should generate a heap dump, but I'm not sure about it.....


      16:12:43,963 INFO [RtFilter] -- Filter openFile: Writing response-time log for webapp with context root 'ROOT' to '/Volumes/Data/Applications/JavaTools/jopr-server-2.2.0/jbossas/server/default/log/rt/ROOT_rt.log' (hashCode=2205996)...
      /Users/alegomes/JavaTools/jopr-server-2.2.0/jbossas/bin/run.sh: line 257: 550 Segmentation fault "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$@"


      thanks

        • 1. Re: Segmentation Fault
          mazz Master

          Wow, I've never heard anyone report this problem. I can't say we've seen the server core dump.

          What OS, hardware is it running on? What version of Java?

          Grab the hs_err_XYZ file that it probably in the bin directory - when Java crashes, it normally dumps that information. Perhaps that can help.

          • 2. Re: Segmentation Fault
            Alexandre Gomes Newbie

            I'm running Mac OS 10.4.11 on PPC and Java build 1.5.0_16-132.

            I didn't find any hs_err... file :-(


            thanks

            • 3. Re: Segmentation Fault
              mazz Master

              MacOS on PPC - I can't say any of us has run with that combo. Maybe Heiko or Greg. I suspect its a bug in the VM - getting the hs_err file would help narrow it down (I don' t know why your VM isn't dumping that file - I've seen Java VM crashes and they seem to always dump that file - maybe the VM impl on MacOS/PPC doesn't do this?). Workaround - use another platform :)

              • 4. Re: Segmentation Fault
                Yusuke Yamamoto Newbie

                A pure java program can never kill its process with its bugs.
                It's always caused by JVM or JNI components' error.
                If it's caused by HotSpot VM(the JIT compiler), you may want to switch another version of hotspot to workaround the issue.
                You can check the HotSpot version as follows:
                $ java -version
                java version "1.5.0_16"
                Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
                Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

                To switch to HotSpot Server(Client) VM, add -server(-client) option
                $ java -server -version
                Shared archive: sharing disabled for server vm
                java version "1.5.0_16"
                Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
                Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode)

                Cheers,
                Yusuke

                • 5. Re: Segmentation Fault
                  Alexandre Gomes Newbie

                  Just to register, I solved this issue using -XX:StackShadowPages=20 at startup.

                  thank you all