From owner-freebsd-questions@FreeBSD.ORG Fri Mar 7 18:22:07 2008 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 3D4921065674 for ; Fri, 7 Mar 2008 18:22:07 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id EFE428FC1C for ; Fri, 7 Mar 2008 18:22:06 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id D78651CEA6; Fri, 7 Mar 2008 09:22:05 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Fri, 7 Mar 2008 19:22:03 +0100 User-Agent: KMail/1.9.7 References: <55510.130.104.50.60.1204907717.squirrel@mmp-1-1.sipr-dc.ucl.ac.be> <20080307123535.64c5dd80@scorpio> <20080307125426.23c91c2e@scorpio> In-Reply-To: <20080307125426.23c91c2e@scorpio> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803071922.03643.fbsd.questions@rachie.is-a-geek.net> Cc: Subject: Re: gsnapshot Pango-CRITICAL **: pango_color_parse: assertion `spec != NULL' 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: Fri, 07 Mar 2008 18:22:07 -0000 On Friday 07 March 2008 18:54:26 Gerard wrote: > On Fri, 7 Mar 2008 12:35:35 -0500 > > Gerard wrote: > > I just built the port using a plain vanilla 'make.conf' file; i.e., > > the system defaults. It built fine, however, it crashed as soon as I > > attempted to start it. GDB is useless since I built it without debug > > symbols. I will try building with debug and see what happens. > > OK, further update. Building with debug produces this: > > Script started on Fri Mar 7 12:46:47 2008 > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and > you are welcome to change it and/or distribute copies of it under > certain conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. This GDB was configured as "i386-marcel-freebsd"... > (gdb) rruunn > Starting program: /usr/local/bin/gsnapshot > [New LWP 100124] > [New Thread 0x8080000 (LWP 100124)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x8080000 (LWP 100124)] > 0x08050dee in _L (label=LABEL_APPLY) at language.c:338 > 338 if (strcmp(lang, "de") == 0 || strcmp(lang, "de_DE") == > 0) (gdb) bbtt ffuullll > #0 0x08050dee in _L (label=LABEL_APPLY) at language.c:338 > lang = 0x0 > #1 0x0804c22e in construct_viewer (layout=0x80a2080, window=0x80bb000) > at gsnapshot.c:243 button = (GtkWidget *) 0x80a20d0 > hbox = (GtkWidget *) 0x80a20d0 > vbox = (GtkWidget *) 0x80a2120 > box = (GtkWidget *) 0x80a4050 > #2 0x0804caaf in interface (window=0x80bb000) at gsnapshot.c:414 > layout = (GtkWidget *) 0x80a2080 > #3 0x0804cb68 in main (argc=1, argv=0xbfbfe9b0) at gsnapshot.c:452 > window = (GtkWidget *) 0x80bb000 > memory = {window = 0x80bb000, layout = 0xbfbfea6c, browser = > 0xbfbfea74, viewer = 0x80a4050, image = 0x0, decorations = 0, hide = 1, > delay = 0, mode = 0, print = 0x2807ab88, save = 0xbfbfe978} (gdb) > qquuiitt The program is running. Exit anyway? (y or n) y > > Script done on Fri Mar 7 12:47:37 2008 Well, that's kinda bogus coding on gsnapshot's part. Do a send-pr(1) and report that this port requires LANG to be set in the environment in order to run and/or apply the patch inlined below my sig. Btw, this isn't the same error as earlier. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. --- language.c.orig 2007-07-15 14:05:23.000000000 -0800 +++ language.c 2008-03-07 09:19:50.000000000 -0900 @@ -335,6 +335,9 @@ { if (spoken == NULL) { char *lang = getenv("LANG"); + if(!lang) + return TranslationEnglish[label].locale; + if (strcmp(lang, "de") == 0 || strcmp(lang, "de_DE") == 0) spoken = TranslationGerman; else if (strcmp(lang, "es") == 0 || strcmp(lang, "es_ES") == 0)