Message5889

Author somejan
Recipients somejan
Date 2010-07-12.23:39:45
SpamBayes Score 0.0033039
Marked as misclassified No
Message-id <1278977987.74.0.98738626605.issue1633@psf.upfronthosting.co.za>
In-reply-to
Content
Doing the following results in a SIGSEGV on Ubuntu Linux 9.10 with OpenJDK 6: 

-----
from java.util import HashSet
s = HashSet()
s.add(s)
s.add(s)
-----

The error message: 

-----
$> jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) 
[OpenJDK 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_0
Type "help", "copyright", "credits" or "license" for more information.
>>> from java.util import HashSet
>>> s = HashSet()
>>> s.add(s)
True
>>> s.add(s)
An irrecoverable stack overflow has occurred.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc1044fafdd, pid=16846, tid=140467075377424
#
# JRE version: 6.0-b16
# Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
# Distribution: Ubuntu 9.10, package 6b16-1.6.1-3ubuntu3
# Problematic frame:
# j  java.util.HashMap$HashIterator.<init>(Ljava/util/HashMap;)V+0
#
# An error report file with more information is saved as:
# /home/***/hs_err_pid16846.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#
/home/***/bin/jython: line 271: 16846 Aborted                 "${JAVA_CMD[@]}" $JAVA_OPTS "${java_args[@]}" -Dpython.home="$JYTHON_HOME" -Dpython.executable="$PRG" org.python.util.jython $JYTHON_OPTS "$@"
-----


I'm reporting this crash here because it doesn't happen in Java, just in Jython. Doing the same thing in Java causes a StackOverflowError, but no segmentation fault.
History
Date User Action Args
2010-07-12 23:39:48somejansetrecipients: + somejan
2010-07-12 23:39:47somejansetmessageid: <1278977987.74.0.98738626605.issue1633@psf.upfronthosting.co.za>
2010-07-12 23:39:47somejanlinkissue1633 messages
2010-07-12 23:39:45somejancreate