https://bugs.winehq.org/show_bug.cgi?id=55187
Bug ID: 55187 Summary: winedbg --auto crashes if target process terminates after attaching. Product: Wine Version: 8.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winedbg Assignee: wine-bugs@winehq.org Reporter: bernhardu@mailbox.org Distribution: ---
Tried to do some investigation of bug 54240. There MaLauncher.exe hit a unimplemented function, therefore raises a 'windbg --auto' process. Unfortunately somehow the MaLauncher.exe manages to terminate, therefore winedbg receives a EXIT_PROCESS_DEBUG_EVENT that sets dbg_curr_process to NULL, while winedbg is in the middle of the --auto processing. Therefore hitting close or show details leads to a crash in winedbg.
Thread 1 received signal SIGSEGV, Segmentation fault. 0x0041bff1 in output_system_info () at programs/winedbg/tgt_active.c:876 876 if (!IsWow64Process( dbg_curr_process->handle, &is_wow64 )) is_wow64 = FALSE; (rr) bt #0 0x0041bff1 in output_system_info () at programs/winedbg/tgt_active.c:876 #1 dbg_active_auto () at programs/winedbg/tgt_active.c:991 #2 0x0043a377 in main () at programs/winedbg/winedbg.c:729 ... (rr) print dbg_curr_process $1 = (struct dbg_process *) 0x0