Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508866 - games-kids/tuxmath-2.0.1 crashes sometimes at SDL_FreeSurface()
Summary: games-kids/tuxmath-2.0.1 crashes sometimes at SDL_FreeSurface()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: STABLE
Depends on:
Blocks:
 
Reported: 2014-04-27 12:48 UTC by Johannes Geiss
Modified: 2016-04-08 16:32 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 Johannes Geiss 2014-04-27 12:48:14 UTC
TuxMath crashes sometimes while playing.
At function powerup_add_comet() executing the line
if(powerup_comet->comet.formula_surf) SDL_FreeSurface(powerup_comet->comet.formula_surf);
malloc_printerr() tries to report an error: "*** Error in tuxmath: munmap_chunk(): invalid pointer:"

Reproducible: Sometimes

Steps to Reproduce:
1. Start TuxMath
2. Play some levels
3. crash occures
Actual Results:  
Segmentation fault (core dumped)

Expected Results:  
TuxMath should be stable

Core was generated by `tuxmath'.
Program terminated with signal 6, Aborted.
#0 0x00007fec12c3b535 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
#0 0x00007fec12c3b535 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
0000001 0x00007fec12c3c9b8 in __GI_abort () at abort.c:90
0000002 0x00007fec12c7bbfb in __libc_message (do_abort=do_abort@entry=2,
    fmt=fmt@entry=0x7fec12d70de8 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
0000003 0x00007fec12c818d6 in malloc_printerr (action=3, str=0x7fec12d70ed0 "munmap_chunk(): invalid pointer", ptr=<optimized out>)
    at malloc.c:4902
0000004 0x000000000040e747 in powerup_add_comet () at game.c:4185
0000005 powerup_add_comet () at game.c:4146
0000006 0x0000000000411650 in add_comet () at game.c:3166
0000007 game_handle_comets () at game.c:1594
0000008 0x0000000000411db3 in game () at game.c:373
0000009 0x0000000000421860 in start_campaign () at campaign.c:80
0000010 0x0000000000409914 in handle_activity (act=<optimized out>, param=0) at menu.c:137
0000011 0x00007fec12fbaae7 in T4K_RunMenu (index=index@entry=0, return_choice=return_choice@entry=false,
    draw_background=0x406a20 <DrawTitleScreen>, handle_event=0x408c80 <HandleTitleScreenEvents>,
    handle_animations=0x406ff0 <HandleTitleScreenAnimations>, handle_activity=handle_activity@entry=0x409760 <handle_activity>)
    at t4k_menu.c:933
0000012 0x0000000000408d34 in run_menu (which=which@entry=MENU_MAIN, return_choice=return_choice@entry=false) at menu.c:111
0000013 0x0000000000409fe9 in RunMainMenu () at menu.c:755
0000014 0x00000000004074dc in TitleScreen () at titlescreen.c:306
0000015 0x0000000000404fde in main (argc=<optimized out>, argv=<optimized out>) at tuxmath.c:41
Comment 1 Johannes Geiss 2014-04-27 12:48:33 UTC
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo-mizar x86_64)
=================================================================
System uname: Linux-3.12.13-gentoo-mizar-x86_64-Intel-R-_Core-TM-_i7-3615QM_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem: 3958284 total, 65208 free
KiB Swap: 4194300 total, 4066436 free
Timestamp of tree: Tue, 25 Mar 2014 04:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash: 4.2_p45
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.5-r3, 3.3.3
dev-util/cmake: 2.8.11.2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils: 2.23.2
sys-devel/gcc: 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc: 2.17
Repositories: gentoo private-overlay java armagetron betagarden
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-ggdb -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --nospinner --quiet-build --buildpkg=y --usepkg=y --binpkg-respect-use=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/ [^] ftp://de-mirror.org/gentoo/ [^] http://mirror.umd.edu/gentoo [^] "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/java /var/lib/layman/armagetron /var/lib/layman/betagarden"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" [^]
USE="X Xaw3 a52 aac acl acpi ads alsa amd64 anacron berkdb bindist bluetooth branding bzip2 cairo cdda cdr cgi cjk cli cracklib crypt css cups cxx dbus device-mapper doomsday dri dts dvd dvdr dvi dvi2tty dvipdfm efi-64 emboss encode exif extensions extras fam fastcgi fat ffmpeg firefox flac fontconfig fortran fpm fuse gd gdbm gif gimp gpm graphics gtk hfs iconv icu id3tag imagemagick imap ipv6 jfs joystick jpeg jpeg2k kpathsea lcms ldap libkms libnotify mad midi mikmod minizip mmx mng mod modules mp3 mp4 mpeg mule musicbrainz mysql mysqli ncurses nfs nfsv3 nfsv4 nls nptl nsplugin nss ntfs ntfsprogs objc ocr odbc ogg opengl openmp pam pango pcre pdf png policykit ppds pstricks python qt3support qt4 readline reiser4 sasl science sdl server session sid sieve spamassassin spell sqlite srt sse sse2 ssl startup-notification svg systemd tcpd theora threads tiff timidity truetype twolame udev udisks unicode upower usb vamp videos vorbis winbind wxwidgets x264 xa xcb xetex xfs xinetd xml xmlreader xmlwriter xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2016-04-06 21:22:57 UTC
I could never reproduce this with 2.0.1 but maybe 2.0.3 works better.
I will optimistically close this as fixed but if 2.0.3 still fails for you just reopen.
Comment 3 Johannes Geiss 2016-04-08 06:11:09 UTC
(In reply to Mr. Bones. from comment #2)
> if 2.0.3 still fails for you just reopen.

I tested it again and it worked fine. It seems the bug is gone.
Thanks.