Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309319 - app-benchmarks/bonnie++-1.96: zcav segfaults with count >1 and start_offset > 0
Summary: app-benchmarks/bonnie++-1.96: zcav segfaults with count >1 and start_offset > 0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Göktürk Yüksek
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-14 00:10 UTC by Robin Johnson
Modified: 2016-02-23 00:04 UTC (History)
2 users (show)

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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-14 00:10:18 UTC
# zcav -b 4:1 -r 65:128 -l sdf.log.2 -f /dev/sdf -c 3
Segmentation fault (core dumped)
 # gdb `which zcav` core 
GNU gdb (Gentoo 7.0 p1) 7.0
Copyright (C) 2009 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/sbin/zcav...(no debugging symbols found)...done.
[New Thread 12342]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib64/debug/lib64/libpthread-2.11.so.debug...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6...Reading symbols from /usr/lib64/debug/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6.0.13.debug...done.
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6
Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib64/debug/lib64/libm-2.11.so.debug...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib64/debug/lib64/libc-2.11.so.debug...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib64/debug/lib64/ld-2.11.so.debug...done.
(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `zcav -b 4:1 -r 65:128 -l sdf.log.2 -f /dev/sdf -c 3'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004034b1 in ZcavRead::Read(int, int, int, int, int) ()
(gdb) thread apply all bt full

Thread 2 (Thread 12342):
#0  0x00007fd1a818e11d in read () at ../sysdeps/unix/syscall-template.S:82
No locals.
#1  0x0000000000402945 in Thread::Read(void*, int, int) ()
No symbol table info available.
#2  0x0000000000401a6f in MultiZcav::runit() ()
No symbol table info available.
#3  0x0000000000402268 in main ()
No symbol table info available.

Thread 1 (Thread 12343):
#0  0x00000000004034b1 in ZcavRead::Read(int, int, int, int, int) ()
No symbol table info available.
#1  0x000000000040164a in MultiZcav::action(void*) ()
No symbol table info available.
#2  0x0000000000402ba4 in thread_func(void*) ()
No symbol table info available.
#3  0x00007fd1a8186884 in start_thread (arg=<value optimized out>) at pthread_create.c:297
        __res = <value optimized out>
        pd = 0x7fd1a7689710
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140538433541904, 1015657454922041168, 140734286706672, 0, 140538449469440, 3, -1028199760659806384, -1028220246666836144}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, 
              canceltype = 0}}}
        not_first_call = <value optimized out>
        robust = <value optimized out>
        freesize = <value optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#4  0x00007fd1a775af9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#5  0x0000000000000000 in ?? ()
No symbol table info available.
Current language:  auto
The current source language is "auto; currently asm".
(gdb) quit

Portage 2.2_rc63 (!/etc/portage/profile, gcc-4.4.3, glibc-2.11-r1, 2.6.33-rc8-00178-gbee415c x86_64)
=================================================================
System uname: Linux-2.6.33-rc8-00178-gbee415c-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 29 Jan 2010 23:30:23 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.5.4-r3, 2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe -g"
DISTDIR="/home/gentoo/distfiles"
FEATURES="assume-digests autoaddcvs buildpkg ccache collision-protect cvs distlocks fixpackages lmirror mirror multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_CA en_GB en_ZA en_US en af"
MAKEOPTS="-j8 -l10"
PKGDIR="/home/gentoo/packages/bohr-int/"
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="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /code/layman/x11 /code/layman/java-overlay /code/layman/Spring /code/layman/oss-overlay /code/gentoo/gentoo-git/mysql"
SYNC=""
USE="a52 aac aalib acl acpi adns adplug agg aio alsa amd64 amr animgif apache2 ares arts audiofile audit avahi bash-completion berkdb bluetooth bonjour bzip2 cairo calendar cdaudio cdda cddb cdio cdparanoia cdr chardet clamav cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx daap dbus dc1394 dia diskio djbfft dri dts dv dvb dvd dvdr dvdread emf encode exif expat fam ffmpeg fftw firefox flac fltk fontconfig foomaticdb fortran gd gdbm geoip gif gimp glut gmp gnokii gnutls gps graphviz gsm gstreamer hal ical iconv id3tag idea ieee1394 imagemagick imlib inkjar ipod ipv6 jack java5 java6 javacomm jbig jpeg jpeg2k lash lcms ldap libedit libgcrypt libnotify libsamplerate lm_sensors logitech-mouse lzo mad maildir mhash midi mikmod mmap mmx mng modplug modules mozilla mp3 mp3tunes mp4 mpeg mplayer mudflap multilib multitarget musepack nas ncurses nls nocd nptl nptlonly nsplugin offensive ofx ogg openal openexr opengl openmp oss pam pccntl pch pcre pda pdf perl plotutils png portaudio posix postscript povray ppds pulseaudio python quicktime raw rdesktop readline reflection rpc rss ruby savedconfig scanner sdl session sid simplexml slp smp sms smux sndfile snmp sockets socks5 solver speex spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs syslog sysvipc taglib theora threads thunar tidy tiff timidity truetype tta twolame unicode urandom usb v4l v4l2 vcd vcdx videos vim-syntax vorbis vorbis-psy wavpack wideband wifi wma wmf x264 xanim xattr xcb xcomposite xfs xine xinerama xinetd xml xorg xosd xpm xscreensaver xsl xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel usb-audio usb-usx2y ad1816a ad1848 ad1848-lib ad1889 serial-u16550 virmidi seq-dummy dummy" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias asis auth_digest       imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http" APACHE2_MPMS="prefork" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="evdev keyboard mouse void wacom" KERNEL="linux" LCD_DEVICES="g15 glk graphlcd iowarrior ncurses null png ppm text usbhub usblcd X xosd" LINGUAS="en_CA en_GB en_ZA en_US en af" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev ati radeon v4l vga vesa radeonhd" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Göktürk Yüksek archtester gentoo-dev 2016-02-13 04:03:31 UTC
Pull Request is submitted on GitHub: https://github.com/gentoo/gentoo/pull/845
Comment 2 Patrice Clement gentoo-dev 2016-02-23 00:04:53 UTC
commit 3f6681284b8ba2a4f2127ccb3aa0c7d8e84d731d (HEAD -> master)
Merge: 41cac8c 8592f93
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Mon Feb 22 23:46:38 2016 +0000

    Merge github#845: app-benchmarks/bonnie++: fixes a couple of bugs and bump to EAPI 6.
    
    This PR fixes 3 bugs and updates bonnie++ to EAPI 6 courtesy of Göktürk Yüksek.
    
    Pull-Request: https://github.com/gentoo/gentoo/pull/845
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=309319
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=431684
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=515334
    
    Reporter: Göktürk Yüksek <gokturk@binghamton.edu>
    Acked-by: David Seifert <soap@gentoo.org>
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>