NetBSD Problem Report #47650

From www@NetBSD.org  Fri Mar 15 12:13:18 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 6C49463EDFC
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 15 Mar 2013 12:13:18 +0000 (UTC)
Message-Id: <20130315121317.9D1D963EDFC@www.NetBSD.org>
Date: Fri, 15 Mar 2013 12:13:17 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: file requester broken in Gtk 2.24.16 on Solaris
X-Send-Pr-Version: www-1.0

>Number:         47650
>Category:       pkg
>Synopsis:       file requester broken in Gtk 2.24.16 on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 15 12:15:00 +0000 2013
>Last-Modified:  Fri Mar 15 14:20:04 +0000 2013
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
I just noticed that any of my packages using Gtk 2.24.16 crashes, when the default file requester is needed. It happens when using e.g. "File -> Open ..." in Gimp or Wireshark, or trying to load a camera profile in Ufraw.

Environment is Solaris 10/i86, GCC 4.7.0.

A typical stack trace in gdb looks like this:

#0  0xfdd25a5c in strlen () from /lib/libc.so.1
#1  0xfdd80512 in _ndoprnt () from /lib/libc.so.1
#2  0xfdd83647 in vsnprintf () from /lib/libc.so.1
#3  0xfeb51ddd in g_printf_string_upper_bound () from /usr/pkgsrc/20121008/lib/libglib-2.0.so.0
#4  0xfeb8aa99 in g_vasprintf () from /usr/pkgsrc/20121008/lib/libglib-2.0.so.0
#5  0xfeb67953 in g_strdup_vprintf () from /usr/pkgsrc/20121008/lib/libglib-2.0.so.0
#6  0xfeb67983 in g_strdup_printf () from /usr/pkgsrc/20121008/lib/libglib-2.0.so.0
#7  0xfe397789 in g_content_type_get_icon_internal () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#8  0xfe3978b0 in g_content_type_get_icon () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#9  0xfe3e789e in get_icon () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#10 0xfe3e8958 in _g_local_file_info_get () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#11 0xfe3e5801 in g_local_file_query_info () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#12 0xfe33f100 in g_file_query_info () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#13 0xfe33f552 in query_info_async_thread () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#14 0xfe36bc77 in run_in_thread () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#15 0xfe359705 in io_job_thread () from /usr/pkgsrc/20121008/lib/libgio-2.0.so.0
#16 0xfeb6fd26 in g_thread_pool_thread_proxy () from /usr/pkgsrc/20121008/lib/libglib-2.0.so.0
#17 0xfeb6f3c2 in g_thread_proxy () from /usr/pkgsrc/20121008/lib/libglib-2.0.so.0
#18 0xfdda71c0 in _thr_setup () from /lib/libc.so.1
#19 0xfdda74b0 in L3_doit () from /lib/libc.so.1
#20 0xfc3c03c0 in ?? ()
#21 0x00000000 in ?? ()
#22 0x00000000 in ?? ()
Cannot access memory at address 0xfa1ff000

I can see with truss, that the last action of the crashing thread was reading $LOCALBASE/share/mime/generic-icons. For further analysis, I need some assistance.

Which package does install generic-icons? It is not recorded in any of the +CONTENTS files.
>How-To-Repeat:

>Fix:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47650: file requester broken in Gtk 2.24.16 on Solaris
Date: Fri, 15 Mar 2013 21:53:06 +0900

 On Fri, 15 Mar 2013 21:15:01 +0900, <joern.clausen@uni-bielefeld.de> wrote:

 > I can see with truss, that the last action of the crashing thread was reading $LOCALBASE/share/mime/generic-icons. For further analysis, I need some assistance.
 >
 > Which package does install generic-icons? It is not recorded in any of the +CONTENTS files.

 It should be generated by update-mime-info(1):
 % update-mime-info /usr/pkg/share/mime
 (see also http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#s2_layout )

 If it resolve your issue, some packages may not maintain the DB correctly.
 (missing databases/shared-mime-info/mimedb.mk)

 -- 
 OBATA Akio / obache@NetBSD.org

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: OBATA Akio <obache@NetBSD.org>, pkg-manager@NetBSD.org,
 gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/47650: file requester broken in Gtk 2.24.16 on Solaris
Date: Fri, 15 Mar 2013 14:16:35 +0100

 On 15.03.13 13:55, OBATA Akio wrote:
 >   It should be generated by update-mime-info(1):
 >   % update-mime-info /usr/pkg/share/mime
 >   (see also http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#s2_layout )

 update-mime-database? I executed that program, and for good measure also 
 update-desktop-database, but ufraw et al. still crash.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.