djspiewak / cccp

Common Colaborative Coding Protocol
119 stars 6 forks source link

sbt crashes on build when using OpenJDK #5

Closed candera closed 12 years ago

candera commented 12 years ago

When attempting to compile cccp via sbt, I get the following error:


[info] Compiling 1 Scala source to /home/candera/projects/cccp/project/target/scala-2.9.1/sbt-0.11.1/classes...
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb4c1ef2c, pid=26414, tid=3077864304
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK Server VM (20.0-b11 mixed mode linux-x86 )
# Derivative: IcedTea6 1.10.4
# Distribution: Ubuntu 11.04, package 6b22-1.10.4-0ubuntu1~11.04.1
# Problematic frame:
# J  scala.tools.nsc.symtab.Types$TypeMap.mapOver(Lscala/tools/nsc/symtab/Types$Type;)Lscala/tools/nsc/symtab/Types$Type;
#
# An error report file with more information is saved as:
# /home/candera/projects/cccp/hs_err_pid26414.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/candera/bin/sbt: line 3: 26414 Aborted                 (core dumped) java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@"

The referenced log file is available here: https://gist.github.com/1376864

candera commented 12 years ago

This doesn't repro when using the Sun JDK:

sudo update-java-alternatives -s java-6-sun
sbt stage

Works fine.

djspiewak commented 12 years ago

Given that this is apparently an issue with the IcedTea VM, I'm going to close this. I'm not sure there's anything I can do about the Scala compiler triggering a segfault. :-)

candera commented 12 years ago

Fair enough.