Subject: pkg/35160: firefox-bin and firefox2-bin segfaults with X.org
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <skanabiz@gmail.com>
List: pkgsrc-bugs
Date: 11/30/2006 17:30:00
>Number:         35160
>Category:       pkg
>Synopsis:       firefox-bin and firefox2-bin segfaults with X.org
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 30 17:30:00 +0000 2006
>Originator:     guilherme m. schroeder
>Release:        3.1 and -CURRENT
>Organization:
central informatica de vendas ltda
>Environment:
NetBSD mocreia 3.1 NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC 2006  builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386

NetBSD dub 4.99.4 NetBSD 4.99.4 (SPIKE) #3: Thu Nov 30 10:20:41 BRST 2006  root@dub:/usr/obj/sys/arch/i386/compile/SPIKE i386

>Description:
When you install firefox-bin or firefox2-bin and had installed X.org from pkgsrc/meta-pkgs/xorg, firefox won't start. It gives a segfault.

$ firefox-linux
[1]   Segmentation fault (core dumped) "${prog}" ${1+"$...

>How-To-Repeat:
Just install NetBSD 3.1 or -CURRENT without XFree86 package and them install pkgsrc/www/firefox-bin or pkgsrc/www/firefox2-bin.

Them try:

$ firefox-linux
>Fix:
As suse100_fontconfig-10.0nb2 installs /emul/linux/etc/fonts/* with default paths, it doesn't know the X.org path from pkgsrc installation. The segfaults occur because it don't find the fonts.
The solution i found was to symlink x.org fonts to linux emulation ambient.

# ln -s /usr/pkg/xorg/lib/X11/fonts /emul/linux/usr/X11R6/lib/X11/fonts/