Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288844 - sci-misc/boinc crashes with "buffer overflow detected"
Summary: sci-misc/boinc crashes with "buffer overflow detected"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 09:23 UTC by Conrad Kostecki
Modified: 2009-11-10 21:19 UTC (History)
1 user (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 Conrad Kostecki gentoo-dev 2009-10-13 09:23:19 UTC
Hi!
I am unable to use BOINC.
If I want to add an proejct, it crashes with buffer overflow detected.

BOINC ist compiled with CFLAGS="-march -O2 -pipe" LDFLAGS=""

Bl4ckB0x / # /usr/bin/boinc_client --attach_project "http://setiathome.berkeley.edu" "mykey"
13-Oct-2009 11:10:14 [---] Starting BOINC client version 6.6.40 for x86_64-pc-linux-gnu
13-Oct-2009 11:10:14 [---] log flags: task, file_xfer, sched_ops
13-Oct-2009 11:10:14 [---] Libraries: libcurl/7.19.6 OpenSSL/0.9.8k zlib/1.2.3
13-Oct-2009 11:10:14 [---] Data directory: /
13-Oct-2009 11:10:14 [---] Processor: 8 GenuineIntel Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz [Family 6 Model 26 Stepping 5]
13-Oct-2009 11:10:14 [---] Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable nonstop_tsc pni dtes64 monitor ds_cpl
13-Oct-2009 11:10:14 [---] OS: Linux: 2.6.31-gentoo-r2
13-Oct-2009 11:10:14 [---] Memory: 7.80 GB physical, 486.24 MB virtual
13-Oct-2009 11:10:14 [---] Disk: 121.47 MB total, 79.95 MB free
13-Oct-2009 11:10:14 [---] Local time is UTC +2 hours
13-Oct-2009 11:10:14 [---] Can't load library libcudart
13-Oct-2009 11:10:14 [---] No coprocessors
13-Oct-2009 11:10:14 [---] Not using a proxy
13-Oct-2009 11:10:14 [---] Already attached to http://setiathome.berkeley.edu/
13-Oct-2009 11:10:14 [---] Version change (6.4.5 -> 6.6.40)
13-Oct-2009 11:10:14 [http://setiathome.berkeley.edu/] URL: http://setiathome.berkeley.edu/; Computer ID: not assigned yet; location: (none); project prefs: default
13-Oct-2009 11:10:14 [---] No general preferences found - using BOINC defaults
13-Oct-2009 11:10:14 [---] Preferences limit memory usage when active to 3994.43MB
13-Oct-2009 11:10:14 [---] Preferences limit memory usage when idle to 7189.98MB
*** buffer overflow detected ***: /usr/bin/boinc_client terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7fca6e5b83d7]
/lib/libc.so.6[0x7fca6e5b6320]
/lib/libc.so.6[0x7fca6e5b5689]
/lib/libc.so.6(_IO_default_xsputn+0x85)[0x7fca6e545575]
/lib/libc.so.6(_IO_vfprintf+0x3a72)[0x7fca6e51a792]
/lib/libc.so.6(__vsprintf_chk+0x9d)[0x7fca6e5b572d]
/lib/libc.so.6(__sprintf_chk+0x7f)[0x7fca6e5b566f]
/usr/bin/boinc_client[0x46f265]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x43708a]
/usr/bin/boinc_client[0x41b458]
/usr/bin/boinc_client[0x450c38]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fca6e4f3a3d]
/usr/bin/boinc_client[0x406029]
======= Memory map: ========
00400000-004a1000 r-xp 00000000 fd:02 26572                              /usr/bin/boinc_client
006a0000-006a1000 r--p 000a0000 fd:02 26572                              /usr/bin/boinc_client
006a1000-006a2000 rw-p 000a1000 fd:02 26572                              /usr/bin/boinc_client
006a2000-006ac000 rw-p 00000000 00:00 0
0188d000-019cd000 rw-p 00000000 00:00 0                                  [heap]
7fca6dea8000-7fca6deb3000 r-xp 00000000 09:01 6273                       /lib64/libnss_files-2.10.1.so
7fca6deb3000-7fca6e0b3000 ---p 0000b000 09:01 6273                       /lib64/libnss_files-2.10.1.so
7fca6e0b3000-7fca6e0b4000 r--p 0000b000 09:01 6273                       /lib64/libnss_files-2.10.1.so
7fca6e0b4000-7fca6e0b5000 rw-p 0000c000 09:01 6273                       /lib64/libnss_files-2.10.1.so
7fca6e0b5000-7fca6e0cb000 r-xp 00000000 09:01 6268                       /lib64/libgcc_s.so.1
7fca6e0cb000-7fca6e2ca000 ---p 00016000 09:01 6268                       /lib64/libgcc_s.so.1
7fca6e2ca000-7fca6e2cb000 r--p 00015000 09:01 6268                       /lib64/libgcc_s.so.1
7fca6e2cb000-7fca6e2cc000 rw-p 00016000 09:01 6268                       /lib64/libgcc_s.so.1
7fca6e2cc000-7fca6e2d4000 r-xp 00000000 09:01 6561                       /lib64/librt-2.10.1.so
7fca6e2d4000-7fca6e4d3000 ---p 00008000 09:01 6561                       /lib64/librt-2.10.1.so
7fca6e4d3000-7fca6e4d4000 r--p 00007000 09:01 6561                       /lib64/librt-2.10.1.so
7fca6e4d4000-7fca6e4d5000 rw-p 00008000 09:01 6561                       /lib64/librt-2.10.1.so
7fca6e4d5000-7fca6e621000 r-xp 00000000 09:01 5777                       /lib64/libc-2.10.1.so
7fca6e621000-7fca6e821000 ---p 0014c000 09:01 5777                       /lib64/libc-2.10.1.so
7fca6e821000-7fca6e825000 r--p 0014c000 09:01 5777                       /lib64/libc-2.10.1.so
7fca6e825000-7fca6e826000 rw-p 00150000 09:01 5777                       /lib64/libc-2.10.1.so
7fca6e826000-7fca6e82b000 rw-p 00000000 00:00 0
7fca6e82b000-7fca6e8ac000 r-xp 00000000 09:01 5954                       /lib64/libm-2.10.1.so
7fca6e8ac000-7fca6eaab000 ---p 00081000 09:01 5954                       /lib64/libm-2.10.1.so
7fca6eaab000-7fca6eaac000 r--p 00080000 09:01 5954                       /lib64/libm-2.10.1.so
7fca6eaac000-7fca6eaad000 rw-p 00081000 09:01 5954                       /lib64/libm-2.10.1.so
7fca6eaad000-7fca6eac3000 r-xp 00000000 09:01 6560                       /lib64/libpthread-2.10.1.so
7fca6eac3000-7fca6ecc3000 ---p 00016000 09:01 6560                       /lib64/libpthread-2.10.1.so
7fca6ecc3000-7fca6ecc4000 r--p 00016000 09:01 6560                       /lib64/libpthread-2.10.1.so
7fca6ecc4000-7fca6ecc5000 rw-p 00017000 09:01 6560                       /lib64/libpthread-2.10.1.so
7fca6ecc5000-7fca6ecc9000 rw-p 00000000 00:00 0
7fca6ecc9000-7fca6edb8000 r-xp 00000000 fd:02 53733                      /usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.1/libstdc++.so.6.0.12
7fca6edb8000-7fca6efb8000 ---p 000ef000 fd:02 53733                      /usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.1/libstdc++.so.6.0.12
7fca6efb8000-7fca6efbf000 r--p 000ef000 fd:02 53733                      /usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.1/libstdc++.so.6.0.12
7fca6efbf000-7fca6efc1000 rw-p 000f6000 fd:02 53733                      /usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.1/libstdc++.so.6.0.12
7fca6efc1000-7fca6efd5000 rw-p 00000000 00:00 0
7fca6efd5000-7fca6efeb000 r-xp 00000000 09:01 5281                       /lib64/libz.so.1.2.3
7fca6efeb000-7fca6f1ea000 ---p 00016000 09:01 5281                       /lib64/libz.so.1.2.3
7fca6f1ea000-7fca6f1eb000 r--p 00015000 09:01 5281                       /lib64/libz.so.1.2.3
7fca6f1eb000-7fca6f1ec000 rw-p 00016000 09:01 5281                       /lib64/libz.so.1.2.3
7fca6f1ec000-7fca6f1ee000 r-xp 00000000 09:01 6529                       /lib64/libdl-2.10.1.so
7fca6f1ee000-7fca6f3ee000 ---p 00002000 09:01 6529                       /lib64/libdl-2.10.1.so
7fca6f3ee000-7fca6f3ef000 r--p 00002000 09:01 6529                       /lib64/libdl-2.10.1.so
7fca6f3ef000-7fca6f3f0000 rw-p 00003000 09:01 6529                       /lib64/libdl-2.10.1.so
7fca6f3f0000-7fca6f535000 r-xp 00000000 fd:02 67                         /usr/lib64/libcrypto.so.0.9.8
7fca6f535000-7fca6f735000 ---p 00145000 fd:02 67                         /usr/lib64/libcrypto.so.0.9.8
7fca6f735000-7fca6f740000 r--p 00145000 fd:02 67                         /usr/lib64/libcrypto.so.0.9.8
7fca6f740000-7fca6f757000 rw-p 00150000 fd:02 67                         /usr/lib64/libcrypto.so.0.9.8
7fca6f757000-7fca6f75b000 rw-p 00000000 00:00 0
7fca6f75b000-7fca6f7a3000 r-xp 00000000 fd:02 7839                       /usr/lib64/libssl.so.0.9.8
7fca6f7a3000-7fca6f9a2000 ---p 00048000 fd:02 7839                       /usr/lib64/libssl.so.0.9.8
7fca6f9a2000-7fca6f9a4000 r--p 00047000 fd:02 7839                       /usr/lib64/libssl.so.0.9.8
7fca6f9a4000-7fca6f9a9000 rw-p 00049000 fd:02 7839                       /usr/lib64/libssl.so.0.9.8
7fca6f9a9000-7fca6f9f3000 r-xp 00000000 fd:02 26495                      /usr/lib64/libcurl.so.4.1.1
7fca6f9f3000-7fca6fbf2000 ---p 0004a000 fd:02 26495                      /usr/lib64/libcurl.so.4.1.1
7fca6fbf2000-7fca6fbf4000 r--p 00049000 fd:02 26495                      /usr/lib64/libcurl.so.4.1.1
7fca6fbf4000-7fca6fbf5000 rw-p 0004b000 fd:02 26495                      /usr/lib64/libcurl.so.4.1.1
7fca6fbf5000-7fca6fc12000 r-xp 00000000 09:01 6527                       /lib64/ld-2.10.1.so
7fca6fe00000-7fca6fe06000 rw-p 00000000 00:00 0
7fca6fe0f000-7fca6fe11000 rw-p 00000000 00:00 0
7fca6fe11000-7fca6fe12000 r--p 0001c000 09:01 6527                       /lib64/ld-2.10.1.so
7fca6fe12000-7fca6fe13000 rw-p 0001d000 09:01 6527                       /lib64/ld-2.10.1.so
7fff962ab000-7fff962c8000 rw-p 00000000 00:00 0                          [stack]
7fff963d7000-7fff963d8000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
SIGABRT: abort called
Stack trace (49 frames):
/usr/bin/boinc_client(boinc_catch_signal+0x4d)[0x46d8ad]
/lib/libpthread.so.0[0x7fca6eabba10]
/lib/libc.so.6(gsignal+0x35)[0x7fca6e507095]
/lib/libc.so.6(abort+0x180)[0x7fca6e5084c0]
/lib/libc.so.6[0x7fca6e54189d]
/lib/libc.so.6(__fortify_fail+0x37)[0x7fca6e5b83d7]
/lib/libc.so.6[0x7fca6e5b6320]
/lib/libc.so.6[0x7fca6e5b5689]
/lib/libc.so.6(_IO_default_xsputn+0x85)[0x7fca6e545575]
/lib/libc.so.6(_IO_vfprintf+0x3a72)[0x7fca6e51a792]
/lib/libc.so.6(__vsprintf_chk+0x9d)[0x7fca6e5b572d]
/lib/libc.so.6(__sprintf_chk+0x7f)[0x7fca6e5b566f]
/usr/bin/boinc_client[0x46f265]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x46f281]
/usr/bin/boinc_client[0x43708a]
/usr/bin/boinc_client[0x41b458]
/usr/bin/boinc_client[0x450c38]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fca6e4f3a3d]
/usr/bin/boinc_client[0x406029]

