Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andres-asm/884779e2263c4887f1dfb4eab0b08781 to your computer and use it in GitHub Desktop.
Save andres-asm/884779e2263c4887f1dfb4eab0b08781 to your computer and use it in GitHub Desktop.
(gdb) thread 1
[Switching to thread 1 (Thread 8932.0x2880)]
#0 0x00007ffb7544c4cf in strchr () from C:\WINDOWS\system32\msvcrt.dll
(gdb) bt
#0 0x00007ffb7544c4cf in strchr () from C:\WINDOWS\system32\msvcrt.dll
#1 0x0000000000432880 in strip_comment (str=0x51eb15b "#")
at libretro-common/file/config_file.c:272
#2 parse_line (conf=conf@entry=0x51eb3e0, list=list@entry=0x51eb740,
line=line@entry=0x51eb140 "input_r_x_minus_axis = \"-2")
at libretro-common/file/config_file.c:319
#3 0x0000000000432446 in config_file_new_internal (path=<optimized out>,
depth=depth@entry=0) at libretro-common/file/config_file.c:435
#4 0x0000000000432d77 in config_file_new (path=<optimized out>)
at libretro-common/file/config_file.c:523
#5 0x000000000042a242 in input_autoconfigure_joypad_from_conf_dir (
params=0x2b2eb40) at input/input_autodetect.c:254
#6 input_config_autoconfigure_joypad (params=params@entry=0x2b2eb40)
at input/input_autodetect.c:332
#7 0x00000000004d6a00 in xinput_joypad_init (data=<optimized out>)
at input/drivers_joypad/xinput_joypad.c:265
#8 0x000000000042a421 in input_joypad_init_driver (
ident=ident@entry=0x55e3268 "xinput", data=data@entry=0x51a8050)
at input/input_joypad_driver.c:139
#9 0x00000000004d4f27 in dinput_init () at input/drivers/dinput.c:179
#10 0x00000000004e7346 in gfx_ctx_wgl_input_driver (data=<optimized out>,
input=0x74b3f0 <current_input>, input_data=0x74b3e8 <current_input_data>)
at gfx/drivers_context/wgl_ctx.cpp:564
#11 0x00000000004dba4f in video_context_driver_input_driver (
inp=inp@entry=0x2b31d90) at gfx/video_context_driver.c:435
#12 0x00000000004e4c47 in gl_init (video=video@entry=0x2b31e90,
input=0x74b3f0 <current_input>,
input_data=input_data@entry=0x74b3e8 <current_input_data>)
at gfx/drivers/gl.c:2870
#13 0x000000000041c29a in init_video () at gfx/video_driver.c:715
#14 video_driver_init () at gfx/video_driver.c:1538
#15 0x000000000041eba3 in init_drivers (flags=127) at driver.c:326
#16 driver_ctl (state=<optimized out>, data=<optimized out>) at driver.c:455
#17 0x000000000041e807 in driver_ctl (
state=state@entry=RARCH_DRIVER_CTL_INIT_ALL, data=data@entry=0x0)
at driver.c:461
#18 0x0000000000404db7 in retroarch_main_init (argc=45306880,
argv=0x742160 <runloop_fullpath>, argv@entry=0x2b345c0)
at retroarch.c:1347
#19 0x000000000040eeee in content_load (info=0x2b345c0)
at tasks/task_content.c:928
#20 task_load_content (content_info=content_info@entry=0x2b377f0,
launched_from_menu=launched_from_menu@entry=false)
at tasks/task_content.c:1598
#21 0x000000000041051c in task_push_content_load_default (
core_path=core_path@entry=0x0, fullpath=fullpath@entry=0x0,
content_info=content_info@entry=0x2b377f0,
type=type@entry=CORE_TYPE_DUMMY,
mode=mode@entry=CONTENT_MODE_LOAD_NOTHING_WITH_DUMMY_CORE,
cb=cb@entry=0x0, user_data=user_data@entry=0x0)
at tasks/task_content.c:1795
#22 0x0000000000408346 in command_event (cmd=cmd@entry=CMD_EVENT_UNLOAD_CORE,
data=data@entry=0x0) at command.c:1825
#23 0x00000000004afed0 in generic_action_ok_command (
cmd=CMD_EVENT_UNLOAD_CORE) at menu/cbs/menu_cbs_ok.c:1264
#24 action_ok_close_content (path=<optimized out>, label=<optimized out>,
type=<optimized out>, idx=<optimized out>, entry_idx=0)
at menu/cbs/menu_cbs_ok.c:1682
#25 0x000000000049bcea in menu_entry_action (entry=entry@entry=0x2b37ac0,
i=<optimized out>, action=action@entry=MENU_ACTION_OK)
at menu/menu_entry.c:391
#26 0x00000000004c908a in generic_menu_iterate (data=0xb9b4e90,
userdata=<optimized out>, action=MENU_ACTION_OK)
at menu/drivers/menu_generic.c:355
#27 0x000000000047dc55 in menu_driver_ctl (
state=state@entry=RARCH_MENU_CTL_ITERATE, data=data@entry=0x2b3fc80)
at menu/menu_driver.c:874
#28 0x000000000040c255 in runloop_iterate (sleep_ms=sleep_ms@entry=0x2b3fda0)
at runloop.c:1440
#29 0x00000000004016b0 in rarch_main (argc=<optimized out>,
argv=<optimized out>, data=0x0) at frontend/frontend.c:122
#30 0x0000000000615d2a in console_main ()
#31 0x0000000000615de1 in WinMain ()
#32 0x00000000004013ed in __tmainCRTStartup ()
at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:332
#33 0x00000000004014fb in WinMainCRTStartup ()
at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:184
@andres-asm
Copy link
Author

