camden-smallwood/pdb-decompiler

Unhandled characters in build info args

MSeba1 opened this issue · 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

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

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

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

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.

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

OK that should be fixed in commit 01ac679.

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

OK that one should be fixed with commit 86a5d79.

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

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?

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

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

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

Yes I do, my account is @camdensmallwood