Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 112772

Summary: fortune-mod often crashes: *** glibc detected *** free(): invalid next size (fast):
Product: Gentoo Linux Reporter: Chad Granum <granum>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chad Granum 2005-11-16 19:51:24 UTC
when I run fortune regardless of flags I occasionally get glibc errors.
sometimes as often as every other run, sometimes once every 15 or so. I am
pasting several of the incidents that gave me errors, most of them were with -os
flag so some messages are possibly offensive, I appologise, this is to show the
error:

exodist@Abydos-64 ~ $ fortune
'Naomi, sex at noon taxes.' I moan.
*** glibc detected *** free(): invalid next size (fast): 0x00000000005599b0 ***
Aborted

exodist@Abydos-64 ~ $ fortune -s
The fact that 47 PEOPLE are yelling and sweat is cascading down my
SPINAL COLUMN is fairly enjoyable!!
*** glibc detected *** free(): invalid next size (fast): 0x00000000005599b0 ***
and Aborted

exodist@Abydos-64 ~ $ fortune
An Hacker there was, one of the finest sort
Who controlled the system; graphics was his sport.
A manly man, to be a wizard able;
Many a protected file he had sitting on his table.
His console, when he typed, a man might hear
Clicking and feeping wind as clear,
*** glibc detected *** free(): invalid next size (fast): 0x00000000005599b0 ***
ght Aborted

exodist@Abydos-64 ~ $ fortune
When I think about myself,
I almost laugh myself to death,
My life has been one great big joke,    Sixty years in these folks' world
A dance that's walked                   The child I works for calls me girl
A song that's spoke,                    I say "Yes ma'am" for working's sake.
I laugh so hard I almost choke          Too proud to bend
When I think about myself.              Too poor to break,
                                        I laugh until my stomach ache,
*** glibc detected *** free(): invalid next size (fast): 0x00000000005599b0 ***
 to Aborted

the next set are all from a single session using up arrow and enter several
times to show frequency:
------------------------------
exodist@Abydos-64 ~ $ fortune -os
Hear about...
        the real smart girl who could play post-office all night
        without getting any mail in her box?
stexodist@Abydos-64 ~ $ fortune -os
        "Listen to what I say, not what I mean.  I mean ...."
                -- Mayor Daley
exodist@Abydos-64 ~ $ fortune -os
There was an old man from Bengal
Who liked to do tricks in the hall.
*** glibc detected *** free(): invalid next size (fast): 0x0000000000555c70 ***
Aborted
exodist@Abydos-64 ~ $ fortune -os
A bisexual is a man who likes girls as well as the next fellow.
exodist@Abydos-64 ~ $ fortune -os
Hear about...
        the new breakfast cereal called "Swingers".  They don't go snap,
        crackle, or pop; they just lie there and go bang, bang, bang?
exodist@Abydos-64 ~ $ fortune -os
An old electronic designer
Had designs on a minor named Dinah.
*** glibc detected *** free(): invalid next size (fast): 0x0000000000555c70 ***
Aborted
exodist@Abydos-64 ~ $ fortune -os
Mathematicians do it with a small, imaginary part.
exodist@Abydos-64 ~ $ fortune -os
LSD melts in your mind, not in your hand.
exodist@Abydos-64 ~ $ fortune -os
"that kind of god is always man-made
 they made him up then wrote a book
*** glibc detected *** free(): invalid next size (fast): 0x0000000000555cb0 ***
Aborted
exodist@Abydos-64 ~ $ fortune -os
Some women achieve greatness, some have greatness thrust into them.
exodist@Abydos-64 ~ $ fortune -os
Confucious say:
        woman who ride bicycle peddle ass around town.
exodist@Abydos-64 ~ $ fortune -os
How come if you're horny it's lust, but if she's horny it's affection?
exodist@Abydos-64 ~ $ fortune -os
"Heresy is a cradle; orthodoxy a coffin."
      [Robert Ingersoll, "Heretics
       and Heresies", 1874]
exodist@Abydos-64 ~ $ fortune -os
Hear about...
        the fellow who, upon being told by his shrewish wife that she
        would dance on his grave, promptly provided for a burial at sea?
exodist@Abydos-64 ~ $ fortune -os
Vote early and vote often.
                -- Al Capone's slogan for Big Bill Thompson's anti-reform
                   campaign for Mayor of Chicago, 1926.  Big Bill won.
exodist@Abydos-64 ~ $ fortune -os
A german composer named Bruckner
Remarked to a lady while fuckener :
*** glibc detected *** free(): invalid next size (fast): 0x0000000000555c70 ***
Aborted
------------------------------

it seems to happen more frequently as I add flags, but it also appears to be
quantity over specifics.

Reproducible: Sometimes
Steps to Reproduce:
1.emerge fortune-mod and several libraries
2.run fortune -[any flags] several times, occasionaly it fails
3.

Actual Results:  
occasional aborts

Expected Results:  
flawless every time

I also noticed occasionally there iwll be extra characters thrown in or at the
end, sometimes lacking a new line displacing the prompt.

here is my emerge info:
Abydos-64 exodist # emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo-r5-amd64 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r5-amd64 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa aspell bitmap-fonts cups esd flac fluxbox ghostscript
gimp-print gtk gtk2 imlib java jpeg lm_sensors mad mp3 mpg oggvorbis openal
opengl pcre pdf perl png python sndfile spell ssl tiff true-type truetype
truetype-fonts type1-fonts unicode vorbis xinerama xmms xprint xv xvmc zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Chad Granum 2005-11-16 19:53:30 UTC
forgot to add that I recently reformatted and noticed the problem before the
format but had no time to report it.

also I used the offensive use flag for all that it applies to.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2005-11-16 20:06:47 UTC

*** This bug has been marked as a duplicate of 107089 ***