(gdb) bt full
#0 0x00007ffb7544c4cf in strchr () from C:\WINDOWS\system32\msvcrt.dll

No symbol table info available.
#1 0x0000000000432880 in strip_comment (str=0x51eb15b "#")

at libretro-common/file/config_file.c:272
    comment = 0x0
    literal = <optimized out>
    strend = 0x51eb15a ""
    cut_comment = true

#2 parse_line (conf=conf@entry=0x51eb3e0, list=list@entry=0x51eb740,

line=line@entry=0x51eb140 "input_r_x_minus_axis = \"-2")
at libretro-common/file/config_file.c:319
    comment = 0x0
    key_tmp = 0x0
    cur_size = 8
    idx = 0
    key = 0x51b7920 "input_l_x_minus_"

#3 0x0000000000432446 in config_file_new_internal (path=,

depth=depth@entry=0) at libretro-common/file/config_file.c:435
    list = 0x51eb740
    line = <optimized out>
    file = 0x7ffb7547e2a0 <msvcrt!_iob+144>
    conf = 0x51eb3e0

#4 0x0000000000432d77 in config_file_new (path=)

at libretro-common/file/config_file.c:523

No locals.
#5 0x000000000042a242 in input_autoconfigure_joypad_from_conf_dir (

params=0x2b2eb40) at input/input_autodetect.c:254
    i = <optimized out>
    ret = 0
    current_best = 2
    conf = 0x51eb9b0
    list = 0x51b7840
    path = "D:\\PortableData\\GameData\\Emulators\\RetroArch\\userdata\\profiles\\xinput", '\000' <repeats 4026 times>
    index = 28
    settings = <optimized out>

#6 input_config_autoconfigure_joypad (params=params@entry=0x2b2eb40)

at input/input_autodetect.c:332
    msg = "\000\000\000\000\000\000\000\000\000۲\002\000\000\000\000\000ݲ\002\000\000\000\000\000\000\000\000▒\177\000\000\002", '\000' <repeats 15 times>, "\220޲\002", '\000' <repeats 20 times>, "\060߲\002\000\000\000\000@▒\002\000\000\000\000]▒zt▒\177", '\000' <repeats 34 times>, "\024޲\002\000\000\000\000\030޲\002\000\000\000\000▒\005\000\000\000\000\000\000\001\000\000\000\000\000\000\001", '\000' <repeats 32 times>, "\001\000\000\000\000\000\000\000"...

#7 0x00000000004d6a00 in xinput_joypad_init (data=)

at input/drivers_joypad/xinput_joypad.c:265
    params = {
      name = "XInput Controller (User 1)", '\000' <repeats 4069 times>,
      driver = "xinput", '\000' <repeats 4089 times>,
      display_name = '\000' <repeats 4095 times>, idx = 0, vid = 0,
      pid = 0}
    i = <optimized out>
    autoconf_pad = 0
    dummy_state = {dwPacketNumber = 296, Gamepad = {wButtons = 0,
        bLeftTrigger = 0 '\000', bRightTrigger = 0 '\000',
        sThumbLX = -6510, sThumbLY = 1794, sThumbRX = -486,
        sThumbRY = 1201}}
    version = <optimized out>
    settings = <optimized out>

