From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Klose To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Subject: java/3490: internal error using static synchronized Date: Sat, 30 Jun 2001 03:16:00 -0000 Message-id: X-SW-Source: 2001-06/msg01196.html List-Id: >Number: 3490 >Category: java >Synopsis: internal error using static synchronized >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Sat Jun 30 03:16:04 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Patrik Hagglund >Release: 3.0 (Debian GNU/Linux) >Organization: The Debian project >Environment: System: Debian GNU/Linux (testing/unstable) Architecture: i686 host: i386-linux build: i386-linux target: i386-linux configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux >Description: [ Reported to the Debian BTS as report #99038. Please CC 99038-quiet@bugs.debian.org on replies. Log of report can be found at http://bugs.debian.org/99038 ] [ first sent to http://gcc.gnu.org/ml/java/2001-05/msg00311.html ] // gcj-3.0 -c -O1 Bug.java // Bug.java: In class `Bug': // Bug.java: In method `Bug.get()': // Bug.java:3: Internal error: Segmentation fault class Bug { static synchronized Object get(int i) { return null; } static synchronized Object get() { return get(1); } } Tom Tromey added: This fails for me (on x86) with -O1, but not with -O0. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: