pdb-decompiler icon indicating copy to clipboard operation
pdb-decompiler copied to clipboard

Unhandled characters in build info args

Open MSeba1 opened this issue 1 year ago • 14 comments

Hello, im getting a weird error, something about MultipleProcessSupport flag? here is the log

0x180000000`
thread 'main' panicked at src/cpp/module.rs:873:36:
Unhandled characters in build info arg: 'MP1...'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Im running the script on ubuntu 22.04 and rustc 1.74.0

MSeba1 avatar Nov 28 '23 13:11 MSeba1

even if i try avoid getting panicked, another error comes up Unhandled characters in build info arg: 'O14...'

MSeba1 avatar Nov 28 '23 13:11 MSeba1

Hey there, I've implemented a fix for /MP compiler options in commit c8cbcce, which should resolve your first issue. The second issue seems a little odd, does it still happen after the aforementioned fix? If so, is this PDB file publicly available so that I can debug it locally? The /O14 flag isn't documented, which you can see here: https://learn.microsoft.com/en-us/cpp/build/reference/o-options-optimize-code?view=msvc-170

camden-smallwood avatar Nov 29 '23 08:11 camden-smallwood

Hello, first of all thanks for the fast response, you are right after fixing the first error now i get a different one not yet implemented: arg switch 'Zf...' please ignore /O14 not sure how i got that error unfortunately the pdf is not public

MSeba1 avatar Nov 29 '23 12:11 MSeba1

No problem, if you don't mind reporting on any missing build info arg support in here, then I'll do what I can to get them implemented. I have added support for the /Zf option in commit 521a802.

camden-smallwood avatar Nov 29 '23 12:11 camden-smallwood

sure, gotta catch them all i guess? next one is Unhandled characters in build info arg: 'experimental'

MSeba1 avatar Nov 29 '23 13:11 MSeba1

OK that should be fixed in commit 01ac679.

camden-smallwood avatar Nov 29 '23 14:11 camden-smallwood

ok, next one Unhandled characters in build info arg: 'experimental:deterministic'

MSeba1 avatar Nov 29 '23 18:11 MSeba1

OK that one should be fixed with commit 86a5d79.

camden-smallwood avatar Nov 29 '23 18:11 camden-smallwood

next Unhandled characters in build info arg: 'GR-3...'

MSeba1 avatar Nov 29 '23 18:11 MSeba1

That's a strange one because it doesn't seem to follow the documentation of the /GR option as specified here: https://learn.microsoft.com/en-us/cpp/build/reference/gr-enable-run-time-type-information?view=msvc-160

I've made a change that includes the build info args when an unexpected character is encountered in commit 2ff0ba3. Could you include the entire new error message so that I can verify the context and ensure it's not a parsing error?

camden-smallwood avatar Nov 29 '23 19:11 camden-smallwood

the full error is like the others

thread 'main' panicked at src/cpp/module.rs:825:40:
Unhandled characters in build info arg: 'GR-3...'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

edit: i think you meant for me to parse the error after the latest commit? unfortunately doing so prints a huge list of sensitive strings i would avoid sending, is there an alternative? sorry about this

MSeba1 avatar Nov 29 '23 19:11 MSeba1

I think your local copy might be out of date. Could you verify that your src/cpp/module.rs has the same message string as the repository's at line 825? https://github.com/camden-smallwood/pdb-decompiler/blob/main/src/cpp/module.rs#L825

camden-smallwood avatar Nov 29 '23 19:11 camden-smallwood

do you have telegram? i found the GR-3 issue i think

MSeba1 avatar Nov 29 '23 19:11 MSeba1

Yes I do, my account is @camdensmallwood

camden-smallwood avatar Nov 29 '23 19:11 camden-smallwood