Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258453 - core dump when using net-misc/bti-013
Summary: core dump when using net-misc/bti-013
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL: http://www.kernel.org/pub/linux/kerne...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-10 15:10 UTC by Juan P Daza P
Modified: 2009-02-14 06:39 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 Juan P Daza P 2009-02-10 15:10:10 UTC
When using bti to post a message in twitter a segmentation fault ocurred.

Reproducible: Always

Steps to Reproduce:
1.bti
2.Enter twitter account: xxyyzz
3.Enter twitter password: password
4.tweet: work, work, work

Actual Results:  
A core dump is sent to standard output:

*** glibc detected *** bti: double free or corruption (fasttop): 0x0000000000635550 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f0a9af37aad]
/lib/libc.so.6(cfree+0x76)[0x7f0a9af39796]
bti[0x401a60]
/lib/libc.so.6(__libc_start_main+0xf4)[0x7f0a9aee8b74]
bti[0x4012b9]
======= Memory map: ========
00400000-00403000 r-xp 00000000 08:05 101623                             /usr/bin/bti
00602000-00603000 r--p 00002000 08:05 101623                             /usr/bin/bti
00603000-00604000 rw-p 00003000 08:05 101623                             /usr/bin/bti
00604000-0067b000 rw-p 00604000 00:00 0                                  [heap]
7fa530000000-7fa530021000 rw-p 7fa530000000 00:00 0 
7fa530021000-7fa534000000 ---p 7fa530021000 00:00 0 
7fa53566f000-7fa53567c000 r-xp 00000000 08:05 147194                     /lib64/libgcc_s.so.1
7fa53567c000-7fa53587b000 ---p 0000d000 08:05 147194                     /lib64/libgcc_s.so.1
7fa53587b000-7fa53587c000 r--p 0000c000 08:05 147194                     /lib64/libgcc_s.so.1
7fa53587c000-7fa53587d000 rw-p 0000d000 08:05 147194                     /lib64/libgcc_s.so.1
7fa53587d000-7fa53588d000 r-xp 00000000 08:05 147183                     /lib64/libresolv-2.6.1.so
7fa53588d000-7fa535a8d000 ---p 00010000 08:05 147183                     /lib64/libresolv-2.6.1.so
7fa535a8d000-7fa535a8e000 r--p 00010000 08:05 147183                     /lib64/libresolv-2.6.1.so
7fa535a8e000-7fa535a8f000 rw-p 00011000 08:05 147183                     /lib64/libresolv-2.6.1.so
7fa535a8f000-7fa535a91000 rw-p 7fa535a8f000 00:00 0 
7fa535a91000-7fa535a95000 r-xp 00000000 08:05 147188                     /lib64/libnss_dns-2.6.1.so
7fa535a95000-7fa535c94000 ---p 00004000 08:05 147188                     /lib64/libnss_dns-2.6.1.so
7fa535c94000-7fa535c95000 r--p 00003000 08:05 147188                     /lib64/libnss_dns-2.6.1.so
7fa535c95000-7fa535c96000 rw-p 00004000 08:05 147188                     /lib64/libnss_dns-2.6.1.so
7fa535c96000-7fa535ca0000 r-xp 00000000 08:05 147396                     /lib64/libnss_files-2.6.1.so
7fa535ca0000-7fa535e9f000 ---p 0000a000 08:05 147396                     /lib64/libnss_files-2.6.1.so
7fa535e9f000-7fa535ea0000 r--p 00009000 08:05 147396                     /lib64/libnss_files-2.6.1.so
7fa535ea0000-7fa535ea1000 rw-p 0000a000 08:05 147396                     /lib64/libnss_files-2.6.1.so
7fa535ea1000-7fa535eb6000 r-xp 00000000 08:05 147190                     /lib64/libpthread-2.6.1.so
7fa535eb6000-7fa5360b6000 ---p 00015000 08:05 147190                     /lib64/libpthread-2.6.1.so
7fa5360b6000-7fa5360b7000 r--p 00015000 08:05 147190                     /lib64/libpthread-2.6.1.so
7fa5360b7000-7fa5360b8000 rw-p 00016000 08:05 147190                     /lib64/libpthread-2.6.1.so
7fa5360b8000-7fa5360bc000 rw-p 7fa5360b8000 00:00 0 
7fa5360bc000-7fa53610a000 r-xp 00000000 08:05 147307                     /lib64/libncurses.so.5.6
7fa53610a000-7fa536309000 ---p 0004e000 08:05 147307                     /lib64/libncurses.so.5.6
7fa536309000-7fa536316000 r--p 0004d000 08:05 147307                     /lib64/libncurses.so.5.6
7fa536316000-7fa536318000 rw-p 0005a000 08:05 147307                     /lib64/libncurses.so.5.6
7fa536318000-7fa536319000 rw-p 7fa536318000 00:00 0 
7fa536319000-7fa53632d000 r-xp 00000000 08:05 147213                     /lib64/libz.so.1.2.3
7fa53632d000-7fa53652c000 ---p 00014000 08:05 147213                     /lib64/libz.so.1.2.3
7fa53652c000-7fa53652d000 r--p 00013000 08:05 147213                     /lib64/libz.so.1.2.3
7fa53652d000-7fa53652e000 rw-p 00014000 08:05 147213                     /lib64/libz.so.1.2.3
7fa53652e000-7fa536530000 r-xp 00000000 08:05 147328                     /lib64/libdl-2.6.1.so
7fa536530000-7fa536730000 ---p 00002000 08:05 147328                     /lib64/libdl-2.6.1.so
7fa536730000-7fa536731000 r--p 00002000 08:05 147328                     /lib64/libdl-2.6.1.so
7fa536731000-7fa536732000 rw-p 00003000 08:05 147328                     /lib64/libdl-2.6.1.so
7fa536732000Abortado

