NetBSD Problem Report #30008

From juan@xtrarom.org  Tue Apr 19 10:40:51 2005
Return-Path: <juan@xtrarom.org>
Received: from xtrarom.org (91.Red-80-32-6.pooles.rima-tde.net [80.32.6.91])
	by narn.netbsd.org (Postfix) with ESMTP id BB9AE63B11B
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 19 Apr 2005 10:40:50 +0000 (UTC)
Message-Id: <20050419104046.66BD91698B@xtrarom.org>
Date: Tue, 19 Apr 2005 12:40:46 +0200 (CEST)
From: juan@xtrarom.org
Reply-To: juan@xtrarom.org
To: gnats-bugs@netbsd.org
Subject: print/acroread7 doesn't work
X-Send-Pr-Version: 3.95

>Number:         30008
>Category:       kern
>Synopsis:       print/acroread7 doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    chs
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 19 10:41:00 +0000 2005
>Closed-Date:    Wed Nov 02 21:20:23 +0000 2005
>Last-Modified:  Wed Nov 02 21:20:23 +0000 2005
>Originator:     Juan RP
>Release:        NetBSD 3.99.3, 3.0_BETA
>Organization:
>Environment:
System: NetBSD Nocturno 3.99.3 NetBSD 3.99.3 (Nocturno) #4: Tue Apr 19 08:46:30 CEST 2005 juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:

	The new package print/acroread7 crashes after loading
	a PDF file with this message:

(acroread:841): GdkPixbuf-WARNING **: 
Error loading XPM image loader: Image type 'xpm' is not supported

>How-To-Repeat:
>Fix:

>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: juan@xtrarom.org
Subject: Re: pkg/30008: print/acroread7 doesn't work
Date: Tue, 19 Apr 2005 09:10:05 -0700 (PDT)

 On Tue, 19 Apr 2005 juan@xtrarom.org wrote:

 > (acroread:841): GdkPixbuf-WARNING **:
 > Error loading XPM image loader: Image type 'xpm' is not supported

 I don't have this installed, but a few ideas...

 I guess this is using gtk-2.0 from a Linux RPM.
 Maybe its /emul/..../etc/gtk-2.0/gdk-pixbuf.loaders is not setup.

 Maybe under your /emul you have usr/bin/gtk-query-immodules-2.0 and
 usr/bin/gdk-pixbuf-query-loaders

 Run that Linux usr/bin/gdk-pixbuf-query-loaders and see if it includes
 "xpm" support.

 Some ideas at bottom of
 http://www.linuxquestions.org/questions/showthread.php?postid=793814

 (which maybe could be done using the Linux /emul files ??)

  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/


From: Nick Hudson <nick.hudson@dsl.pipex.com>
To: gnats-bugs@netbsd.org
Cc: Mark Davies <mark@mcs.vuw.ac.nz>,
	Jan Schaumann <jschauma@netmeister.org>, Juan RP <juan@xtrarom.org>
Subject: Re: pkg/30008: print/acroread7 doesn't work
Date: Mon, 9 May 2005 08:04:38 +0000

 This has been bugging me (execuse the pun) and to work around it I hacked the
 libgdk_pixbuf-2.0.so.0 binary to remove the eXecute bit from the STACK header
 entry:

 $ readelf -l /usr/pkg/emul//linux/opt/gnome/lib/libgdk_pixbuf-2.0.so.0  | grep STACK
   STACK          0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x4
 $

 I then ran the commands in INSTALL and now I can use acroread7.

 Why this works for some people and not others beats me. What platforms and
 versions are people using? What's the output of the above command?

 Nick