#8 0x000000000042a421 in input_joypad_init_driver (

ident=ident@entry=0x55e3268 "xinput", data=data@entry=0x51a8050)
at input/input_joypad_driver.c:139

No locals.
#9 0x00000000004d4f27 in dinput_init () at input/drivers/dinput.c:179

    di = 0x51a8050
    settings = 0x55de040

#10 0x00000000004e7346 in gfx_ctx_wgl_input_driver (data=,

input=0x74b3f0 <current_input>, input_data=0x74b3e8 <current_input_data>)
at gfx/drivers_context/wgl_ctx.cpp:564

No locals.
#11 0x00000000004dba4f in video_context_driver_input_driver (

inp=inp@entry=0x2b31d90) at gfx/video_context_driver.c:435

No locals.
#12 0x00000000004e4c47 in gl_init (video=video@entry=0x2b31e90,

input=0x74b3f0 <current_input>,
input_data=input_data@entry=0x74b3e8 <current_input_data>)
at gfx/drivers/gl.c:2870
    mode = {width = 0, height = 0, fullscreen = true}
    inp = {input = 0x74b3f0 <current_input>,
      input_data = 0x74b3e8 <current_input_data>}
    interval = 1
    mip_level = 1
    full_x = <optimized out>
    full_y = <optimized out>
    shader_filter = {index = 1, smooth = 0x2b31d4e}
    shader_info = {set_active = 64, num = 1, idx = 6631264,
      data = 0x55de040}
    ident_info = {ident = 0x6b7aaa <gfx_ctx_wgl+5770> "glsl"}
    wrap_info = {idx = 1, type = RARCH_WRAP_BORDER}
    win_width = <optimized out>
    win_height = <optimized out>
    temp_width = 3840
    temp_height = 2160
    force_smooth = false
    vendor = <optimized out>
    renderer = <optimized out>
    version = <optimized out>
    hwr = <optimized out>
    settings = 0x55de040
    gl = 0x51a5bb0

#13 0x000000000041c29a in init_video () at gfx/video_driver.c:715

    scale = <optimized out>
    width = 0
    height = 0
    custom_vp = <optimized out>
    geom = 0x74b600 <av_info>
    video = {width = 0, height = 0, fullscreen = true, vsync = true,
      force_aspect = true, vfilter = false, smooth = false,
      input_scale = 2, rgb32 = false}
    max_dim = <optimized out>
    tmp = 0x652f60 <input_dinput>
    system = 0x740420 <runloop_system>
    settings = 0x55de040
    dummy_pixels = {0 <repeats 32 times>}

#14 video_driver_init () at gfx/video_driver.c:1538

No locals.
#15 0x000000000041eba3 in init_drivers (flags=127) at driver.c:326

    hwr = 0x74b6c0 <hw_render>

#16 driver_ctl (state=, data=) at driver.c:455

    flags = <optimized out>

#17 0x000000000041e807 in driver_ctl (

state=state@entry=RARCH_DRIVER_CTL_INIT_ALL, data=data@entry=0x0)
at driver.c:461
    flags = 127

#18 0x0000000000404db7 in retroarch_main_init (argc=45306880,

argv=0x742160 <runloop_fullpath>, argv@entry=0x2b345c0)
at retroarch.c:1347

No locals.
#19 0x000000000040eeee in content_load (info=0x2b345c0)

at tasks/task_content.c:928
    i = <optimized out>
    retval = true
    rarch_argc = 9
    rarch_argv_ptr = 0x2b345c0
    rarch_argv = {0x51b78c0 "retroarch", 0xbe99a50 "--menu",
      0xbe999a0 "-s", 0xbf9b070 "..\\..\\EmulatorData\\Saves\\",
      0xbe99b20 "-S",
      0xbf9b130 "..\\..\\EmulatorData\\States\\windows\\",
      0xbe99ad0 "-c",
      0xbf9ad10 "userdata\\config\\windows\\retroarch.cfg",
      0xbe99c30 "-v", 0x0 <repeats 23 times>}
    argv_copy = {0x51b78c0 "retroarch", 0xbe99a50 "--menu",
      0xbe999a0 "-s", 0xbf9b070 "..\\..\\EmulatorData\\Saves\\",
      0xbe99b20 "-S",
      0xbf9b130 "..\\..\\EmulatorData\\States\\windows\\",
      0xbe99ad0 "-c",
      0xbf9ad10 "userdata\\config\\windows\\retroarch.cfg",
      0xbe99c30 "-v", 0x0 <repeats 23 times>}
    rarch_argc_ptr = 0x2b345b8
    wrap_args = 0xba495c0

#20 task_load_content (content_info=content_info@entry=0x2b377f0,

launched_from_menu=launched_from_menu@entry=false)
at tasks/task_content.c:1598
    name = "\000\000\r>\000\000\220>\000\000#>\000\000\235>\000\000▒>\000\000▒>▒A\000\000\000\000\000\000r▒\002\000\000\000\000\000c▒\002\000\000\000\000\000K▒\002\000\000\000\000\000W▒\002\000\000\000\000\000▒▒\002\000\000\000\000▒g▒\v\000\000\000\000\020\000\000\000\000\000\000\000\002aN\000\000\000\000\000 ▒▒\002\000\000\000\000▒A\000\000\000\000\000\020\000\000\000\000\000\000\000▒A\000\000\000\000\000\000\000k>\000\000\220>\000\000▒>\000\000\000\000\000\000\200:\016\000\000\000▒[\032\005\000\000\000\000\000\000\000\000\000\000\200:\000\200xD\000\000\060B\000H▒\002\000\000\000\000\000l▒\002\000\000\000\000\000`▒\002\000\000\000\000\000"...
    msg = "▒x\033\005\000\000\000\000P▒▒\v\000\000\000\000▒\231▒\v\000\000\000\000p▒▒\v\000\000\000\000 ▒▒\v\000\000\000\000\060▒▒\v\000\000\000\000К▒\v\000\000\000\000\020▒▒\v\000\000\000\000\060▒▒\v", '\000' <repeats 540 times>...
    fullpath = 0x742160 <runloop_fullpath> ""

#21 0x000000000041051c in task_push_content_load_default (

core_path=core_path@entry=0x0, fullpath=fullpath@entry=0x0,
content_info=content_info@entry=0x2b377f0,
type=type@entry=CORE_TYPE_DUMMY,
mode=mode@entry=CONTENT_MODE_LOAD_NOTHING_WITH_DUMMY_CORE,
cb=cb@entry=0x0, user_data=user_data@entry=0x0)
at tasks/task_content.c:1795

No locals.
#22 0x0000000000408346 in command_event (cmd=cmd@entry=CMD_EVENT_UNLOAD_CORE,

data=data@entry=0x0) at command.c:1825
    content_info = {argc = 0, argv = 0x0, args = 0x0,
      environ_get = 0x40dc00 <menu_content_environment_get>}
    i = 0
    boolean = false
    settings = 0x55de040
    info = 0x740420 <runloop_system>

#23 0x00000000004afed0 in generic_action_ok_command (

cmd=CMD_EVENT_UNLOAD_CORE) at menu/cbs/menu_cbs_ok.c:1264

No locals.
#24 action_ok_close_content (path=, label=,

type=<optimized out>, idx=<optimized out>, entry_idx=0)
at menu/cbs/menu_cbs_ok.c:1682

No locals.
#25 0x000000000049bcea in menu_entry_action (entry=entry@entry=0x2b37ac0,

i=<optimized out>, action=action@entry=MENU_ACTION_OK)
at menu/menu_entry.c:391
    ret = 0
    selection_buf = 0xb9ad8f0
    cbs = <optimized out>

#26 0x00000000004c908a in generic_menu_iterate (data=0xb9b4e90,

