From nobody@FreeBSD.org  Tue Nov 15 15:51:30 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5B92816A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Nov 2005 15:51:30 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0FED043D46
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Nov 2005 15:51:30 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jAFFpTXI046643
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Nov 2005 15:51:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jAFFpTMk046641;
	Tue, 15 Nov 2005 15:51:29 GMT
	(envelope-from nobody)
Message-Id: <200511151551.jAFFpTMk046641@www.freebsd.org>
Date: Tue, 15 Nov 2005 15:51:29 GMT
From: Jean-Francois Gobin <gobin@gobinjf.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Segmentation Violation during "make install" of XFree86-4
X-Send-Pr-Version: www-2.3

>Number:         89074
>Category:       ports
>Synopsis:       Segmentation Violation during "make install" of XFree86-4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 15 16:00:31 GMT 2005
>Closed-Date:    Fri Mar 16 20:47:36 GMT 2007
>Last-Modified:  Fri Mar 16 20:47:36 GMT 2007
>Originator:     Jean-Francois Gobin
>Release:        5.4-RELEASE
>Organization:
>Environment:
FreeBSD ns.kyrian.be 5.4-RELEASE-p5 FreeBSD 5.4-RELEASE-p5 #0: Wed Jul 27 14:30:39 CEST 2005     root@ns.kyrian.be:/usr/obj/usr/src/sys/KERNEL-JF  i386
>Description:
              During "make install" of the XFree86-4 ports, something ends with : 

+ /usr/bin/install -c -m 0444 timR12-ISO8859-15.pcf.gz /usr/X11R6/lib/X11/fonts/100dpi
+ /usr/bin/install -c -m 0444 timR14-ISO8859-15.pcf.gz /usr/X11R6/lib/X11/fonts/100dpi
+ /usr/bin/install -c -m 0444 timR18-ISO8859-15.pcf.gz /usr/X11R6/lib/X11/fonts/100dpi
+ /usr/bin/install -c -m 0444 timR24-ISO8859-15.pcf.gz /usr/X11R6/lib/X11/fonts/100dpi
+ rm -f /usr/X11R6/lib/X11/fonts/100dpi/fonts.scale
+ /usr/X11R6/bin/mkfontscale /usr/X11R6/lib/X11/fonts/100dpi
rm -f /usr/X11R6/lib/X11/fonts/100dpi/fonts.dir
/usr/X11R6/bin/mkfontdir  -x bdf /usr/X11R6/lib/X11/fonts/100dpi
*** Signal 11

Stop in /usr/ports/x11-fonts/XFree86-4-font100dpi/work/xc/fonts/bdf/100dpi.
*** Error code 1

Stop in /usr/ports/x11-fonts/XFree86-4-font100dpi.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4.


The core file shows : 