Expected Results:  
Post a tweet

emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r3-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-56-with-glibc2.2.5
Timestamp of tree: Tue, 10 Feb 2009 13:40:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
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=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="es_CO.UTF-8"
LDFLAGS="-Wl,-O1"
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="X acl alsa amd64 avahi berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd fortran gdbm gnome gpm gtk hal iconv ipv6 isdnlog midi mmx 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 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" 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="fbdev glint i810 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, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2009-02-13 03:31:17 UTC
Can you do the same thing with the --debug option enabled and let me know what the program prints out?
Comment 2 Juan P Daza P 2009-02-13 14:21:11 UTC
Seems strange the account and password that sends, those are not the ones I wrote but the tweet is.

with --debug enabled:

main: account = tweet: 
main: password = tweet: 
main: tweet = kdkdk
main: host = 0
send_tweet: user_password = tweet: :tweet: 
send_tweet: data = status="kdkdk"
send_tweet: proxy = (null)
* About to connect() to twitter.com port 443 (#0)
*   Trying 128.121.146.100... * connected
* Connected to twitter.com (128.121.146.100) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
* 	 subject: /C=US/O=twitter.com/OU=GT09721236/OU=See www.rapidssl.com/resources/cps (c)08/OU=Domain Control Validated - RapidSSL(R)/CN=twitter.com
* 	 start date: 2008-04-21 22:23:17 GMT
* 	 expire date: 2010-05-22 22:23:17 GMT
* 	 issuer: /C=US/O=Equifax Secure Inc./CN=Equifax Secure Global eBusiness CA-1
* SSL certificate verify ok.
* Server auth using Basic with user 'tweet'
> POST /statuses/update.xml HTTP/1.1
Authorization: Basic dHdlZXQ6IDp0d2VldDog
Host: twitter.com
Accept: */*
Content-Length: 244
Content-Type: multipart/form-data; boundary=----------------------------79d89e251dea

< HTTP/1.1 401 Unauthorized
< Date: Fri, 13 Feb 2009 14:17:04 GMT
< Server: hi
< Status: 401 Unauthorized
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="Twitter API"
< Cache-Control: no-cache, max-age=1800
< Content-Type: application/xml; charset=utf-8
< Content-Length: 141
< Set-Cookie: _twitter_sess=BAh7BzoHaWQiJTZkZjhmYjg3NzUxYzQxYzMyZjg4NDIwY2Q1MjhhMDNhIgpm%250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG%250AOgpAdXNlZHsA--54e576b110ba549bfe8ff18abf3ea631ab46967a; domain=.twitter.com; path=/
< Expires: Fri, 13 Feb 2009 14:47:04 GMT
< Vary: Accept-Encoding
< Connection: close
< 
curl_callback: <?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/statuses/update.xml</request>
  <error>Could not authenticate you.</error>
</hash>

* Closing connection #0
*** glibc detected *** bti: double free or corruption (fasttop): 0x0000000000635550 ***
======= Backtrace: =========
/lib/libc.so.6[0x7ff5b21b8aad]
/lib/libc.so.6(cfree+0x76)[0x7ff5b21ba796]
bti[0x401a60]
/lib/libc.so.6(__libc_start_main+0xf4)[0x7ff5b2169b74]
bti[0x4012b9]
======= Memory map: ========
00400000-00403000 r-xp 00000000 08:05 101623                             /usr/bin/bti
00602000-00603000 r--p 00002000 08:05 101623                             /usr/bin/bti
00603000-00604000 rw-p 00003000 08:05 101623                             /usr/bin/bti
00604000-0067b000 rw-p 00604000 00:00 0                                  [heap]
7ff5ac000000-7ff5ac021000 rw-p 7ff5ac000000 00:00 0 
7ff5ac021000-7ff5b0000000 ---p 7ff5ac021000 00:00 0 
7ff5b08b5000-7ff5b08c2000 r-xp 00000000 08:05 147194                     /lib64/libgcc_s.so.1
7ff5b08c2000-7ff5b0ac1000 ---p 0000d000 08:05 147194                     /lib64/libgcc_s.so.1
7ff5b0ac1000-7ff5b0ac2000 r--p 0000c000 08:05 147194                     /lib64/libgcc_s.so.1
7ff5b0ac2000-7ff5b0ac3000 rw-p 0000d000 08:05 147194                     /lib64/libgcc_s.so.1
7ff5b0ac3000-7ff5b0ad3000 r-xp 00000000 08:05 147183                     /lib64/libresolv-2.6.1.so
7ff5b0ad3000-7ff5b0cd3000 ---p 00010000 08:05 147183                     /lib64/libresolv-2.6.1.so
7ff5b0cd3000-7ff5b0cd4000 r--p 00010000 08:05 147183                     /lib64/libresolv-2.6.1.so
7ff5b0cd4000-7ff5b0cd5000 rw-p 00011000 08:05 147183                     /lib64/libresolv-2.6.1.so
7ff5b0cd5000-7ff5b0cd7000 rw-p 7ff5b0cd5000 00:00 0 
7ff5b0cd7000-7ff5b0cdb000 r-xp 00000000 08:05 147188                     /lib64/libnss_dns-2.6.1.so
7ff5b0cdb000-7ff5b0eda000 ---p 00004000 08:05 147188                     /lib64/libnss_dns-2.6.1.so
7ff5b0eda000-7ff5b0edb000 r--p 00003000 08:05 147188                     /lib64/libnss_dns-2.6.1.so
7ff5b0edb000-7ff5b0edc000 rw-p 00004000 08:05 147188                     /lib64/libnss_dns-2.6.1.so
7ff5b0edc000-7ff5b0ee6000 r-xp 00000000 08:05 147396                     /lib64/libnss_files-2.6.1.so
7ff5b0ee6000-7ff5b10e5000 ---p 0000a000 08:05 147396                     /lib64/libnss_files-2.6.1.so
7ff5b10e5000-7ff5b10e6000 r--p 00009000 08:05 147396                     /lib64/libnss_files-2.6.1.so
7ff5b10e6000-7ff5b10e7000 rw-p 0000a000 08:05 147396                     /lib64/libnss_files-2.6.1.so
7ff5b10e7000-7ff5b10fc000 r-xp 00000000 08:05 147190                     /lib64/libpthread-2.6.1.so
7ff5b10fc000-7ff5b12fc000 ---p 00015000 08:05 147190                     /lib64/libpthread-2.6.1.so
7ff5b12fc000-7ff5b12fd000 r--p 00015000 08:05 147190                     /lib64/libpthread-2.6.1.so
7ff5b12fd000-7ff5b12fe000 rw-p 00016000 08:05 147190                     /lib64/libpthread-2.6.1.so
7ff5b12fe000-7ff5b1302000 rw-p 7ff5b12fe000 00:00 0 
7ff5b1302000-7ff5b1350000 r-xp 00000000 08:05 147307                     /lib64/libncurses.so.5.6
7ff5b1350000-7ff5b154f000 ---p 0004e000 08:05 147307                     /lib64/libncurses.so.5.6
7ff5b154f000-7ff5b155c000 r--p 0004d000 08:05 147307                     /lib64/libncurses.so.5.6
7ff5b155c000-7ff5b155e000 rw-p 0005a000 08:05 147307                     /lib64/libncurses.so.5.6
7ff5b155e000-7ff5b155f000 rw-p 7ff5b155e000 00:00 0 
7ff5b155f000-7ff5b1573000 r-xp 00000000 08:05 147213                     /lib64/libz.so.1.2.3
7ff5b1573000-7ff5b1772000 ---p 00014000 08:05 147213                     /lib64/libz.so.1.2.3
7ff5b1772000-7ff5b1773000 r--p 00013000 08:05 147213                     /lib64/libz.so.1.2.3
7ff5b1773000-7ff5b1774000 rw-p 00014000 08:05 147213                     /lib64/libz.so.1.2.3
7ff5b1774000-7ff5b1776000 r-xp 00000000 08:05 147328                     /lib64/libdl-2.6.1.so
7ff5b1776000-7ff5b1976000 ---p 00002000 08:05 147328                     /lib64/libdl-2.6.1.so
7ff5b1976000-7ff5b1977000 r--p 00002000 08:05 147328                     /lib64/libdl-2.6.1.so
7ff5b1977000-7ff5b1978000 rw-p 00003000 08:05 147328                     /lib64/libdl-2.6.1.so
7ff5b1978000-7ff5b1ace000 r-xp 00000000 08:05 130997                     /usr/lib64/libcrypto.so.0.9.8
7ff5b1ace000-7ff5b1ccd000 ---p 00156000 08:05 130997                     /usr/lib64/libcrypto.so.0.9.8
7ff5b1ccd000-7ff5b1cdb000 r--p 00155000 08:05 130997                     /usr/lib64/libcrypto.so.0.9.8
7ff5b1cdb000-7ff5b1cf2000 rw-p 00163000 08:05 130997                     /usr/lib64/libcrypto.so.0.9.8
7ff5b1cf2000-7ff5b1cf5000 rw-p 7ff5b1cf2000 00:00 0 
7ff5b1cf5000-7ff5b1d3c000 r-xp 00000000 08:05 131001                     /usr/lib64/libssl.so.0.9.8
7ff5b1d3c000-7ff5b1f3b000 ---p 00047000 08:05 131001                     /usr/lib64/libssl.so.0.9.8
7ff5b1f3b000-7ff5b1f3d000 r--p 00046000 08:05 131001                     /usr/lib64/libssl.so.0.9.8
7ff5b1f3d000-7ff5b1f43000 rw-p 00048000 08:05 131001                     /usr/lib64/libssl.so.0.9.8
7ff5b1f43000-7ff5b1f4b000 r-xp 00000000 08:05 147314                     /lib64/librt-2.6.1.so
7ff5b1f4b000-7ff5b214a000 ---p 00008000 08:05 147314                     /lib64/librt-2.6.1.so
7ff5b214a000-7ff5b214b000 r--p 00007000 08:05 147314                     /lib64/librt-2.6.1.so
7ff5b214b000-7ff5b214c000 rw-p 00008000 08:05 147314                     /lib64/librt-2.6.1.so
7ff5b214c000-7ff5b2282000 r-xp 00000000 08:05 147173                     /lib64/libc-2.6.1.so
7ff5b2282000-7ff5b2481000 ---p 00136000 08:05 147173                     /lib64/libc-2.6.1.so
7ff5b2481000-7ff5b2485000 r--p 00135000 08:05 147173                     /lib64/libc-2.6.1.so
7ff5b2485000-7ff5b2486000 rw-p 00139000 08:05 147173                     /lib64/libc-2.6.1.so
7ff5b2486000-7ff5b248b000 rw-p 7ff5b2486000 00:00 0 
7ff5b248b000-7ff5b24c2000 r-xp 00000000 08:05 85057                      /lib64/libreadline.so.5.2
7ff5b24c2000-7ff5b26c2000 ---p 00037000 08:05 85057                      /lib64/libreadline.so.5.2
7ff5b26c2000-7ff5b26c4000 r--p 00037000 08:05 85057                      /lib64/libreadline.so.5.2
7ff5b26c4000-7ff5b26ca000 rw-p 00039000 08:05 85057                      /lib64/libreadline.so.5.2
7ff5b26ca000-7ff5b26cc000 rw-p 7ff5b26ca000 00:00 0 
7ff5b26cc000-7ff5b270c000 r-xp 00000000 08:05 198155                     /usr/lib64/libcurl.so.4.1.0
7ff5b270c000-7ff5b290c000 ---p 00040000 08:05 198155                     /usr/lib64/libcurl.so.4.1.0
7ff5b290c000-7ff5b290d000 r--p 00040000 08:05 198155                     /usr/lib64/libcurl.so.4.1.0
7ff5b290d000-7ff5b290e000 rw-p 00041000 08:05 198155                     /usr/lib64/libcurl.so.4.1.0
7ff5b290e000-7ff5b2929000 r-xp 00000000 08:05 147286                     /lib64/ld-2.6.1.so
7ff5b2ac4000-7ff5b2b03000 r--p 00000000 08:05 1466554                    /usr/lib64/locale/es_CO.utf8/LC_CTYPE
7ff5b2b03000-7ff5b2b08000 rw-p 7ff5b2b03000 00:00 0 
7ff5b2b1e000-7ff5b2b25000 r--s 00000000 08:05 1104686                    /usr/lib64/gconv/gconv-modules.cache
7ff5b2b25000-7ff5b2b28000 rw-p 7ff5b2b25000 00:00 0 
7ff5b2b28000-7ff5b2b29000 r--p 0001a000 08:05 147286                     /lib64/ld-2.6.1.so
7ff5b2b29000-7ff5b2b2a000 rw-p 0001b000 08:05 147286                     /lib64/ld-2.6.1.so
7fffbab14000-7fffbab29000 rw-p 7ffffffea000 00:00 0                      [stack]
7fffbabfe000-7fffbabff000 r-xp 7fffbabfe000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Abortado
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2009-02-14 06:39:08 UTC
Ah, thanks, found the problem (well, fixed the problem at least.)  Give the mirrors a bit of time to sync out the 014 release.