From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12906 invoked by alias); 31 Oct 2008 19:50:39 -0000 Received: (qmail 12872 invoked by alias); 31 Oct 2008 19:50:38 -0000 Date: Fri, 31 Oct 2008 19:50:00 -0000 Message-ID: <20081031195038.12871.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/37068] [4.4 Regression] libgcj linkage failure: Incorrect library ABI version detected In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "dave at hiauly1 dot hia dot nrc dot ca" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2008-q4/txt/msg00023.txt.bz2 ------- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca 2008-10-31 19:50 ------- Subject: Re: [4.4 Regression] libgcj linkage failure: Incorrect library ABI version detected > alpha-dec-osf5.1b (with the workarounds mentioned in PR bootstrap/37426) is > affected as well. _Jv_CheckABIVersion is invoked with 3221625473. It seems that when using collect2 the global constructor for libgcj calls _Jv_RegisterClass more than once for the same class. The default class hook, _Jv_RegisterClassHookDefault, messes with klass->next_or_version. The attempt at reregistration is not detected before _Jv_CheckABIVersion is called causing the abort. Dave -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37068