pygame.tests.mixer_music_test.AllTestCases failing in Linux

Issue #317 closed
Aivar Annamaa
created an issue

Tested on Fedora 24, CentOS 7, Ubuntu 16.04 and Ubuntu 16.10 with Python 3.5.2. Installed with pip3 install pygame

ERROR: all_tests_for (pygame.tests.mixer_music_test.AllTestCases)
    Traceback (most recent call last):
      File "test/pygame.tests.mixer_music_test.py", line 1, in all_tests_for
    subprocess completely failed with return code of -6
    cmd:          ['/usr/bin/python3', '-m', 'pygame.tests.test_utils.test_runner', 'pygame.tests.mixer_music_test', '--exclude', 'interactive,subprocess_ignore,python3_ignore']
    test_env:     environ({'XDG_SEAT': 'seat0', 'XDG_MENU_PREFIX': 'gnome-', 'XDG_CURRENT_DESKTOP': 'GNOME', 'XAUTHORITY': '/run/user/1000/gdm/Xauthority', 'MAIL': '/var/spool/mail/aivar', 'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'SESSION_MANAGER': 'local/unix:@/tmp/.ICE-unix/1445,unix/unix:/tmp/.ICE-unix/1445', 'MODULEPATH': '/etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles', 'USERNAME': 'aivar', 'QT_IM_MODULE': 'ibus', 'COLORTERM': 'truecolor', 'XDG_SESSION_TYPE': 'x11', 'PATH': '/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/aivar/.local/bin:/home/aivar/bin', 'MODULESHOME': '/usr/share/Modules', 'DISPLAY': ':0', '_': '/usr/bin/python3', 'XDG_RUNTIME_DIR': '/run/user/1000', 'LOADEDMODULES': '', 'HISTCONTROL': 'ignoredups', 'BASH_FUNC_module()': '() {  eval `/usr/bin/modulecmd bash $*`\n}', 'PWD': '/home/aivar', 'LS_COLORS': '..<skipped>...', 'GDM_LANG': 'en_US.UTF-8', 'LANG': 'en_US.UTF-8', 'XMODIFIERS': '@im=ibus', 'SDL_VIDEO_X11_WMCLASS': '-m', 'LESSOPEN': '||/usr/bin/lesspipe.sh %s', 'GDMSESSION': 'gnome', 'HISTSIZE': '1000', 'TERM': 'xterm-256color', 'XDG_SESSION_DESKTOP': 'gnome', 'XDG_VTNR': '2', 'USER': 'aivar', 'GJS_DEBUG_OUTPUT': 'stderr', 'DESKTOP_SESSION': 'gnome', 'WINDOWID': '29360134', 'SHLVL': '2', 'BASH_FUNC_scl()': '() {  local CMD=$1;\n if [ "$CMD" = "load" -o "$CMD" = "unload" ]; then\n eval "module $@";\n else\n /usr/bin/scl "$@";\n fi\n}', 'HOSTNAME': 'localhost.localdomain', 'QT_QPA_PLATFORMTHEME': 'qgnomeplatform', 'XDG_SESSION_ID': '1', 'VTE_VERSION': '4402', 'LOGNAME': 'aivar', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'WINDOWPATH': '2', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'HOME': '/home/aivar', 'SHELL': '/bin/bash'})
    working_dir:  /tmp/tmpejm7i8c3
    return (first 10 and last 10 lines):

Comments (5)

  1. Thomas Kluyver

    Thanks Aivar. On my system, there's more detail above:

    *** Error in `/usr/bin/python3': double free or corruption (!prev): 0x00000000012e88c0 ***
    ======= Backtrace: =========
    /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f38595237e5]
    /lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7f385952be0a]
    /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f385952f98c]
    /lib/x86_64-linux-gnu/libc.so.6(fclose+0x103)[0x7f3859519363]
    /home/takluyver/.local/lib/python3.5/site-packages/pygame/.libs/libSDL-1-9a9431b0.2.so.0.11.4(+0xf539)[0x7f3858132539]
    /home/takluyver/.local/lib/python3.5/site-packages/pygame/.libs/libSDL_mixer-1-43ef50d2.2.so.0.12.0(+0x19269)[0x7f38538b3269]
    /home/takluyver/.local/lib/python3.5/site-packages/pygame/.libs/libSDL_mixer-1-43ef50d2.2.so.0.12.0(Mix_FreeMusic+0xe9)[0x7f38538a5bd9]
    /home/takluyver/.local/lib/python3.5/site-packages/pygame/mixer.cpython-35m-x86_64-linux-gnu.so(+0x51aa)[0x7f3850daa1aa]
    /home/takluyver/.local/lib/python3.5/site-packages/pygame/base.cpython-35m-x86_64-linux-gnu.so(+0x2fb1)[0x7f38583bbfb1]
    /home/takluyver/.local/lib/python3.5/site-packages/pygame/base.cpython-35m-x86_64-linux-gnu.so(+0x300a)[0x7f38583bc00a]
    /lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7f38594e14b0]
    

    Plus a memory map, which I've put into a gist because it's quite long.

    I don't really know where to start debugging this kind of error, unfortunately.

  2. Log in to comment