userdata=<optimized out>, action=MENU_ACTION_OK)
at menu/drivers/menu_generic.c:355
    selection = 2
    entry = {
      path = "Close\000t\000 ▒▒\b\000\000\000\000\002\000\000\002", '\000' <repeats 12 times>, "▒`\000▒\000\000\000\000&9\230Q\000\000\000\000▒`\000▒\000\000\000\000$▒3\a\000\000\000\000▒\001\000▒\000\000\000\000▒\001\000\000\000\000\000\000\002\000\000\002\000\000\000\000U▒\215Q\000\000\000\000\001\000\000\000\000\000\000\000\200▒3\a\000\000\000\000▒▒d\b\000\000\000\000▒▒d\b", '\000' <repeats 12 times>, "▒\003\000\000\000\000\000\000▒\003\000\000\000\000\000\000 ▒▒\b\000\000\000\000$", '\000' <repeats 15 times>, "\200|▒\002\000\000\000\000@▒\230Q\000\000\000\000▒Z\000\000\000\000\000\000"...,
      label = "unload_core", '\000' <repeats 1829 times>...,
      value = '\000' <repeats 3648 times>..., entry_idx = 0, idx = 2,
      type = 47, spacing = 713}
    label = 0xb9ab190 "null"
    ret = 0
    label_hash = 0
    hash = <optimized out>
    menu = 0xb9b4e90
    menu_stack = 0xb9adab0
    selection_buf = <optimized out>

#27 0x000000000047dc55 in menu_driver_ctl (

state=state@entry=RARCH_MENU_CTL_ITERATE, data=data@entry=0x2b3fc80)
at menu/menu_driver.c:874
    retcode = false
    iterate = 0x2b3fc80
    menu_driver_system = {library_name = 0xbe99a90 "Snes9x",
      library_version = 0xbe99930 "1.53",
      valid_extensions = 0x51b6ae0 "smc|sfc|swc|fig",
      need_fullpath = false, block_extract = false}
    menu_driver_pending_quick_menu = false
    menu_driver_pending_action = false
    menu_driver_prevent_populate = false
    menu_driver_load_no_content = false
    menu_driver_alive = true
    menu_driver_data_own = true
    menu_driver_pending_quit = false
    menu_driver_pending_shutdown = false
    menu_driver_playlist = 0xbf9eaf0
    menu_driver_shader = 0xba1bdb0
    menu_driver_data = 0xb9b4e90
    menu_driver_ctx = 0x652920 <menu_ctx_xmb>
    menu_userdata = 0x526b0c0
    settings = 0x55de040

#28 0x000000000040c255 in runloop_iterate (sleep_ms=sleep_ms@entry=0x2b3fda0)

at runloop.c:1440
    iter = {action = MENU_ACTION_OK, pointer = {x = 0, y = 0,
        touch = false}, mouse = {x = 0, y = 0, buttons = {left = false,
          right = false}, wheel = {up = 72, down = false}}}
    focused = true
    is_idle = false
    action = <optimized out>
    i = <optimized out>
    cmd = {state = {<optimized out>, 0, <optimized out>}}
    current = <optimized out>
    target = <optimized out>
    to_sleep_ms = <optimized out>
    cmd_ptr = <synthetic pointer>
    frame_limit_minimum_time = 3328
    frame_limit_last_time = 7201742033
    last_input = 256
    settings = 0x55de040

#29 0x00000000004016b0 in rarch_main (argc=,

argv=<optimized out>, data=0x0) at frontend/frontend.c:122
    sleep_ms = 0
    ret = <optimized out>
    argc = <optimized out>
    argv = <optimized out>
    data = 0x0
    args = 0x0

#30 0x0000000000615d2a in console_main ()

No symbol table info available.
#31 0x0000000000615de1 in WinMain ()

No symbol table info available.
#32 0x00000000004013ed in __tmainCRTStartup ()

at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:332
    lock_free = <optimized out>
    fiberid = <optimized out>
    nested = <optimized out>
    lpszCommandLine = <optimized out>
    StartupInfo = {cb = 104, lpReserved = 0x2c80670 "",
      lpDesktop = 0x2c835f0 "Winsta0\\Default",
      lpTitle = 0x2c7aa80 "C:\\Users\\Andres\\AppData\\Roaming\\Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar\\RetroArch.lnk",
      dwX = 0, dwY = 0, dwXSize = 0, dwYSize = 0, dwXCountChars = 0,
      dwYCountChars = 0, dwFillAttribute = 0, dwFlags = 3073,
      wShowWindow = 7, cbReserved2 = 0, lpReserved2 = 0x0,
      hStdInput = 0x0, hStdOutput = 0x10001, hStdError = 0x0}
    inDoubleQuote = <optimized out>

#33 0x00000000004014fb in WinMainCRTStartup ()

at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:184
    ret = 255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment