Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378031 - net-firewall/fwbuilder - segfault
Summary: net-firewall/fwbuilder - segfault
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-06 20:06 UTC by PetaMem R&D
Modified: 2012-02-12 11:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PetaMem R&D 2011-08-06 20:06:35 UTC
Using fwbuilder 4.2.2.3541 results in

Application asked to unregister timer 0x1e000018 which is not registered in this thread. Fix application.
Application asked to unregister timer 0x3500000b which is not registered in this thread. Fix application.
Segmentation fault

when trying to add a new (second) firewall


# emerge --info
Portage 2.1.10.7 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r4, 2.6.38-tuxonice x86_64)
=================================================================
System uname: Linux-2.6.38-tuxonice-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9600_@_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 26 Jul 2011 10:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.2, 3.1.3-r1, 3.2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.4.5, 4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2 -O2 -ftree-vectorize -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2 -O2 -ftree-vectorize -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en cs"
MAKEOPTS="-j30"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X Xaw3d a52 aac accessibility acpi aften aim aio airplay alac alsa amd64 apache2 apng archive aspell audio audiofile bash-completion bdf berkdb bind bitmap-fonts boost bzip2 cairo cardbus cdparanoia cdr cdrdao cdrom chm cleartype colordiff consolekit corefonts css cups dbus dga dhclient dhcpcd directfb dri drm dxr3 emacs encode enscript eselect expat fbcon flash fontconfig foomaticdb ftp fuse gallium geoip gimp git glib glut gnutls gpm gps gzip hdaps holidays hpcups ibmacpi iconv id3tag imagemagick inifile ithreads java javascript jpeg jpeg2k kde kpathsea kvm laptop latex3 lcms lilo lm_sensors lzma mime mmx modperl mouse mplayer multilib mysql mysqli nsplugin omega opengl openssh pam pango pdf perl plasma player plugins png policykit posix postgres pstricks pulseaudio python qemu-ifup qt3support qt4 radeon raptor rar redland rss rtc semantic-desktop shm smp sndfile sql sqlite sse sse2 sse3 ssl ssse3 subversion svg syslog t1lib threads tools tor tordns truetype truetype-fonts type1 type1-fonts type3 udev unicode urandom v4l v4l2 virtuoso vnc vncviewer vorbis webdav webdav-neon webkit wifi xcb xcomposite xetex xft xml xorg xscreensaver xterm xterm-color xv xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt gpsclock timing" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="de en cs" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" USERLAND="GNU" VIDEO_CARDS="intel radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2011-08-07 06:47:51 UTC
The warning messages come from a bug in qt that was fixed in latest version 4.7.4:
https://bugreports.qt.nokia.com//browse/QTBUG-16175

It normally doesn't seem to cause segfault however; could you provide a backtrace?
http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 PetaMem R&D 2011-08-07 07:36:20 UTC
I tried.

make.conf

CFLAGS="-D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2 -O2 -ftree-vectorize -pipe -ggdb"
LDFLAGS="-s"
#LDFLAGS="-Wl,-flto -Wl,--hash-style=gnu,-O1 -Wl,--as-needed"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.
CHOST="x86_64-pc-linux-gnu"

FEATURES="splitdebug distcc"

re-emerged fwbuilder


$ gdb fwbuilder
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 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-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/fwbuilder...(no debugging symbols found)...done.

also, there is no /usr/lib/debug directory
SO all I get is


Starting program: /usr/bin/fwbuilder <args snipped>
[Thread debugging using libthread_db enabled]
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/libstdc++.so.6.0.14-gdb.py", line 59, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named libstdcxx.v6.printers
[New Thread 0x7fffec8e5700 (LWP 5627)]
[New Thread 0x7fffe1df3700 (LWP 5629)]
Application asked to unregister timer 0x5c00001a which is not registered in this thread. Fix application.
Application asked to unregister timer 0x73000015 which is not registered in this thread. Fix application.

Program received signal SIGSEGV, Segmentation fault.
0x0000000000b98b0d in ?? ()
(gdb) q


Maybe fwbuilder is one of these:

"Note: Some packages unfortunately handle stripping by themselves, inside the upstream provided makefiles. This is an error and should be reported. All packages should leave Portage the task of the stripping or simply restrict stripping entirely. "
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-07 14:08:42 UTC
Documentation about getting good backtraces is here:

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 4 Wormo (RETIRED) gentoo-dev 2011-08-07 19:56:44 UTC
(In reply to comment #2)

> Reading symbols from /usr/bin/fwbuilder...(no debugging symbols found)...done.
> 
> also, there is no /usr/lib/debug directory

Try adding "installsources" to FEATURES for the build, but also install dev-util/debugedit first (it is required for installsources, and it may be an undocumented requirement for splitdebug -- I normally use them together)
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-08-21 08:58:39 UTC
Bug 372203 is the reason why you cannot get any debug info, I'd guess. Let's fix that first...
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2011-08-21 09:55:40 UTC
Please re-sync your portage tree in two hours or so and then try again... then you should get the debug information.
Comment 7 Joshua Kinard gentoo-dev 2011-12-24 19:49:09 UTC
Is this still an issue in 5.0.0.3568 and the soon-to-be-in-the-tree 5.0.1.3592?
Comment 8 PetaMem R&D 2011-12-25 10:06:09 UTC
(In reply to comment #7)
> Is this still an issue in 5.0.0.3568 and the soon-to-be-in-the-tree 5.0.1.3592?


Well, I thought I could test it. Unfortunately fwbuilder des not want to live:



../fwbuilder/uint128.h:469:29: error: expected ')' before 'PRIX64'
../fwbuilder/uint128.h:469:93: warning: spurious trailing '%' in format
../fwbuilder/uint128.h:469:93: warning: too many arguments for format
../fwbuilder/uint128.h:471:28: error: expected ')' before 'PRIX64'
../fwbuilder/uint128.h:471:57: warning: spurious trailing '%' in format
../fwbuilder/uint128.h:471:57: warning: too many arguments for format
In file included from ../fwbuilder/InetAddr.h:49:0,
                 from ../fwbuilder/Address.h:31,
                 from ../fwbuilder/Host.h:33,
                 from ../fwbuilder/Firewall.h:30,
                 from Firewall.cpp:36:
../fwbuilder/uint128.h: In member function 'std::string uint128::to_string() const':
../fwbuilder/uint128.h:469:29: error: expected ')' before 'PRIX64'
../fwbuilder/uint128.h:469:93: warning: spurious trailing '%' in format
../fwbuilder/uint128.h:469:93: warning: too many arguments for format
../fwbuilder/uint128.h:471:28: error: expected ')' before 'PRIX64'
../fwbuilder/uint128.h:471:57: warning: spurious trailing '%' in format
../fwbuilder/uint128.h:471:57: warning: too many arguments for format
distcc[26314] ERROR: compile (null) on localhost failed
distcc[26248] ERROR: compile Cluster.cpp on localhost failed
make[4]: *** [.obj/Cluster.o] Error 1
distcc[26310] ERROR: compile (null) on localhost failed
distcc[26246] ERROR: compile Firewall.cpp on localhost failed
make[4]: *** [.obj/Firewall.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-firewall/fwbuilder-5.0.0.3568/work/fwbuilder-5.0.0.3568/src/libfwbuilder/src/fwbuilder'
make[3]: *** [sub-fwbuilder-make_default-ordered] Error 2
make[3]: Leaving directory `/var/tmp/portage/net-firewall/fwbuilder-5.0.0.3568/work/fwbuilder-5.0.0.3568/src/libfwbuilder/src'
make[2]: *** [sub-src-make_default] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-firewall/fwbuilder-5.0.0.3568/work/fwbuilder-5.0.0.3568/src/libfwbuilder'
make[1]: *** [sub-libfwbuilder-make_default-ordered] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-firewall/fwbuilder-5.0.0.3568/work/fwbuilder-5.0.0.3568/src'
make: *** [sub-src-make_default] Error 2
 * ERROR: net-firewall/fwbuilder-5.0.0.3568 failed (compile phase):
 *   emake failed
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2012-02-12 11:01:22 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Is this still an issue in 5.0.0.3568 and the soon-to-be-in-the-tree 5.0.1.3592?
> 
> 
> Well, I thought I could test it. Unfortunately fwbuilder des not want to live:
> 
[...]

Made a separate bug for that...
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2012-02-12 11:02:11 UTC
... and unfortunately we can't debug a segfault without a backtrace...