From: Juan RP <juan@xtrarom.org>
To: gnats-bugs@netbsd.org
Cc: nick.hudson@dsl.pipex.com
Subject: Re: pkg/30008: print/acroread7 doesn't work
Date: Mon, 9 May 2005 10:55:14 +0200

 On Mon,  9 May 2005 07:05:02 +0000 (UTC)
 Nick Hudson <nick.hudson@dsl.pipex.com> wrote:

 >  This has been bugging me (execuse the pun) and to work around it I
 > hacked the libgdk_pixbuf-2.0.so.0 binary to remove the eXecute bit
 > from the STACK header entry:
 >  
 >  $ readelf -l /usr/pkg/emul//linux/opt/gnome/lib/
 > libgdk_pixbuf-2.0.so.0  | grep STACK STACK          0x000000
 > 0x00000000 0x00000000 0x00000 0x00000 RW  0x4 $
 >  
 >  I then ran the commands in INSTALL and now I can use acroread7.
 >  
 >  Why this works for some people and not others beats me. What
 > platforms and versions are people using? What's the output of the
 > above command? 
 >  Nick

 Output for readelf -l libgdk_pixbuf-2.0.so.0 was:

 STACK          0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4

 I'm using -current/i386.

From: Mark Davies <mark@mcs.vuw.ac.nz>
To: Nick Hudson <nick.hudson@dsl.pipex.com>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/30008: print/acroread7 doesn't work
Date: Mon, 9 May 2005 23:14:10 +1200

 On Monday 09 May 2005 20:04, Nick Hudson wrote:
 > Why this works for some people and not others beats me. What platforms and
 > versions are people using? What's the output of the above command?

 2.99.10/i386

 lap2% readelf -l /usr/pkg/emul//linux/opt/gnome/lib/libgdk_pixbuf-2.0.so.0

 Elf file type is DYN (Shared object file)
 Entry point 0x2b80
 There are 4 program headers, starting at offset 52

 Program Headers:
   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
   LOAD           0x000000 0x00000000 0x00000000 0x10ce8 0x10ce8 R E 0x1000
   LOAD           0x011000 0x00011000 0x00011000 0x004c4 0x00518 RW  0x1000
   DYNAMIC        0x011208 0x00011208 0x00011208 0x000f0 0x000f0 RW  0x4
   LOOS+474e551   0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4

  Section to Segment mapping:
   Segment Sections...

 00     .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata
    01     .data .eh_frame .dynamic .ctors .dtors .jcr .got .bss
    02     .dynamic
    03

 cheers
 mark

From: Jan Schaumann <jschauma@netmeister.org>
To: Nick Hudson <nick.hudson@dsl.pipex.com>
Cc: gnats-bugs@netbsd.org, Mark Davies <mark@mcs.vuw.ac.nz>,
	Juan RP <juan@xtrarom.org>
Subject: Re: pkg/30008: print/acroread7 doesn't work
Date: Mon, 9 May 2005 10:09:02 -0400

 --WIyZ46R2i8wDzkSu
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 Nick Hudson <nick.hudson@dsl.pipex.com> wrote:
 > This has been bugging me (execuse the pun) and to work around it I hacked=
  the
 > libgdk_pixbuf-2.0.so.0 binary to remove the eXecute bit from the STACK he=
 ader
 > entry:
 >=20
 > $ readelf -l /usr/pkg/emul//linux/opt/gnome/lib/libgdk_pixbuf-2.0.so.0  |=
  grep STACK
 >   STACK          0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x4
 > $
 >=20
 > I then ran the commands in INSTALL and now I can use acroread7.
 >=20
 > Why this works for some people and not others beats me. What platforms and
 > versions are people using? What's the output of the above command?

 I run acroread7 on NetBSD-2.0/i386.

 Output:

 Elf file type is DYN (Shared object file)
 Entry point 0x2b80
 There are 4 program headers, starting at offset 52

 Program Headers:
   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg
 Align
   LOAD           0x000000 0x00000000 0x00000000 0x10ce8 0x10ce8 R E
 0x1000
   LOAD           0x011000 0x00011000 0x00011000 0x004c4 0x00518 RW
 0x1000
   DYNAMIC        0x011208 0x00011208 0x00011208 0x000f0 0x000f0 RW  0x4
   LOOS+474e551   0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4

  Section to Segment mapping:
   Segment Sections...
    00     .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn
 =2Erel.plt .init .plt .text .fini .rodata=20
    01     .data .eh_frame .dynamic .ctors .dtors .jcr .got .bss=20
    02     .dynamic=20
    03    =20


 No STACK information.                                                      =
       =20
 -Jan

 --=20
 The Internet interprets censorship as damage and routes around it.
 	-- John Gilmore

 --WIyZ46R2i8wDzkSu
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.3 (NetBSD)

 iD8DBQFCf279fFtkr68iakwRArwQAKCsPutvs9vHDN++ebOms5uXVMYrPgCdEJRH
 Kn9Zefk2/LqftNv2ptxzhpI=
 =PLI7
 -----END PGP SIGNATURE-----

 --WIyZ46R2i8wDzkSu--

Responsible-Changed-From-To: pkg-manager->kern-bug-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Wed, 07 Sep 2005 10:14:58 +0000
Responsible-Changed-Why:
Rather more a kernel problem than one with pkgsrc.


From: "Steven M. Bellovin" <smb@cs.columbia.edu>
To: gnats-bugs@NetBSD.org
Cc: juan@xtrarom.org
Subject: Re: kern/30008
Date: Wed, 14 Sep 2005 10:58:42 -0400

 It may, in fact, be pkg-related.  In an email message
 http://mail-index.netbsd.org/netbsd-users/2005/07/07/0010.html
 Courten Spencer supplied a fix involving 
 /usr/pkg/emul/linux/etc/opt/gnome/gtk-2.0/gdk-pixbuf.loaders
 being garbled.  I've used this procedure successfully on -current and 
 3.0beta.

 		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb


From: Nick Hudson <skrll@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/30008
Date: Thu, 15 Sep 2005 09:23:16 +0100

 On Wednesday 14 September 2005 15:59, Steven M. Bellovin wrote:
 > The following reply was made to PR kern/30008; it has been noted by GNATS.
 >
 > From: "Steven M. Bellovin" <smb@cs.columbia.edu>
 > To: gnats-bugs@NetBSD.org
 > Cc: juan@xtrarom.org
 > Subject: Re: kern/30008
 > Date: Wed, 14 Sep 2005 10:58:42 -0400
 >
 >  It may, in fact, be pkg-related.  In an email message
 >  http://mail-index.netbsd.org/netbsd-users/2005/07/07/0010.html
 >  Courten Spencer supplied a fix involving
 >  /usr/pkg/emul/linux/etc/opt/gnome/gtk-2.0/gdk-pixbuf.loaders
 >  being garbled.  I've used this procedure successfully on -current and
 >  3.0beta.


 The following change to sys/arch/i386/include/vmparam.h causes the problem.

 revision 1.58
 date: 2005/01/10 05:34:51;  author: mycroft;  state: Exp;  lines: +2 -4
 Now that countless UVM bugs have been fixed, enable "topdown" memory
 allocation by default.

 Now to work out the fix.

 Nick

From: Chuck Silvers <chs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30008 CVS commit: src/sys/compat/linux/common
Date: Sun, 30 Oct 2005 16:25:50 +0000 (UTC)

 Module Name:	src
 Committed By:	chs
 Date:		Sun Oct 30 16:25:50 UTC 2005

 Modified Files:
 	src/sys/compat/linux/common: linux_misc.c linux_mmap.h

 Log Message:
 add support for the linux PROT_GROWS{DOWN,UP} mprotect() flags.
 fixes PR 30008.


 To generate a diff of this commit:
 cvs rdiff -r1.140 -r1.141 src/sys/compat/linux/common/linux_misc.c
 cvs rdiff -r1.16 -r1.17 src/sys/compat/linux/common/linux_mmap.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: Re: kern/30008
Date: Mon, 31 Oct 2005 11:46:07 +0100

 On netbsd-3, the Acrobat Reader 7 package worked for me after the 
 following change:


 /emul/linux/opt/gnome/bin/gtk-query-immodules-2.0 \
      > /emul/linux/etc/opt/gnome/gtk-2.0/gtk.immodules

 /emul/linux/opt/gnome/bin/gdk-pixbuf-query-loaders \
      > /emul/linux/etc/opt/gnome/gtk-2.0/gdk-pixbuf.loaders


 Although the binary package had the proper files


 [hf@kalmit] /<1>pkg-stable/emulators > pax -zvf suse_gtk2-9.1nb3.tgz 
 | grep etc/opt/gnome/gtk-2.0
 pax: Trying to read GNU tar archive with extensions off
 -rw-r--r--  1 root     wheel       1804 Oct 19 11:48 
 emul/linux/etc/opt/gnome/gtk-2.0/gtk.immodules
 -rw-r--r--  1 root     wheel       2522 Oct 19 11:48 
 emul/linux/etc/opt/gnome/gtk-2.0/gdk-pixbuf.loaders


 my installation had zero-length files - either because the package 
 installation went amiss, or because some other package trashed the 
 files.

 I applied Chuck Silvers' patch first but it did not help, and seems 
 not related.

 The PR should be against the suse packages, and is IMHO misplaced in kern.

 	hauke

 -- 
 /~\  The ASCII Ribbon Campaign                    Hauke Fath
 \ /    No HTML/RTF in email	        Institut für Nachrichtentechnik
   X     No Word docs in email	                  TU Darmstadt
 / \  Respect for open standards              Ruf +49-6151-16-3281

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: Hauke Fath <hf@spg.tu-darmstadt.de>
Cc: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: Re: kern/30008
Date: Mon, 31 Oct 2005 11:59:10 +0100

 Am 31.10.2005 um 11:46 Uhr +0100 schrieb Hauke Fath:
 >I applied Chuck Silvers' patch first but it did not help, and seems 
 >not related.
 >
 >The PR should be against the suse packages, and is IMHO misplaced in kern.

 ...unless there is a fundamental difference between current and 
 netbsd-3 in that respect, that is.

 	hauke

 -- 
 /~\  The ASCII Ribbon Campaign                    Hauke Fath
 \ /    No HTML/RTF in email	        Institut für Nachrichtentechnik
   X     No Word docs in email	                  TU Darmstadt
 / \  Respect for open standards              Ruf +49-6151-16-3281

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30008 CVS commit: [netbsd-3] src/sys/compat/linux/common
Date: Tue,  1 Nov 2005 22:31:17 +0000 (UTC)

 Module Name:	src
 Committed By:	tron
 Date:		Tue Nov  1 22:31:17 UTC 2005

 Modified Files:
 	src/sys/compat/linux/common [netbsd-3]: linux_misc.c linux_mmap.h

 Log Message:
 Pull up following revision(s) (requested by chs in ticket #924):
 	sys/compat/linux/common/linux_misc.c: revision 1.141
 	sys/compat/linux/common/linux_mmap.h: revision 1.17
 add support for the linux PROT_GROWS{DOWN,UP} mprotect() flags.
 fixes PR 30008.


 To generate a diff of this commit:
 cvs rdiff -r1.135.2.1 -r1.135.2.2 src/sys/compat/linux/common/linux_misc.c
 cvs rdiff -r1.15 -r1.15.16.1 src/sys/compat/linux/common/linux_mmap.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: kern-bug-people->chs
Responsible-Changed-By: tron@netbsd.org
Responsible-Changed-When: Wed, 02 Nov 2005 21:20:23 +0000
Responsible-Changed-Why:
Chuck Silvers fixed this bug.


State-Changed-From-To: open->closed
State-Changed-By: tron@netbsd.org
State-Changed-When: Wed, 02 Nov 2005 21:20:23 +0000
State-Changed-Why:
The problem is fixed with Chuck's change. One needs however to reinstall
the "suse91_gtk2" package to fix the conntents of "gtk.immodules" and
the other affected files after booting a new kernel.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.