From owner-freebsd-ports@FreeBSD.ORG Tue May 31 13:09:34 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AD5F106564A for ; Tue, 31 May 2011 13:09:34 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 4C0B98FC22 for ; Tue, 31 May 2011 13:09:32 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA10650; Tue, 31 May 2011 16:09:27 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4DE4E887.2090806@FreeBSD.org> Date: Tue, 31 May 2011 16:09:27 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110504 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Olivier Smedts References: <4DE13892.5030909@mail.zedat.fu-berlin.de> <4DE152E6.1000801@FreeBSD.org> <4DE4BB34.508@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "O. Hartmann" , freebsd-ports@FreeBSD.org Subject: Re: editors/libreoffice: can not compile, crash on, FreeBSD 9.0-CUR/amd64 - msg#00540 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2011 13:09:34 -0000 on 31/05/2011 15:22 Olivier Smedts said the following: > 2011/5/31 Andriy Gapon : >> on 31/05/2011 12:11 Olivier Smedts said the following: >>> Segmentation fault: 11 (core dumped) >> >> That core dump should be investigated / debugged. >> At the very least it is not clear from the messages which program crashes. > > It's more clear if you read the output of the "build" command. > > Well I'm not very familiar with debugging, I loaded the program and > the core dump with gdb and asked for a backtrace, but that's all I > know. Is there anything useful I can do ? I can also provide the core > dump. Speaking from general point of view, it would be nice to compile the failing program (regcomp) and its shared libraries with debug information. However I don't have any advice on how to actually do it in this build environment. [snip] > (gdb) bt > #0 0x000000080202c640 in ?? () > #1 0x0000000802461467 in stoc_impreg::insert_singletons () > from /usr/ports/editors/libreoffice/work/libreoffice-build-3.3.2.2/build/libreoffice/solver/330/unxfbsdx.pro/lib/bootstrap.uno.so > #2 0x0000000802463713 in stoc_impreg::ImplementationRegistration::doRegister () > from /usr/ports/editors/libreoffice/work/libreoffice-build-3.3.2.2/build/libreoffice/solver/330/unxfbsdx.pro/lib/bootstrap.uno.so > #3 0x0000000802464f8d in > stoc_impreg::ImplementationRegistration::prepareRegister () > from /usr/ports/editors/libreoffice/work/libreoffice-build-3.3.2.2/build/libreoffice/solver/330/unxfbsdx.pro/lib/bootstrap.uno.so > #4 0x00000000004093ba in DoIt::operator() () > #5 0x000000000041aeff in > std::for_each<__gnu_cxx::__normal_iterator std::vector > >, DoIt> () > #6 0x0000000000409bef in main () >From the backtrace and some googling it seems like the problem could be - and it's just a wild guess - because of exceptions. In particular I've seen something like this when libgcc_s.so used at run-time came from a compiler different than a compiler which was used to produce an executable. In my case it was libgcc_s.so from base gcc at run-time versus libgcc_s.so from gcc45 at link-time. My program crashed on any 'throw' statement (even when an exception should have been caught). Again, I am not saying that this is what happens here, I am just hinting at things to try. P.S. I have not debugged the actual mechanics of the crash that I have described above. -- Andriy Gapon