Last active
November 17, 2024 03:39
-
-
Save Binary-Eater/40e55d263e37b610122b8ee6a3c2f0c9 to your computer and use it in GitHub Desktop.
WA2 gdb debug session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set follow-fork-mode child | |
set substitute-path ../src-wine /home/binary-eater/Documents/Proton/wine | |
set substitute-path ../src-dxvk /home/binary-eater/Documents/Proton/dxvk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ took 12m4s | |
❯ sudo gdb | |
[sudo] password for binary-eater: | |
GNU gdb (GDB) 14.2 | |
Copyright (C) 2023 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. | |
Type "show copying" and "show warranty" for details. | |
This GDB was configured as "x86_64-unknown-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: | |
<https://www.gnu.org/software/gdb/bugs/>. | |
Find the GDB manual and other documentation resources online at: | |
<http://www.gnu.org/software/gdb/documentation/>. | |
For help, type "help". | |
Type "apropos word" to search for commands related to "word". | |
(gdb) b vmr_destroy | |
No symbol table is loaded. Use the "file" command. | |
Make breakpoint pending on future shared library load? (y or [n]) y | |
Breakpoint 1 (vmr_destroy) pending. | |
(gdb) attach 170148 | |
Attaching to process 170148 | |
[New LWP 170221] | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/nix/store/c10zhkbp6jmyh0xc5kd123ga8yy2p4hk-glibc-2.39-52/lib/libthread_db.so.1". | |
0x00007f246e22278c in select () from target:/usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libc.so.6 | |
(gdb) c | |
Continuing. | |
Error while mapping shared library sections: | |
`target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/WA2.exe': Shared library architecture i386 is not compatible with target architecture i386:x86-64. | |
Error while mapping shared library sections: | |
`target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/WA2.exe': Shared library architecture i386 is not compatible with target architecture i386:x86-64. | |
Error while mapping shared library sections: | |
`target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/WA2.exe': Shared library architecture i386 is not compatible with target architecture i386:x86-64. | |
Error while mapping shared library sections: | |
`target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/WA2.exe': Shared library architecture i386 is not compatible with target architecture i386:x86-64. | |
[Attaching after Thread 0x7f246dd1ef80 (LWP 170148) fork to child process 171029] | |
[New inferior 2 (process 171029)] | |
[Detaching after fork from parent process 170148] | |
[Inferior 1 (process 170148) detached] | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/nix/store/c10zhkbp6jmyh0xc5kd123ga8yy2p4hk-glibc-2.39-52/lib/libthread_db.so.1". | |
[Attaching after Thread 0x7f246dd1ef80 (LWP 171029) fork to child process 171030] | |
[New inferior 3 (process 171030)] | |
[Detaching after fork from parent process 171029] | |
[Inferior 2 (process 171029) detached] | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/nix/store/c10zhkbp6jmyh0xc5kd123ga8yy2p4hk-glibc-2.39-52/lib/libthread_db.so.1". | |
process 171030 is executing new program: /home/binary-eater/.local/share/Steam/steamapps/common/Proton - Experimental/files/bin/wine-preloader | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/nix/store/c10zhkbp6jmyh0xc5kd123ga8yy2p4hk-glibc-2.39-52/lib/libthread_db.so.1". | |
[New Thread 0x206fb40 (LWP 171032)] | |
[New Thread 0x2c3fb40 (LWP 171044)] | |
[New Thread 0xe6bffb40 (LWP 171046)] | |
[Thread 0x2c3fb40 (LWP 171044) exited] | |
[New Thread 0xde0ecb40 (LWP 171049)] | |
[New Thread 0xdd8ebb40 (LWP 171050)] | |
[New Thread 0xdd0eab40 (LWP 171051)] | |
[New Thread 0xdc8e9b40 (LWP 171053)] | |
[New Thread 0xdbde8b40 (LWP 171057)] | |
[New Thread 0xdb3ffb40 (LWP 171058)] | |
[New Thread 0xda336b40 (LWP 171059)] | |
[New Thread 0x252fb40 (LWP 171060)] | |
[New Thread 0x282fb40 (LWP 171061)] | |
[New Thread 0x2b2fb40 (LWP 171062)] | |
[New Thread 0x313fb40 (LWP 171063)] | |
[New Thread 0x37dfb40 (LWP 171079)] | |
[New Thread 0x3adfb40 (LWP 171080)] | |
[New Thread 0x3ddfb40 (LWP 171081)] | |
[New Thread 0x4d9fb40 (LWP 171084)] | |
[New Thread 0x52bfb40 (LWP 171085)] | |
[New Thread 0x55bfb40 (LWP 171086)] | |
[New Thread 0x58bfb40 (LWP 171087)] | |
[New Thread 0x5bbfb40 (LWP 171088)] | |
[New Thread 0x5ebfb40 (LWP 171089)] | |
[New Thread 0x61bfb40 (LWP 171090)] | |
[New Thread 0x64bfb40 (LWP 171091)] | |
[New Thread 0x67bfb40 (LWP 171092)] | |
[New Thread 0x6abfb40 (LWP 171093)] | |
[New Thread 0x6dbfb40 (LWP 171094)] | |
[New Thread 0x70bfb40 (LWP 171095)] | |
[New Thread 0x73bfb40 (LWP 171096)] | |
[New Thread 0x76bfb40 (LWP 171097)] | |
[New Thread 0x79bfb40 (LWP 171098)] | |
[New Thread 0xa5bfb40 (LWP 171099)] | |
[New Thread 0xa8bfb40 (LWP 171100)] | |
[New Thread 0xabbfb40 (LWP 171101)] | |
[New Thread 0xaebfb40 (LWP 171102)] | |
[New Thread 0xb1bfb40 (LWP 171103)] | |
[New Thread 0xc90cab40 (LWP 171104)] | |
[Thread 0xc90cab40 (LWP 171104) exited] | |
[New Thread 0xc86ffb40 (LWP 171105)] | |
[New Thread 0xc90cab40 (LWP 171106)] | |
[New Thread 0xb4bfb40 (LWP 171108)] | |
[New Thread 0xc77ffb40 (LWP 171109)] | |
[New Thread 0xc6bffb40 (LWP 171110)] | |
[New Thread 0xc63feb40 (LWP 171111)] | |
[New Thread 0xc59ffb40 (LWP 171112)] | |
[New Thread 0xc51feb40 (LWP 171113)] | |
[New Thread 0xc49fdb40 (LWP 171114)] | |
[New Thread 0xc41fcb40 (LWP 171115)] | |
[New Thread 0xc39fbb40 (LWP 171116)] | |
[New Thread 0xc1252b40 (LWP 171120)] | |
[New Thread 0xc0a51b40 (LWP 171121)] | |
[New Thread 0xbfcffb40 (LWP 171123)] | |
[New Thread 0xbecffb40 (LWP 171127)] | |
[New Thread 0xbe2feb40 (LWP 171128)] | |
[New Thread 0xe30fb40 (LWP 171129)] | |
[New Thread 0xe60fb40 (LWP 171130)] | |
[New Thread 0xe90fb40 (LWP 171131)] | |
[New Thread 0xec0fb40 (LWP 171132)] | |
[New Thread 0xf26fb40 (LWP 171137)] | |
[New Thread 0xf56fb40 (LWP 171138)] | |
[New Thread 0xfa6fb40 (LWP 171139)] | |
[New Thread 0xf4494b40 (LWP 171140)] | |
[New Thread 0xba803b40 (LWP 171141)] | |
[New Thread 0xba002b40 (LWP 171142)] | |
[New Thread 0xfd6fb40 (LWP 171145)] | |
[New Thread 0xb15ffb40 (LWP 171202)] | |
[Thread 0xf56fb40 (LWP 171138) exited] | |
[Thread 0xf26fb40 (LWP 171137) exited] | |
[Switching to Thread 0xf78f1b00 (LWP 171030)] | |
Thread 3.1 "WA2.exe" hit Breakpoint 1.1, vmr_destroy (iface=0x1f1de00) at ../src-wine/dlls/quartz/vmr7.c:431 | |
431 struct vmr7 *filter = impl_from_IBaseFilter(&iface->filter.IBaseFilter_iface); | |
(gdb) n | |
[Thread 0xb15ffb40 (LWP 171202) exited] | |
[Thread 0xba002b40 (LWP 171142) exited] | |
[Thread 0xf4494b40 (LWP 171140) exited] | |
433 video_window_cleanup(&filter->window); | |
(gdb) b 440 | |
Breakpoint 2 at 0x794f09a8: file ../src-wine/dlls/quartz/vmr7.c, line 440. | |
(gdb) c | |
Continuing. | |
Thread 3.1 "WA2.exe" hit Breakpoint 2, vmr_destroy (iface=0x1f1de00) at ../src-wine/dlls/quartz/vmr7.c:440 | |
440 if (filter->presenter) | |
(gdb) p *(filter->device)->lpVtbl.Release | |
$1 = {ULONG (IDirect3DDevice9 *)} 0x7acc1470 <d3d9!_Direct3DCreate9Hook@4+912> | |
(gdb) watch *(filter->device)->lpVtbl.Release | |
Watchpoint 3: *(filter->device)->lpVtbl.Release | |
(gdb) disable 3 | |
(gdb) n | |
[Thread 0xba803b40 (LWP 171141) exited] | |
441 IVMRImagePresenter9_Release(filter->presenter); | |
(gdb) s | |
IVMRImagePresenter9_Release (This=0x1f1c030) at include/vmr9.h:396 | |
warning: 396 include/vmr9.h: No such file or directory | |
(gdb) s | |
VMR9_ImagePresenter_Release (iface=0x1f1c030) at ../src-wine/dlls/quartz/vmr7.c:1771 | |
1771 ULONG refcount = InterlockedDecrement(&presenter->refcount); | |
(gdb) b 1787 | |
Breakpoint 4 at 0x794cf5ab: file ../src-wine/dlls/quartz/vmr7.c, line 1787. | |
(gdb) c | |
Continuing. | |
Thread 3.1 "WA2.exe" hit Breakpoint 4, VMR9_ImagePresenter_Release (iface=0x1f1c030) at ../src-wine/dlls/quartz/vmr7.c:1787 | |
1787 if (presenter->device) | |
(gdb) enable 3 | |
(gdb) c | |
Continuing. | |
Thread 3.1 "WA2.exe" hit Watchpoint 3: *(filter->device)->lpVtbl.Release | |
Old value = {ULONG (IDirect3DDevice9 *)} 0x7acc1470 <d3d9!_Direct3DCreate9Hook@4+912> | |
New value = <unreadable> | |
0x7acc1470 in d3d9!_Direct3DCreate9Hook@4 () from target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/d3d9.dll | |
(gdb) s | |
Single stepping until exit from function d3d9!_Direct3DCreate9Hook@4, | |
which has no line number information. | |
Thread 3.1 "WA2.exe" hit Watchpoint 3: *(filter->device)->lpVtbl.Release | |
Old value = <unreadable> | |
New value = {ULONG (IDirect3DDevice9 *)} 0x7acc1470 <d3d9!_Direct3DCreate9Hook@4+912> | |
0x7acc1473 in d3d9!_Direct3DCreate9Hook@4 () from target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/d3d9.dll | |
(gdb) s | |
Single stepping until exit from function d3d9!_Direct3DCreate9Hook@4, | |
which has no line number information. | |
0x799e5ce7 in dxvk::ComObjectClamp<IDirect3DDevice9Ex>::Release()@4 (this=0xc4a5f40) at ../src-dxvk/src/d3d9/../util/com/com_object.h:102 | |
102 ULONG STDMETHODCALLTYPE Release() { | |
(gdb) c | |
Continuing. | |
Thread 3.1 "WA2.exe" hit Watchpoint 3: *(filter->device)->lpVtbl.Release | |
Old value = {ULONG (IDirect3DDevice9 *)} 0x7acc1470 <d3d9!_Direct3DCreate9Hook@4+912> | |
New value = <unreadable> | |
list_add_after (to_add=0x1022428, elem=0x150298) at ../src-wine/include/wine/list.h:72 | |
72 elem->next->prev = to_add; | |
(gdb) bt | |
#0 list_add_after (to_add=0x1022428, elem=0x150298) at ../src-wine/include/wine/list.h:72 | |
#1 insert_free_block (heap=heap@entry=0x150000, subheap=subheap@entry=0xf30000, block=block@entry=0x1022420, flags=2) at ../src-wine/dlls/ntdll/heap.c:886 | |
#2 0x7bf8ae7b in heap_free_block (heap=heap@entry=0x150000, flags=2, block=0x1022420) at ../src-wine/dlls/ntdll/heap.c:948 | |
#3 0x7bf6167e in RtlFreeHeap@12 (handle=0x150000, flags=0, ptr=0x1022428) at ../src-wine/dlls/ntdll/heap.c:2122 | |
#4 0x7acdb0da in d3d9!_Direct3DCreate9Hook@4 () from target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/d3d9.dll | |
#5 0x7acd776a in d3d9!_Direct3DCreate9Hook@4 () from target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/d3d9.dll | |
#6 0x7accc9cc in d3d9!_Direct3DCreate9Hook@4 () from target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/d3d9.dll | |
#7 0x7acc148e in d3d9!_Direct3DCreate9Hook@4 () from target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/d3d9.dll | |
#8 0x794cf5ba in VMR9_ImagePresenter_Release (iface=0x1f1c030) at ../src-wine/dlls/quartz/vmr7.c:1788 | |
#9 VMR9_ImagePresenter_Release (iface=0x1f1c030) at ../src-wine/dlls/quartz/vmr7.c:1768 | |
#10 0x794f09ba in IVMRImagePresenter9_Release (This=<optimized out>) at include/vmr9.h:396 | |
#11 vmr_destroy (iface=0x1f1de00) at ../src-wine/dlls/quartz/vmr7.c:441 | |
#12 0x794e4263 in filter_inner_Release (iface=0x1f1de08) at ../src-wine/libs/strmbase/filter.c:259 | |
#13 0x7948c3e3 in FilterGraph2_RemoveFilter (iface=0x1ed4f3c, pFilter=0x1f1de00) at ../src-wine/dlls/quartz/filtergraph.c:766 | |
#14 0x7948d614 in IFilterGraph2_RemoveFilter (pFilter=<optimized out>, This=0x1ed4f3c) at include/strmif.h:7180 | |
#15 FilterGraphInner_Release (iface=0x1ed4f38) at ../src-wine/dlls/quartz/filtergraph.c:461 | |
#16 FilterGraphInner_Release (iface=0x1ed4f38) at ../src-wine/dlls/quartz/filtergraph.c:441 | |
#17 0x0044b937 in ?? () from target:/home/binary-eater/.local/share/wineprefixes/wa2/drive_c/Leaf/WHITE ALBUM2/WA2.exe | |
#18 0x18a164ec in ?? () | |
Backtrace stopped: Cannot access memory at address 0x8b55ff8f | |
(gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment