NetBSD Problem Report #50320

From rhialto@falu.nl  Fri Oct  9 13:50:20 2015
Return-Path: <rhialto@falu.nl>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0E1D0A6531
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  9 Oct 2015 13:50:20 +0000 (UTC)
Message-Id: <201510091350.t99DoF5u001935@murthe.falu.nl>
Date: Fri, 9 Oct 2015 15:50:15 +0200 (CEST)
From: rhialto@falu.nl
Reply-To: rhialto@falu.nl
To: gnats-bugs@gnats.NetBSD.org
Subject: editors/abiword 3.0.1 crashes on NetBSD/amd64 6.1.5
X-Send-Pr-Version: 3.95

>Number:         50320
>Category:       pkg
>Synopsis:       editors/abiword 3.0.1 crashes on NetBSD/amd64 6.1.5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 09 13:55:00 +0000 2015
>Last-Modified:  Wed Mar 16 09:10:00 +0000 2016
>Originator:     Rhialto
>Release:        NetBSD 6.1.5
>Organization:

>Environment:


System: NetBSD vargaz.falu.nl 6.1.5 NetBSD 6.1.5 (VARGAZ615) #0: Sun Oct 5 00:59:50 CEST 2014 rhialto@vargaz.falu.nl:/usr/src/sys/arch/amd64/compile/VARGAZ615 amd64
Architecture: x86_64
Machine: amd64
>Description:


vargaz:~$ abiword
Segmentation fault (core dumped)
vargaz:~$ 
vargaz:~$ 
vargaz:~$ 
vargaz:~$ type abiword
abiword is hashed (/usr/pkg/bin/abiword)
vargaz:~$ gdb /usr/pkg/bin/abiword abiword.core 
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/pkg/bin/abiword...(no debugging symbols found)...done.
[New process 1]
Core was generated by `abiword'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7fdee1d380 in ?? ()
(gdb) bt
#0  0x00007f7fdee1d380 in ?? ()
#1  0x00007f7fdd14e142 in _mesa_map_function_spec ()
   from /usr/X11R7/lib/modules/dri/mesa_dri.so.0
#2  0x00007f7fdd14e17c in _mesa_map_function_array ()
   from /usr/X11R7/lib/modules/dri/mesa_dri.so.0
#3  0x00007f7fdda604d7 in driInitSingleExtension ()
   from /usr/X11R7/lib/modules/dri/i965_dri.so
#4  0x00007f7fdda6052f in driInitExtensions ()
   from /usr/X11R7/lib/modules/dri/i965_dri.so
#5  0x00007f7fdda60563 in driInitExtensions ()
   from /usr/X11R7/lib/modules/dri/i965_dri.so
#6  0x00007f7fdcc03cc0 in ?? () from /usr/X11R7/lib/modules/dri/swrast_dri.so
#7  0x00007f7fdf8b6c25 in ?? () from /usr/X11R7/lib/libGL.so
#8  0x00007f7fdf8b6508 in __glXInitialize () from /usr/X11R7/lib/libGL.so
#9  0x00007f7fdf8b78d4 in ?? () from /usr/X11R7/lib/libGL.so
#10 0x00007f7fdf8b890d in glXQueryServerString () from /usr/X11R7/lib/libGL.so
#11 0x00007f7feaa8be69 in epoxy_glx_version () from /usr/pkg/lib/libepoxy.so.0
#12 0x00007f7feca4ece3 in gdk_x11_screen_init_gl ()
   from /usr/pkg/lib/libgdk-3.so.0
#13 0x00007f7feca4f0c3 in _gdk_x11_screen_update_visuals_for_gl ()
   from /usr/pkg/lib/libgdk-3.so.0
#14 0x00007f7feca5685a in _gdk_x11_screen_init_visuals ()
   from /usr/pkg/lib/libgdk-3.so.0
#15 0x00007f7feca53c04 in _gdk_x11_screen_new ()
   from /usr/pkg/lib/libgdk-3.so.0
#16 0x00007f7feca4730f in _gdk_x11_display_open ()
   from /usr/pkg/lib/libgdk-3.so.0
#17 0x00007f7feca26351 in gdk_display_manager_open_display ()
   from /usr/pkg/lib/libgdk-3.so.0
#18 0x00007f7fee3e0a63 in gtk_init_check () from /usr/pkg/lib/libgtk-3.so.0
#19 0x00007f7ff7607961 in AP_UnixApp::main(char const*, int, char**) ()
   from /usr/pkg/lib/libabiword-3.0.so
#20 0x0000000000400db2 in ?? ()
#21 0x00007f7ff7ffa000 in ?? ()
#22 0x0000000000000001 in ?? ()
#23 0x00007f7ffffffcb8 in ?? ()
#24 0x0000000000000000 in ?? ()
(gdb) 

>How-To-Repeat:
	Just start abiword, it crashes before a window appears.

	It may have something to do with the graphics hardware.
	I use the native X from /usr/X11R7.

acpivga0 at acpi0 (OVGA): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0320): ACPI Display Output Device
acpiout2 at acpivga0 (DD03, 0x0410): ACPI Display Output Device
acpiout2: brightness levels: 0 10 20 30 40 50 60 70 80 90 100
acpiout3 at acpivga0 (DD04, 0x0004): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device
acpivga0: unknown output device acpiout0
acpivga0: unknown output device acpiout1
acpivga0: unknown output device acpiout2
acpivga0: unknown output device acpiout3
acpivga0: unknown output device acpiout4
acpivga0: connected output devices:
acpivga0:   0x0400: Unknown Output Device, head 0
...
pchb0 at pci0 dev 0 function 0: Intel 82GM45 Host Bridge (rev. 0x07)
agp0 at pchb0: detected 65532k stolen memory
agp0: aperture at 0xc0000000, size 0x10000000
vga0 at pci0 dev 2 function 0: Intel 82GM45 Integrated Graphics Device (rev. 0x07)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
i915drm0 at vga0: Mobile IntelM-BM-. GM45 Express Chipset
i915drm0: AGP at 0xc0000000 256MB
i915drm0: Initialized i915 1.6.0 20080730
Intel 82GM45 Integrated Graphics Device (miscellaneous display, revision 0x07) at pci0 dev 2 function 1 not configured
...
i915drm0: interrupting at ioapic0 pin 16

>Fix:
	Not known.

-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

>Audit-Trail:
From: Juho Salminen <juho@salminen.fi>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50320
Date: Mon, 4 Jan 2016 22:35:36 +0200

 Also on NetBSD-6.1.5 amd64, I have a similar issue but with
 emacs24-24.5nb4 instead of abiword. Backtrace (below) is pretty much
 identical.

 I managed to work around it by downgrading gtk3+ from 3.16.6nb2
 (NetBSD-6.1) to 3.14.5nb2 (NetBSD-6.0).

 I got this while tunneling X11 over SSH, so this hardly has anything to
 do with graphics hardware. Tested from two X servers, one was Xorg on
 NetBSD-6.1.5 i386, and the other was Cygwin.

 Seems like a gtk3+ issue to me. Or could it have something to do with
 gtk3+ package being built for slightly older version of NetBSD?

 My backtrace for reference:

 $ gdb emacs
 GNU gdb (GDB) 7.3.1
 Copyright (C) 2011 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "x86_64--netbsd".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from /usr/pkg/bin/emacs...(no debugging symbols
 found)...done.-
 (gdb) run
 Starting program: /usr/pkg/bin/emacs

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to LWP 1]
 0x00007f7fe5c1d380 in ?? ()
 (gdb) bt
 #0  0x00007f7fe5c1d380 in ?? ()
 #1  0x00007f7fe254e142 in _mesa_map_function_spec ()
    from /usr/X11R7/lib/modules/dri/mesa_dri.so.0
 #2  0x00007f7fe254e17c in _mesa_map_function_array ()
    from /usr/X11R7/lib/modules/dri/mesa_dri.so.0
 #3  0x00007f7fe2a03e07 in driInitSingleExtension ()
    from /usr/X11R7/lib/modules/dri/swrast_dri.so
 #4  0x00007f7fe2a03e5f in driInitExtensions ()
    from /usr/X11R7/lib/modules/dri/swrast_dri.so
 #5  0x00007f7fe2a03e93 in driInitExtensions ()
    from /usr/X11R7/lib/modules/dri/swrast_dri.so
 #6  0x00007f7fe2a03cc0 in ?? () from
 /usr/X11R7/lib/modules/dri/swrast_dri.so
 #7  0x00007f7fe42b6c25 in ?? () from /usr/X11R7/lib/libGL.so
 #8  0x00007f7fe42b6508 in __glXInitialize () from /usr/X11R7/lib/libGL.so
 #9  0x00007f7fe42b78d4 in ?? () from /usr/X11R7/lib/libGL.so
 #10 0x00007f7fe42b890d in glXQueryServerString () from
 /usr/X11R7/lib/libGL.so
 #11 0x00007f7fea48be69 in epoxy_glx_version () from
 /usr/pkg/lib/libepoxy.so.0
 #12 0x00007f7ff544ece3 in gdk_x11_screen_init_gl ()
    from /usr/pkg/lib/libgdk-3.so.0
 #13 0x00007f7ff544f0c3 in _gdk_x11_screen_update_visuals_for_gl ()
    from /usr/pkg/lib/libgdk-3.so.0
 #14 0x00007f7ff545685a in _gdk_x11_screen_init_visuals ()
    from /usr/pkg/lib/libgdk-3.so.0
 #15 0x00007f7ff5453c04 in _gdk_x11_screen_new ()
    from /usr/pkg/lib/libgdk-3.so.0
 #16 0x00007f7ff544730f in _gdk_x11_display_open ()
    from /usr/pkg/lib/libgdk-3.so.0
 #17 0x00007f7ff5426351 in gdk_display_manager_open_display ()
    from /usr/pkg/lib/libgdk-3.so.0
 #18 0x00007f7ff59e0a63 in gtk_init_check () from /usr/pkg/lib/libgtk-3.so.0
 #19 0x00007f7ff59e0a95 in gtk_init () from /usr/pkg/lib/libgtk-3.so.0
 #20 0x00000000004b9c63 in ?? ()
 #21 0x00000000004bb772 in ?? ()
 #22 0x0000000000543fd9 in ?? ()
 #23 0x00000000005759c7 in ?? ()
 #24 0x0000000000543a0c in ?? ()
 #25 0x0000000000543d81 in ?? ()
 #26 0x00000000005759c7 in ?? ()
 #27 0x0000000000543d81 in ?? ()
 #28 0x000000000054367f in ?? ()
 #29 0x0000000000545f9c in ?? ()
 #30 0x0000000000577c69 in ?? ()
 #31 0x0000000000543d81 in ?? ()
 #32 0x00000000005759c7 in ?? ()
 #33 0x0000000000542f8f in ?? ()
 #34 0x0000000000543232 in ?? ()
 #35 0x000000000054542d in ?? ()
 #36 0x00000000005425ff in ?? ()
 #37 0x00000000004dd604 in ?? ()
 #38 0x0000000000542513 in ?? ()
 #39 0x00000000004de244 in ?? ()
 #40 0x00000000004de517 in ?? ()
 #41 0x00000000004d93c2 in ?? ()
 #42 0x0000000000414a62 in ?? ()
 #43 0x00007f7ff7c06da1 in _rtld () from /usr/libexec/ld.elf_so
 #44 0x00007f7fffffff43 in ?? ()
 #45 0x00007f7fffffff59 in ?? ()
 #46 0x00007f7fffffff63 in ?? ()
 #47 0x00007f7fffffff6c in ?? ()
 #48 0x00007f7fffffff80 in ?? ()
 #49 0x00007f7fffffff88 in ?? ()
 #50 0x00007f7fffffff99 in ?? ()
 #51 0x00007f7fffffffc7 in ?? ()
 #52 0x0000000000000000 in ?? ()


 BR,
 Juho

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50320
Date: Tue, 15 Mar 2016 06:15:39 +0000

 On Mon, Jan 04, 2016 at 10:00:02PM +0000, Juho Salminen wrote:
  >  Also on NetBSD-6.1.5 amd64, I have a similar issue but with
  >  emacs24-24.5nb4 instead of abiword. Backtrace (below) is pretty much
  >  identical.
  >  
  >  I managed to work around it by downgrading gtk3+ from 3.16.6nb2
  >  (NetBSD-6.1) to 3.14.5nb2 (NetBSD-6.0).
  >  
  >  I got this while tunneling X11 over SSH, so this hardly has anything to
  >  do with graphics hardware. Tested from two X servers, one was Xorg on
  >  NetBSD-6.1.5 i386, and the other was Cygwin.
  >  
  >  Seems like a gtk3+ issue to me. Or could it have something to do with
  >  gtk3+ package being built for slightly older version of NetBSD?

 It could, but it's deep enough under gtk3 that I suspect the actual
 bug is not in gtk3 and different gtk3 versions do or don't tickle it.
 Not that I have any idea what the problem is.

 Note though that "swrast_dri" is the software renderer, so there's no
 graphics hardware going on here.

  >  #0  0x00007f7fe5c1d380 in ?? ()
  >  #1  0x00007f7fe254e142 in _mesa_map_function_spec ()
  >     from /usr/X11R7/lib/modules/dri/mesa_dri.so.0
  >  #2  0x00007f7fe254e17c in _mesa_map_function_array ()
  >     from /usr/X11R7/lib/modules/dri/mesa_dri.so.0
  >  #3  0x00007f7fe2a03e07 in driInitSingleExtension ()
  >     from /usr/X11R7/lib/modules/dri/swrast_dri.so
  >  #4  0x00007f7fe2a03e5f in driInitExtensions ()
  >     from /usr/X11R7/lib/modules/dri/swrast_dri.so
  >  #5  0x00007f7fe2a03e93 in driInitExtensions ()
  >     from /usr/X11R7/lib/modules/dri/swrast_dri.so

 -- 
 David A. Holland
 dholland@netbsd.org

From: Rhialto <rhialto@falu.nl>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
        rhialto@falu.nl
Subject: Re: pkg/50320
Date: Tue, 15 Mar 2016 09:18:41 +0100

 On Tue 15 Mar 2016 at 06:20:01 +0000, David Holland wrote:
 >  It could, but it's deep enough under gtk3 that I suspect the actual
 >  bug is not in gtk3 and different gtk3 versions do or don't tickle it.
 >  Not that I have any idea what the problem is.

 That is quite possible. With NetBSD 7.0, abiword-3.0.1 does not crash
 for me any more (from pkgsrc-2015Q4). However now the GUI has problems
 with mouse clicks/drags (they don't seem to register most of the time).
 gtk version is gtk3+-3.16.7.

 -Olaf.

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50320
Date: Wed, 16 Mar 2016 09:06:35 +0000

 On Mon, Jan 04, 2016 at 10:00:02PM +0000, Juho Salminen wrote:
 >  I managed to work around it by downgrading gtk3+ from 3.16.6nb2
 >  (NetBSD-6.1) to 3.14.5nb2 (NetBSD-6.0).

 Possible clue: 3.14.5 didn't depend on libepoxy, so wasn't as affected
 by mesalib implementations and graphics card drivers.

>Unformatted:

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.