3Shain / dxmt

Metal-based implementation of D3D11 for MacOS / Wine
MIT License
364 stars 12 forks source link

winedbg consistently crashes. the whole thing is not debug-able at all. #3

Closed 3Shain closed 5 months ago

3Shain commented 8 months ago

It gives garbage like this (the error is triggered intentionally

wine: Unhandled page fault on write access to 0000000140B46C94 at address 0000000140B3A1A1 (thread 0024), starting debugger...
0110:fixme:keyboard:NtUserActivateKeyboardLayout Changing user locale is not supported
0118:fixme:keyboard:NtUserActivateKeyboardLayout Changing user locale is not supported
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:0000000001F9C870,symt:00000000030C3960) in ctx(0000000001970BA0,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:0000000001F9C870,symt:00000000030CEC00) in ctx(0000000001970BA0,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:0000000001F9C870,symt:00000000030DCCB0) in ctx(0000000001970BA0,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:0000000001F9C870,symt:00000000030E7070) in ctx(0000000001970BA0,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:0000000002357570,symt:00000000036316A0) in ctx(0000000001971BF0,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers Unsupported extended opcode 97
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:00000000067B7F20) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:00000000067BE3B0) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:00000000067DDB80) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:00000000067E3650) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:00000000067F7540) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:00000000067F7E40) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:0000000006816A70) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:0000000006817370) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:0000000006823600) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:0000000006829640) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:0000000006837F70) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:0000000006838870) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:000000000685EE80) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:000000000685F780) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:000000000686F780) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:00000000068755E0) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:0000000006882FD0) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:0000000006888A50) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:000000000689EEA0) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000244CA70,symt:000000000689F7A0) in ctx(0000000001972000,L"generate_kernel")
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_line_numbers not handled define file "&\xc8\x05\r\n\x08\xaf\x05\x12\x06J\x05\t\x82\x05(\x06\xa0\x055\x06\x08<\x05\x1d\x08\x90\x05\x1a\x06\xe5\x05(\x06\x08<\x05-J\x059\x9e\x05!\x08\x82\x05\x13\x06\x9f\x05\x01\xe5\x06\x0b\xe4\x05"
0110:fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0x4106 at debug_info(abbrev:000000000247C220,symt:00000000075A9800) in ctx(00000000019720D0,L"generate_kernel")

There might be some workarounds to be investigated, like use PDB with native (Windows) debugging facitilies. https://gist.github.com/rmi1974/90f14258c622fe57a9b70f6cabe69d66 https://gist.github.com/rmi1974/dc308b1958c17e067afa58e4f5684759

3Shain commented 8 months ago

It's very likely caused by the statically linked llvm 🤔

3Shain commented 5 months ago

the problem has gone since airconv moved to unix side (if it doesn't crash in unix side)