NetBSD Problem Report #50476

From www@NetBSD.org  Thu Nov 26 03:06:27 2015
Return-Path: <www@NetBSD.org>
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 A9116A64EF
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 26 Nov 2015 03:06:27 +0000 (UTC)
Message-Id: <20151126030626.2A9A4A6562@mollari.NetBSD.org>
Date: Thu, 26 Nov 2015 03:06:26 +0000 (UTC)
From: spott.andy@gmail.com
Reply-To: spott.andy@gmail.com
To: gnats-bugs@NetBSD.org
Subject: net/filezilla build on NetBSD/i386 7.0 spins CPU 100%
X-Send-Pr-Version: www-1.0

>Number:         50476
>Category:       pkg
>Synopsis:       net/filezilla build on NetBSD/i386 7.0 spins CPU 100%
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 26 03:10:01 +0000 2015
>Originator:     Scott Anderson
>Release:        NetBSD 7.0 + pkgsrc-current
>Organization:
>Environment:
NetBSD spott.no-ip.org 7.0 NetBSD 7.0 (GENERIC.201509250726Z) i386
>Description:
pkgsrc/net/filezilla build on NetBSD/i386 7.0 spins CPU 100% in cc1plus:
---

...
Making all in engine
gmake[2]: Entering directory '/usr/pkgsrc/net/filezilla/work/filezilla-3.12.0/src/engine'
if c++ -DHAVE_CONFIG_H -I. -I../../src/include  -I./../include -I/usr/pkg/include -I/usr/pkg/lib/wx/include/gtk2-unicode-3.0 -I/usr/pkg/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -fpch-preprocess  -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -Wall -g -std=gnu++11 -MT filezilla.h.gch -MD -MP -MF ".deps/.Tpo" -c -o filezilla.h.gch filezilla.h; \
then mv -f ".deps/.Tpo" ".deps/.Po"; else rm -f ".deps/.Tpo"; exit 1; fi

---

"ps axwwO wchan" shows:

---

27112 -       ttyp1 O+   1200:43.94 /usr/libexec/cc1plus -quiet -I . -I ../../src/include -I ./../include -I /usr/pkgsrc/net/filezilla/work/.buildlink/include -I /usr/pkgsrc/net/filezilla/work/.buildlink/lib/wx/include/gtk2-unicode-3.0 -I /usr/pkgsrc/net/filezilla/work/.buildlink/include/wx-3.0 -I /usr/pkgsrc/net/filezilla/work/.x11-buildlink/include -I /usr/pkgsrc/net/filezilla/work/.x11-buildlink/include/libdrm -I /usr/pkgsrc/net/filezilla/work/.x11-buildlink/include/freetype2 -MD filezilla.h.d -MF .deps/.Tpo -MP -MT filezilla.h.gch -D HAVE_CONFIG_H -D _FILE_OFFSET_BITS=64 -D WXUSINGDLL -D __WXGTK__ filezilla.h -quiet -dumpbase filezilla.h -mtune=nocona -march=i486 -auxbase-strip filezilla.h.gch -g -O2 -Wall-std=gnu++11 -fpch-preprocess -o /var/tmp//cccGUpns.s --output-pch= filezilla.h.gch

---

"gdb /usr/libexec/cc1plus" shows:

---

gdb /usr/libexec/cc1plus
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 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 "i486--netbsdelf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/libexec/cc1plus...(no debugging symbols found)...done.
(gdb) attach 27112
Attaching to program: /usr/libexec/cc1plus, process 27112
Reading symbols from /usr/lib/libintl.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libintl.so.1
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libstdc++.so.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.7
Reading symbols from /usr/lib/libm.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libm.so.0
Reading symbols from /usr/lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...done.
Loaded symbols for /usr/libexec/ld.elf_so
0xbb9e94f8 in ?? () from /usr/lib/libc.so.12
(gdb) bt
#0  0xbb9e94f8 in ?? () from /usr/lib/libc.so.12
#1  0xbb9e9a8a in ?? () from /usr/lib/libc.so.12
#2  0xbb9e9c46 in malloc () from /usr/lib/libc.so.12
#3  0xbba182f8 in vasprintf_l () from /usr/lib/libc.so.12
#4  0xbba18448 in vasprintf () from /usr/lib/libc.so.12
#5  0x087cdbf0 in ?? ()
#6  0x087ce724 in diagnostic_build_prefix(diagnostic_context*, diagnostic_info const*) ()
#7  0x080abaec in cp_diagnostic_starter(diagnostic_context*, diagnostic_info*) ()
#8  0x087ceac9 in diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) ()
#9  0x087cf2f1 in internal_error(char const*, ...) ()
#10 0x082aea9a in ?? ()
#11 <signal handler called>
#12 0x087d1ae3 in htab_traverse_noresize ()
#13 0x0841abc8 in gt_pch_save(__sFILE*) ()
#14 0x08169033 in c_common_write_pch() ()
#15 0x080a64e0 in cp_write_global_declarations() ()
#16 0x082aeb00 in ?? ()
#17 0x082b056f in toplev_main(int, char**) ()
#18 0x0804a564 in ___start ()
#19 0x0804a448 in _start ()
(gdb)

---

This may be related to PR#50287, as symptoms are identical and net/filezilla requires x11/wxGTK30 (that problem also occured during build of wxGTK30, but the published workaround was effective)

---

(I have no idea how to do debugging, I just followed the methods presented in PR#50287. If there's any additional information that would be useful to solving this problem, please provide me with detailed instructions to collect it and I will add it to the PR.)
>How-To-Repeat:
(cd pkgsrc/net/filezilla && make)
on NetBSD/i386 7.0.
>Fix:
Unknown

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.