From owner-freebsd-questions@FreeBSD.ORG Thu Jan 7 01:41:29 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0C5A106566C for ; Thu, 7 Jan 2010 01:41:29 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx2.utsp.utwente.nl [130.89.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id 24FB98FC13 for ; Thu, 7 Jan 2010 01:41:28 +0000 (UTC) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o071fIF4032122; Thu, 7 Jan 2010 02:41:18 +0100 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Thu, 7 Jan 2010 02:41:18 +0100 User-Agent: KMail/1.9.10 References: <4B448CB4.5000105@zedat.fu-berlin.de> In-Reply-To: <4B448CB4.5000105@zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201001070241.18190.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact icts.servicedesk@utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: "O. Hartmann" , freebsd-ports@freebsd.org Subject: Re: ports/devel/protobuf: Segmentation fault in mmap in some applications X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2010 01:41:29 -0000 On Wednesday 06 January 2010 14:14:28 O. Hartmann wrote: > Dear Sirs, > We use a software package for scientific imagery processing from USGS, > ISIS3 (http://isis.astrogeology.usgs.gov/). The most recent version is > 3.1.21 and since this version, the software intensively uses > libprotobuf.so. > > While we can use ISIS 3.1.20 very well under FreeBSD 8.0/amd64, it is > impossible to use the software with version no. 3.1.21, which seems to > have some issues wih libprotobuf.so. Every client out of this ISIS3 > package crashes with a segmentation fault and as far as I can judge the > situation, there is a problem with libprotobuf.so, against which all > clients out of ISIS 3.1.21 are linked. Perhaps the ISIS package was developed using a different (older?) version of Google's protocol buffers. Compiling protobuf from source is quite easy on FreeBSD. You can find the source here: http://code.google.com/p/protobuf/downloads/list I would start by trying version 2.1.0 and 2.2.0a. > > I searched for help on the ISIS3-support forum and realised that some > Apple OS X guys have had similar problems, but those threads where > closed immediately or got relative senseless response. > > In our case, we compile every necessary library and prerequisite > software package (mostly Qt4 libs) from ports. This works great with > some tweaks for FreeBSD in make/config.freebsd (which I derived from > some linux and/or OS X config files). > > Now I'm floating like a dead man i the water. Below I provide q gdb > output of the qview-client (the same is with all other clients, like > photrim etc. for those familiar with the software package). A backtrace ('bt' at the gdb prompt) might contain more useful information. > > Additionaly, I provide a truss-output, that stops at mmap issues. > > Well, if someone could provide me with some advance debugging hints I > would appreaciate them. I'm pretty sure he problem is located within the > libprotobuf library or the way it is treated, but this is a guess of a > non-developer. > > Thanks very much in advance. > Please reply also to this email address, since I'm not subscriber of the > list I post to. > > Oliver - Pieter