{"action":"created","issue":{"url":"https://api.github.com/repos/libretro/RetroArch/issues/5468","repository_url":"https://api.github.com/repos/libretro/RetroArch","labels_url":"https://api.github.com/repos/libretro/RetroArch/issues/5468/labels{/name}","comments_url":"https://api.github.com/repos/libretro/RetroArch/issues/5468/comments","events_url":"https://api.github.com/repos/libretro/RetroArch/issues/5468/events","html_url":"https://github.com/libretro/RetroArch/issues/5468","id":260025953,"number":5468,"title":"Core dump when launching game","user":{"login":"Ghosthree3","id":6110140,"avatar_url":"https://avatars3.githubusercontent.com/u/6110140?v=4","gravatar_id":"","url":"https://api.github.com/users/Ghosthree3","html_url":"https://github.com/Ghosthree3","followers_url":"https://api.github.com/users/Ghosthree3/followers","following_url":"https://api.github.com/users/Ghosthree3/following{/other_user}","gists_url":"https://api.github.com/users/Ghosthree3/gists{/gist_id}","starred_url":"https://api.github.com/users/Ghosthree3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ghosthree3/subscriptions","organizations_url":"https://api.github.com/users/Ghosthree3/orgs","repos_url":"https://api.github.com/users/Ghosthree3/repos","events_url":"https://api.github.com/users/Ghosthree3/events{/privacy}","received_events_url":"https://api.github.com/users/Ghosthree3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-23T17:48:38Z","updated_at":"2017-12-28T07:41:01Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nRetroArch crashes when starting a game.\r\n\r\n### Expected behavior\r\n\r\nThe emulator to start.\r\n\r\n### Actual behavior\r\n\r\nUpon launching a game RetroArch immediately exits with this (abridged) output:\r\n```\r\n[INFO] Loading content file: <file>\r\n*** Error in `retroarch': double free or corruption (out): 0x00007ffe15b87050 ***\r\n[1]    9294 abort (core dumped)  retroarch\r\n```\r\n\r\n### Steps to reproduce the bug\r\n\r\n1. Select a game\r\n2. Select Run\r\n\r\n### Bisect Results\r\n\r\nI've managed to pin down the exact commit this began happening to 91b1afad0a708ab28fde75273a498ea64abe745c\r\nI've also tried using two different emulators (_Nestopia UE_ and _bsnes-mercury Balanced_) to try and rule out it being the issue.\r\n\r\n### Environment information\r\n\r\n- OS: Linux - Arch\r\n- Compiler: GCC\r\n"},"comment":{"url":"https://api.github.com/repos/libretro/RetroArch/issues/comments/354244515","html_url":"https://github.com/libretro/RetroArch/issues/5468#issuecomment-354244515","issue_url":"https://api.github.com/repos/libretro/RetroArch/issues/5468","id":354244515,"user":{"login":"Ghosthree3","id":6110140,"avatar_url":"https://avatars3.githubusercontent.com/u/6110140?v=4","gravatar_id":"","url":"https://api.github.com/users/Ghosthree3","html_url":"https://github.com/Ghosthree3","followers_url":"https://api.github.com/users/Ghosthree3/followers","following_url":"https://api.github.com/users/Ghosthree3/following{/other_user}","gists_url":"https://api.github.com/users/Ghosthree3/gists{/gist_id}","starred_url":"https://api.github.com/users/Ghosthree3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ghosthree3/subscriptions","organizations_url":"https://api.github.com/users/Ghosthree3/orgs","repos_url":"https://api.github.com/users/Ghosthree3/repos","events_url":"https://api.github.com/users/Ghosthree3/events{/privacy}","received_events_url":"https://api.github.com/users/Ghosthree3/received_events","type":"User","site_admin":false},"created_at":"2017-12-28T07:41:01Z","updated_at":"2017-12-28T07:41:01Z","author_association":"NONE","body":"Same problem with the current master (didn't see a nightly build).\r\nBuilt with:\r\n```\r\ncd ~/src\r\ngit clone https://github.com/libretro/RetroArch\r\ncd RetroArch\r\nmkdir build\r\n./configure --prefix='/home/ghost/src/RetroArch/build' --disable-jack --disable-oss\r\nmake\r\nmake -C gfx/video_filters\r\nmake install\r\n```\r\nI assume this is correct, but if I messed up the build let me know.\r\n\r\nIssue still present.\r\n\r\nIs this what you wanted via GDB? I've not done a stack trace before but I assume backtrace is it.\r\n```\r\nStarting program: /home/ghost/src/RetroArch/build/bin/retroarch \r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/usr/lib/libthread_db.so.1\".\r\n[New Thread 0x7fffe2ec3700 (LWP 14309)]\r\n[New Thread 0x7fffdb22b700 (LWP 14455)]\r\n[Thread 0x7fffdb22b700 (LWP 14455) exited]\r\n[Thread 0x7fffe2ec3700 (LWP 14309) exited]\r\n[New Thread 0x7fffe2ec3700 (LWP 14528)]\r\n\r\nThread 1 \"retroarch\" received signal SIGSEGV, Segmentation fault.\r\n0x00007fffef940f93 in free () from /usr/lib/libc.so.6\r\n#0  0x00007fffef940f93 in free () from /usr/lib/libc.so.6\r\n#1  0x000055555588992c in file_archive_parse_file_iterate (userdata=0x0, file_cb=0x0, valid_exts=0x0, file=0x0, returnerr=0x0, state=0x7fffffffa4e0)\r\n    at libretro-common/file/archive_file.c:429\r\n#2  file_archive_parse_file_iterate_stop (state=state@entry=0x7fffffffa4e0) at libretro-common/file/archive_file.c:367\r\n#3  0x00005555558cd490 in zip_file_read (\r\n    path=0x555556fe8130 \"/roms/Super Nintendo Entertainment System (No-Intro)/Super Metroid (Japan, USA) (En,Ja).zip\", \r\n    needle=<optimized out>, buf=<optimized out>, optional_outfile=<optimized out>) at libretro-common/file/archive_file_zlib.c:275\r\n#4  0x000055555588a271 in file_archive_compressed_read (\r\n    path=path@entry=0x555556febe30 \"/roms/Super Nintendo Entertainment System (No-Intro)/Super Metroid (Japan, USA) (En,Ja).zip#Super Metroid (Japan, USA) (En,Ja).sfc\", buf=buf@entry=0x7fffffffc6d0, optional_filename=optional_filename@entry=0x0, length=length@entry=0x7fffffffc6c8)\r\n    at libretro-common/file/archive_file.c:755\r\n#5  0x00005555555b25ac in content_file_read (length=0x7fffffffc6c8, buf=0x7fffffffc6d0, \r\n    path=0x555556febe30 \"/roms/Super Nintendo Entertainment System (No-Intro)/Super Metroid (Japan, USA) (En,Ja).zip#Super Metroid (Japan, USA) (En,Ja).sfc\") at tasks/task_content.c:149\r\n#6  load_content_into_memory (length=0x7fffffffc6c8, buf=0x555557225938, \r\n    path=0x555556febe30 \"/roms/Super Nintendo Entertainment System (No-Intro)/Super Metroid (Japan, USA) (En,Ja).zip#Super Metroid (Japan, USA) (En,Ja).sfc\", i=0, content_ctx=<synthetic pointer>) at tasks/task_content.c:317\r\n#7  content_file_load (additional_path_allocs=0x555556662440, special=0x0, error_string=<synthetic pointer>, content_ctx=<synthetic pointer>, \r\n    content=0x555556662e60, info=0x555557225930) at tasks/task_content.c:570\r\n#8  content_file_init (error_string=<synthetic pointer>, content=0x555556662e60, content_ctx=<synthetic pointer>) at tasks/task_content.c:790\r\n#9  content_init () at tasks/task_content.c:1806\r\n#10 0x00005555555a4e83 in event_init_content () at command.c:1227\r\n#11 command_event_init_core (data=0x555555d25f04 <current_core_type>) at command.c:1285\r\n#12 command_event (cmd=cmd@entry=CMD_EVENT_CORE_INIT, data=data@entry=0x555555d25f04 <current_core_type>) at command.c:2242\r\n#13 0x000055555559fd6a in retroarch_main_init (argc=11, argv=argv@entry=0x7fffffffc9a0) at retroarch.c:1278\r\n#14 0x00005555555aebf4 in content_load (info=info@entry=0x7fffffffcc50) at tasks/task_content.c:270\r\n#15 0x00005555555aef8f in task_load_content (content_info=content_info@entry=0x7fffffffcc50, content_ctx=content_ctx@entry=0x7fffffffcc70, \r\n    launched_from_menu=launched_from_menu@entry=true, launched_from_cli=launched_from_cli@entry=false, error_string=error_string@entry=0x7fffffffcc48)\r\n    at tasks/task_content.c:857\r\n#16 0x00005555555b12eb in command_event_cmd_exec (launched_from_cli=false, error_string=0x7fffffffcc48, content_ctx=0x7fffffffcc70, data=<optimized out>)\r\n    at tasks/task_content.c:1001\r\n#17 task_push_load_content_from_playlist_from_menu (\r\n    core_path=core_path@entry=0x7fffffffcd90 \"/home/ghost/.config/retroarch/cores/bsnes_mercury_balanced_libretro.so\", \r\n    fullpath=0x555556da6800 \"/roms/Super Nintendo Entertainment System (No-Intro)/Super Metroid (Japan, USA) (En,Ja).zip#Super Metroid (Japan, USA) (En,Ja).sfc\", label=0x0, content_info=content_info@entry=0x7fffffffcd70, cb=cb@entry=0x0, user_data=user_data@entry=0x0) at tasks/task_content.c:1214\r\n#18 0x000055555569c6ec in default_action_ok_load_content_from_playlist_from_menu (entry_label=<optimized out>, path=<optimized out>, \r\n    _path=0x7fffffffcd90 \"/home/ghost/.config/retroarch/cores/bsnes_mercury_balanced_libretro.so\") at menu/cbs/menu_cbs_ok.c:1398\r\n#19 action_ok_playlist_entry_collection (path=<optimized out>, label=<optimized out>, type=<optimized out>, idx=<optimized out>, entry_idx=0)\r\n    at menu/cbs/menu_cbs_ok.c:1577\r\n#20 0x00005555556953be in menu_entry_action (entry=entry@entry=0x7fffffffde40, i=0, action=action@entry=MENU_ACTION_OK) at menu/widgets/menu_entry.c:452\r\n#21 0x00005555556c9740 in generic_menu_iterate (data=0x555556fc0070, userdata=<optimized out>, action=MENU_ACTION_OK) at menu/drivers/menu_generic.c:234\r\n#22 0x000055555568150f in menu_driver_iterate (iterate=iterate@entry=0x7fffffffdee0) at menu/menu_driver.c:1683\r\n#23 0x000055555559c248 in runloop_check_state (settings=settings@entry=0x7ffff7fc7010, input_nonblock_state=input_nonblock_state@entry=false, \r\n    sleep_ms=0x7fffffffe09c) at retroarch.c:2553\r\n#24 0x00005555555a01a5 in runloop_iterate (sleep_ms=0x7fffffffe09c) at retroarch.c:3072\r\n#25 0x000055555559a010 in rarch_main (argc=<optimized out>, argv=<optimized out>, data=0x0) at frontend/frontend.c:131\r\n#26 0x00007fffef8def4a in __libc_start_main () from /usr/lib/libc.so.6\r\n#27 0x000055555559736a in _start ()\r\n```\r\nI'm guessing the issue is something to do with reading the archive?"}}
{"actor":{"display_login":"Ghosthree3"}}