ns# ls *core*
mkfontdir.core
ns# gdb -c mkfontdir.core
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".
Core was generated by `mkfontdir'.
Program terminated with signal 11, Segmentation fault.
#0  0x2822d1b9 in ?? ()
(gdb) quit


>How-To-Repeat:
"make install" in XFree86-4 port directory. 

I can also make it happens with : 

ns# cd /usr/ports/x11-fonts/XFree86-4-font100dpi
ns# /usr/X11R6/bin/mkfontdir  -x bdf /usr/X11R6/lib/X11/fonts/100dpi
Segmentation fault (core dumped)


>Fix:
              
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->x11 
Responsible-Changed-By: mnag 
Responsible-Changed-When: Tue Nov 15 16:24:24 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89074 

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: bug-followup@freebsd.org,
 gobin@gobinjf.be
Cc:  
Subject: Re: ports/89074: Segmentation Violation during "make install" of XFree86-4
Date: Tue, 15 Nov 2005 18:13:16 +0100

 What version of XFree86-clients do you have installed and what is the output 
 of "pkg_info -W /usr/X11R6/bin/mkfontdir"?
Responsible-Changed-From-To: x11->freebsd-x11 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Nov 16 05:39:43 GMT 2005 
Responsible-Changed-Why:  
Canonicalize assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89074 

From: Jean-Francois Gobin <gobin@gobinjf.be>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@freebsd.org
Subject: Re: ports/89074: Segmentation Violation during "make install" of
 XFree86-4
Date: Tue, 15 Nov 2005 21:37:58 +0100 (CET)

 So ...
 
 [gobin@ns ~]$ pkg_info -W /usr/X11R6/bin/mkfontdir
 /usr/X11R6/bin/mkfontdir was installed by package XFree86-clients-4.5.0_1
 
 [gobin@ns ~]$ pkg_info | grep XFree
 XFree86-clients-4.5.0_1 XFree86-4 client programs and related files
 XFree86-documents-4.5.0 XFree86-4 documentation
 XFree86-fontEncodings-4.5.0 XFree86-4 font encoding files
 XFree86-fontScalable-4.5.0 XFree86-4 scalable fonts
 XFree86-libraries-4.5.0 XFree86-4 libraries and headers
 XFree86-manuals-4.5.0 XFree86-4 man pages
 imake-4.5.0         Imake and other utilities from XFree86
 
 Regards,
 Jean-Francois Gobin
 
 
 On Tue, 15 Nov 2005, Dejan Lesjak wrote:
 
 > What version of XFree86-clients do you have installed and what is the output
 > of "pkg_info -W /usr/X11R6/bin/mkfontdir"?
 >
 
 ----------
 Jean-Francois Gobin - Administrateur gobinjf.be
 http://www.gobinjf.be   mailto:gobin@gobinjf.be

From: Jean-Francois Gobin <gobin@gobinjf.be>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@freebsd.org
Subject: Re: ports/89074: Segmentation Violation during "make install" of
 XFree86-4
Date: Wed, 16 Nov 2005 08:16:37 +0100 (CET)

 So ...
 
 [gobin@ns ~]$ pkg_info -W /usr/X11R6/bin/mkfontdir
 /usr/X11R6/bin/mkfontdir was installed by package XFree86-clients-4.5.0_1
 
 [gobin@ns ~]$ pkg_info | grep XFree
 XFree86-clients-4.5.0_1 XFree86-4 client programs and related files
 XFree86-documents-4.5.0 XFree86-4 documentation
 XFree86-fontEncodings-4.5.0 XFree86-4 font encoding files
 XFree86-fontScalable-4.5.0 XFree86-4 scalable fonts
 XFree86-libraries-4.5.0 XFree86-4 libraries and headers
 XFree86-manuals-4.5.0 XFree86-4 man pages
 imake-4.5.0         Imake and other utilities from XFree86
 
 Regards,
 Jean-Francois Gobin
 
 
 
 
 On Tue, 15 Nov 2005, Dejan Lesjak wrote:
 
 > What version of XFree86-clients do you have installed and what is the output
 > of "pkg_info -W /usr/X11R6/bin/mkfontdir"?
 >
 
 ----------
 Jean-Francois Gobin - Administrateur gobinjf.be
 http://www.gobinjf.be   mailto:gobin@gobinjf.be

From: Jean-Francois Gobin <gobin@gobinjf.be>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@freebsd.org
Subject: Re: ports/89074: Segmentation Violation during "make install" of
 XFree86-4
Date: Thu, 17 Nov 2005 09:11:38 +0100 (CET)

 More informations :
 
 ns# gdb /usr/X11R6/bin/mkfontdir
 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"...(no debugging symbols 
 found)...
 (gdb) run -x bdf /usr/X11R6/lib/X11/fonts/100dpi
 Starting program: /usr/X11R6/bin/mkfontdir -x bdf 
 /usr/X11R6/lib/X11/fonts/100dpi
 (no debugging symbols found)...(no debugging symbols found)...(no 
 debugging symbols found)...(no debugging symbols found)...(no debugging 
 symbols found)...(no debugging symbols found)...
 Program received signal SIGSEGV, Segmentation fault.
 0x2822d1b9 in __vfprintf () from /lib/libc.so.5
 (gdb)
 
 Hope it helps!
 
 jF
 
 
 
 On Tue, 15 Nov 2005, Dejan Lesjak wrote:
 
 > What version of XFree86-clients do you have installed and what is the output
 > of "pkg_info -W /usr/X11R6/bin/mkfontdir"?
 >
 
 ----------
 Jean-Francois Gobin - Administrateur gobinjf.be
 http://www.gobinjf.be   mailto:gobin@gobinjf.be

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: bug-followup@freebsd.org,
 gobin@gobinjf.be
Cc:  
Subject: Re: ports/89074: Segmentation Violation during "make install" of XFree86-4
Date: Fri, 18 Nov 2005 01:50:23 +0100

 That seems fine.
 There are no debugging symbols in default install of XFree86-clients (where 
 mkfontdir comes from). To get them you need to add '-g' to CFLAGS and add a 
 line to scripts/configure of x11/XFree86-4-clients port:
 
 echo "#define StripInstalledPrograms NO"        >> $LOCALDEF
 
 (below the line
 echo "#define UseInstalledLibraries YES"        >> $LOCALDEF
 for example).
 Then recompile this port and when you get to gdb, obtain a backtrace with 
 'bt'.
 Is the hardware in good shape (see 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#SIGNAL11)?

From: Jean-Francois Gobin <gobin@gobinjf.be>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@freebsd.org
Subject: Re: ports/89074: Segmentation Violation during "make install" of
 XFree86-4
Date: Sat, 19 Nov 2005 18:37:12 +0100 (CET)

 Ok ... I'm doing the "dd if=/dev/HARD_DISK of=/dev/null bs=1024k 
 count=MEGS" test ...
 
 Results :
 
 Before :
 
 + /usr/bin/install -c -m 0444 timR24-ISO8859-15.pcf.gz 
 /usr/X11R6/lib/X11/fonts/100dpi
 + rm -f /usr/X11R6/lib/X11/fonts/100dpi/fonts.scale
 + /usr/X11R6/bin/mkfontscale /usr/X11R6/lib/X11/fonts/100dpi
 rm -f /usr/X11R6/lib/X11/fonts/100dpi/fonts.dir
 /usr/X11R6/bin/mkfontdir  -x bdf /usr/X11R6/lib/X11/fonts/100dpi
 *** Signal 11
 
 Stop in 
 /usr/ports/x11-fonts/XFree86-4-font100dpi/work/xc/fonts/bdf/100dpi.
 *** Error code 1
 
 Then :
 
 "dd if=/dev/ad0 of=/dev/null bs=1024k count=128"
 
 After :
 
 + /usr/bin/install -c -m 0444 timR24-ISO8859-15.pcf.gz 
 /usr/X11R6/lib/X11/fonts/100dpi
 + rm -f /usr/X11R6/lib/X11/fonts/100dpi/fonts.scale
 + /usr/X11R6/bin/mkfontscale /usr/X11R6/lib/X11/fonts/100dpi
 rm -f /usr/X11R6/lib/X11/fonts/100dpi/fonts.dir
 /usr/X11R6/bin/mkfontdir  -x bdf /usr/X11R6/lib/X11/fonts/100dpi
 *** Signal 11
 
 Stop in 
 /usr/ports/x11-fonts/XFree86-4-font100dpi/work/xc/fonts/bdf/100dpi.
 *** Error code 1
 
 Same place ... Doctor, tell me the truth : is that my hw or the sw ?
 
 I'm doing the BackTracePowerOfHell right now :-)
 
 jF
 
 On Fri, 18 Nov 2005, Dejan Lesjak wrote:
 
 > That seems fine.
 > There are no debugging symbols in default install of XFree86-clients (where
 > mkfontdir comes from). To get them you need to add '-g' to CFLAGS and add a
 > line to scripts/configure of x11/XFree86-4-clients port:
 >
 > echo "#define StripInstalledPrograms NO"        >> $LOCALDEF
 >
 > (below the line
 > echo "#define UseInstalledLibraries YES"        >> $LOCALDEF
 > for example).
 > Then recompile this port and when you get to gdb, obtain a backtrace with
 > 'bt'.
 > Is the hardware in good shape (see
 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#SIGNAL11)?
 >
 
 ----------
 Jean-Francois Gobin - Administrateur gobinjf.be
 http://www.gobinjf.be   mailto:gobin@gobinjf.be

From: Jean-Francois Gobin <gobin@gobinjf.be>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/89074: Segmentation Violation during "make install" of
 XFree86-4 (fwd)
Date: Sun, 20 Nov 2005 09:21:11 +0100 (CET)

 And here you are ...
 
 ns# /usr/X11R6/bin/mkfontdir  -x bdf .
 
 Segmentation fault (core dumped)
 ns#
 ns#
 ns# gdb /usr/X11R6/bin/mkfontdir
 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) run  -x bdf .
 Starting program: /usr/X11R6/bin/mkfontdir -x bdf .
 
 Program received signal SIGSEGV, Segmentation fault.
 0x2822d1b9 in __vfprintf () from /lib/libc.so.5
 (gdb) bt
 #0  0x2822d1b9 in __vfprintf () from /lib/libc.so.5
 #1  0x2822bb07 in vfprintf () from /lib/libc.so.5
 #2  0x282188ba in fprintf () from /lib/libc.so.5
 #3  0x080490d5 in WriteFontTable (dirName=0x720e5000 <Error reading address 
 0x720e5000: Bad address>, table=0xbfbfe7e0)
      at mkfontdir.c:204
 #4  0x08049f2d in DoDirectory (dirName=0xbfbfedb8 ".", encodings=0x720e5000, 
 count=1913540608) at mkfontdir.c:664
 #5  0x0804a437 in main (argc=4, argv=0xbfbfecb4) at mkfontdir.c:793
 
 Hope it helps
 
 
 On Fri, 18 Nov 2005, Dejan Lesjak wrote:
 
 > That seems fine.
 > There are no debugging symbols in default install of XFree86-clients (where
 > mkfontdir comes from). To get them you need to add '-g' to CFLAGS and add a
 > line to scripts/configure of x11/XFree86-4-clients port:
 > 
 > echo "#define StripInstalledPrograms NO"        >> $LOCALDEF
 > 
 > (below the line
 > echo "#define UseInstalledLibraries YES"        >> $LOCALDEF
 > for example).
 > Then recompile this port and when you get to gdb, obtain a backtrace with
 > 'bt'.
 > Is the hardware in good shape (see
 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#SIGNAL11)?
 >
 
 ----------
 Jean-Francois Gobin - Administrateur gobinjf.be
 http://www.gobinjf.be   mailto:gobin@gobinjf.be

From: Jean-Francois Gobin <gobin@gobinjf.be>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@freebsd.org
Subject: Re: ports/89074: Segmentation Violation during "make install" of
 XFree86-4
Date: Sun, 20 Nov 2005 13:49:55 +0100 (CET)

 Don't look too far. This can really be a HW trouble (httpd is also showing 
 SEGV behaviour)
 
 jF
 
 
 On Fri, 18 Nov 2005, Dejan Lesjak wrote:
 
 > That seems fine.
 > There are no debugging symbols in default install of XFree86-clients (where
 > mkfontdir comes from). To get them you need to add '-g' to CFLAGS and add a
 > line to scripts/configure of x11/XFree86-4-clients port:
 >
 > echo "#define StripInstalledPrograms NO"        >> $LOCALDEF
 >
 > (below the line
 > echo "#define UseInstalledLibraries YES"        >> $LOCALDEF
 > for example).
 > Then recompile this port and when you get to gdb, obtain a backtrace with
 > 'bt'.
 > Is the hardware in good shape (see
 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#SIGNAL11)?
 >
 
 ----------
 Jean-Francois Gobin - Administrateur gobinjf.be
 http://www.gobinjf.be   mailto:gobin@gobinjf.be

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: bug-followup@freebsd.org,
 gobin@gobinjf.be
Cc:  
Subject: Re: ports/89074: Segmentation Violation during "make install" of XFree86-4
Date: Sun, 20 Nov 2005 21:48:57 +0100

 It's curious though that problems should happen always on same spot. If you do 
 suspect hardware problems, you might want to take a look at Memtest86+ 
 (http://www.memtest.org/) - you can grab a bootable CD which should check the 
 memory.
State-Changed-From-To: open->suspended 
State-Changed-By: edwin 
State-Changed-When: Thu Jan 5 04:18:23 UTC 2006 
State-Changed-Why:  
Submitter reports it can be a hardware problem. 
Please keep us informed! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89074 
State-Changed-From-To: suspended->feedback 
State-Changed-By: lesi 
State-Changed-When: Fri Mar 16 13:06:42 UTC 2007 
State-Changed-Why:  
Is this still a problem? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89074 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Mar 16 20:47:16 UTC 2007 
State-Changed-Why:  
Submitter reported that this was a local problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89074 
>Unformatted:
