Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211664 - net-p2p/microdc2-0.15.6: Segmentation fault if logging is enabled
Summary: net-p2p/microdc2-0.15.6: Segmentation fault if logging is enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-27 18:07 UTC by Graham Clenaghan
Modified: 2008-02-28 06:42 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 Graham Clenaghan 2008-02-27 18:07:11 UTC
After logging enabled (ie set logfile /home/graham/.microdc2/log) and a command is issued (ie set) program immediately exits with the error Segmentation fault.

Reproducible: Always

Steps to Reproduce:
1.Enable logging by setting the logfile
2.Issue any command (as far as I have tried)
Actual Results:  
Segmentation Fault

Expected Results:  
Continued to log the command, as well as continue running.
Comment 1 Graham Clenaghan 2008-02-27 18:08:46 UTC
 emerge --info
Portage 2.1.4.4 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r6 x86_64 Intel(R) Pentium(R) D CPU 2.66GHz
Timestamp of tree: Tue, 26 Feb 2008 23:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://mirrors.acm.cs.rpi.edu/gentoo/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aalib adns amd64 apache2 avi bcmath berkdb bitmap-fonts bzip2 caps cli cracklib crypt ctype cups curl curlwrappers dbus dedicated directfb dri dvd dvdread encode fbcon ffmpeg fftw fortran ftp gcj gdbm gpm hal iconv imap inifile innodb interbase isdnlog java javascript jpeg libcaca libg++ libnotify libsamplerate libwww maildir memlimit metalink midi milter mime mmap mpeg mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php png posix ppds pppd python readline reflection samba scanner server session slp sockets spl ssl tcl tcpd threads tiff tokenizer truetype-fonts type1-fonts unicode usb v4l2 vcd xine xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-27 18:13:09 UTC
Reopen with a backtrace; thanks.

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 3 Graham Clenaghan 2008-02-27 22:42:45 UTC
gdb gave me:

microdc2> set
active                     on

Program received signal SIGSEGV, Segmentation fault.
0x00002affa6667ad0 in strlen () from /lib/libc.so.6
Comment 4 Graham Clenaghan 2008-02-27 22:53:09 UTC
oops,

(gdb) bt
#0  0x00002b1c6ebebad0 in strlen () from /lib/libc.so.6
#1  0x00002b1c6ebbc6f4 in vfprintf () from /lib/libc.so.6
#2  0x00002b1c6ebde4ad in vasprintf () from /lib/libc.so.6
#3  0x0000000000431527 in ?? ()
#4  0x00000000004164f2 in ?? ()
#5  0x00000000004166bc in ?? ()
#6  0x0000000000409cce in ?? ()
#7  0x0000000000404575 in ?? ()
#8  0x0000000000416a5e in ?? ()
#9  0x00002b1c6e2967d7 in rl_callback_read_char () from /lib/libreadline.so.5
#10 0x0000000000413b76 in ?? ()
#11 0x00002b1c6eb95b74 in __libc_start_main () from /lib/libc.so.6
#12 0x0000000000404119 in ?? ()
#13 0x00007fff3ca52d68 in ?? ()
#14 0x0000000000000000 in ?? ()
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-28 05:08:41 UTC
Did you really follow the howto linked above (C[XX]FLAGS, FEATURES="nostrip" etc.)? The backtrace is not really useful.
Comment 6 Graham Clenaghan 2008-02-28 06:42:50 UTC
Thats all the information I get with nostrip and everything, bt full only says "No symbol table info available" for every line.

After looking into it at the programs website and mailing list there is a patch for this already:
http://lists.gnu.org/archive/html/microdc-devel/2008-01/msg00000.html

Worked great.