Exiting...
Comment 1 Conrad Kostecki gentoo-dev 2009-10-13 09:23:36 UTC
Portage 2.1.7.1 (default/linux/amd64/10.0/server, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r2-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 13 Oct 2009 07:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3, 3.1.1-r1
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.1
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
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 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 apache2 berkdb bindist bzip2 crypt dedicated ftp gd gnutls iconv imap ipv6 javascript jpeg lzo multilib mysql mysqli ncurses nls nntp offensive pam pcre png readline sasl session simplexml slang spl ssl symlink tcpd threads tokenizer truetype unicode xml 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="alias auth_basic authn_file authz_host authz_user autoindex cache cgi deflate dir disk_cache filter include info log_config logio mime mime_magic mem_cache negotiation rewrite status unique_id vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-20 10:14:47 UTC
Try to compile it with ggdb in cflags to get some meaningfull backtrace please.

Or even better report to upstream, since this is their issue sho they should work on fixing it :]
Comment 3 Conrad Kostecki gentoo-dev 2009-10-20 10:56:03 UTC
I don't know why, but with GCC 4.4.2, this seems to be fixed...
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-20 11:05:30 UTC
Even better, so if noone confirm this issue i will close it in one month as fixed :]
Comment 5 Conrad Kostecki gentoo-dev 2009-10-20 11:25:59 UTC
Jep, I've just tested.
With GCC 4.4.1 compiled, BOINC crashed.
With 4.4.2, everything is fine.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-10 21:19:55 UTC
It looks like misbehaving of gcc 4.4.1 since 4.4.2 is in tree and 4.4.1 is not considered to become stable i close this as fixed :]