Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292079 - app-arch/libpar2 segmentation fault
Summary: app-arch/libpar2 segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-06 11:24 UTC by José Valentín Gutiérrez Boquete
Modified: 2009-11-06 17:54 UTC (History)
0 users

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


Attachments
patch that solves the problem, developed by nzbget dev team. (libpar2-0.2-bugfixes.patch,986 bytes, patch)
2009-11-06 11:27 UTC, José Valentín Gutiérrez Boquete
Details | Diff
Modified ebuild that uses the attached .patch (libpar2-0.2.ebuild,728 bytes, text/plain)
2009-11-06 11:29 UTC, José Valentín Gutiérrez Boquete
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Valentín Gutiérrez Boquete 2009-11-06 11:24:38 UTC
There is a problem in libpar2.so checking files when there is no data to verify. It currently tries to repair it resulting in segmentation fault due to NULL pointer exception

nzbget[23142]: segfault at 0 ip 00007ffff6f1ae2e sp 00007fffef7fd030 error 4 in libpar2.so.0.0.1[7ffff6ef0000+3c000]

It was detected using net-nntp/nzbget-0.6.0, here it's the output with debug enabled:

Fri Nov  6 10:42:24 2009        139715417917712 ERROR   Segmentation fault, tracing...
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   Obtained 11 stack frames
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   ./nzbget(_Z14PrintBacktracev+0x26) [0x493f31]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   ./nzbget(_Z10SignalProci+0x5e) [0x4941ad]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   /lib/libc.so.6 [0x7f120b8b73a0]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   /usr/lib/libpar2.so.0(_ZN12Par2Repairer12ScanDataFileEP8DiskFileRP22Par2RepairerSourceFileR9MatchTypeR7MD5HashS8_Rj+0xede) [0x7f120c3ade2e]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   /usr/lib/libpar2.so.0(_ZN12Par2Repairer14VerifyDataFileEP8DiskFileP22Par2RepairerSourceFile+0x32e) [0x7f120c3b164e]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   /usr/lib/libpar2.so.0(_ZN12Par2Repairer17VerifySourceFilesEv+0x9ad) [0x7f120c3b335d]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   /usr/lib/libpar2.so.0(_ZN12Par2Repairer7ProcessERK11CommandLineb+0x37a) [0x7f120c3b3b8a]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   ./nzbget(_ZN10ParChecker3RunEv+0x636) [0x46ad2c]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   ./nzbget(_ZN6Thread14thread_handlerEPv+0x69) [0x48cc6b]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   /lib/libpthread.so.0 [0x7f120c6082a7]
Fri Nov  6 10:42:24 2009        139715417917712 ERROR   /lib/libc.so.6(clone+0x6d) [0x7f120b9557dd]



emerge --info
Portage 2.1.7.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r0, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 05 Nov 2009 10:15:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r2, 2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.utf8"
LC_ALL="es_ES.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES"
MAKEOPTS="-j3"
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="/usr/local/portage/layman/vmware"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg 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 mmap_emul 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 dav dav_fs dav_lock 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 speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 José Valentín Gutiérrez Boquete 2009-11-06 11:27:06 UTC
Created attachment 209407 [details, diff]
patch that solves the problem, developed by nzbget dev team.
Comment 2 José Valentín Gutiérrez Boquete 2009-11-06 11:29:17 UTC
Created attachment 209409 [details]
Modified ebuild that uses the attached .patch
Comment 3 Ben de Groot (RETIRED) gentoo-dev 2009-11-06 17:54:13 UTC
Committed as 0.2-r1. Thanks again for reporting!