Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CpuStates for Windows #937

Open
FluffyOMC opened this issue Aug 19, 2024 · 20 comments
Open

Implement CpuStates for Windows #937

FluffyOMC opened this issue Aug 19, 2024 · 20 comments
Labels
A-amd64 Architecture: x86-64 P-windows Platform: Windows T-enhancement Type: Enhancement

Comments

@FluffyOMC
Copy link
Member

Unknown what is exactly causing it as I'm stuck with using the release builds rn haha.

Faulting application name: Obliteration.exe, version: 0.0.1.0, time stamp: 0x66c39537
Faulting module name: Obliteration.exe, version: 0.0.1.0, time stamp: 0x66c39537
Exception code: 0xc0000409
Fault offset: 0x0000000000053649

Error lookup:

# for hex 0xc0000409 / decimal -1073740791
  STATUS_STACK_BUFFER_OVERRUN                                    ntstatus.h
# The system detected an overrun of a stack-based buffer in
# this application. This overrun could potentially allow a
# malicious user to gain control of this application.
@ultimaweapon
Copy link
Member

What Actions you downloaded the binary? It must be the same one that is causing this error otherwise the offset will not match.

@FluffyOMC
Copy link
Member Author

Latest Release action, Windows x64

@ultimaweapon
Copy link
Member

This is Rust panic. Can you try running Obliteration.exe from Windows Terminal? It should print something before causing this error.

@ultimaweapon ultimaweapon added T-bug Type: Bug P-windows Platform: Windows labels Aug 20, 2024
@FluffyOMC
Copy link
Member Author

This is Rust panic. Can you try running Obliteration.exe from Windows Terminal? It should print something before causing this error.

Yeah... No.

PS C:\Users\ghost\Downloads\obliteration-win-x64 (5)> .\Obliteration.exe
PS C:\Users\ghost\Downloads\obliteration-win-x64 (5)>

@FluffyOMC
Copy link
Member Author

Unless this is happening because the wizard install window appears, which if so... How the hell do I make that go away? XD I always just feed it a blank file.

@ultimaweapon
Copy link
Member

Try running https://learn.microsoft.com/en-us/sysinternals/downloads/debugview then start Obliteration.

@FluffyOMC
Copy link
Member Author

Yeah, nope... Let me see what I can do.

[24760] [OBS] 
[24760] graphics-hook.dll loaded against process: Obliteration.exe
[24760] 
[24760] [OBS] 
[24760] (half life scientist) everything..  seems to be in order

Have this funny from OBS.

@FluffyOMC
Copy link
Member Author

(26c8.56b0): Security check failure or stack buffer overrun - code c0000409 (!!! second chance !!!)
Subcode: 0x7 FAST_FAIL_FATAL_APP_EXIT 
Obliteration+0x53649:
00007ff7`bd1c3649 cd29            int     29h

@FluffyOMC
Copy link
Member Author

00007ff7`bd1c3635 e91632fcff           jmp     00007FF7BD186850
00007ff7`bd1c363a cc                   int     3
00007ff7`bd1c363b cc                   int     3
00007ff7`bd1c363c cc                   int     3
00007ff7`bd1c363d cc                   int     3
00007ff7`bd1c363e cc                   int     3
00007ff7`bd1c363f cc                   int     3
00007ff7`bd1c3640 55                   push    rbp
00007ff7`bd1c3641 4889e5               mov     rbp, rsp
00007ff7`bd1c3644 b907000000           mov     ecx, 7
00007ff7`bd1c3649 cd29                 int     29h
[0x0]   Obliteration + 0x53649!Obliteration+0x53649   0xe6b74ff660   0x7ff7bd196535   

@ultimaweapon
Copy link
Member

The only useful information will be either:

  1. Rust panic message.
  2. Full stack trace.

@FluffyOMC
Copy link
Member Author

0:021> k
 # Child-SP          RetAddr               Call Site
00 00000027`40dff7f0 00007ff7`bd196535     Obliteration+0x53649
01 00000027`40dff800 00007ff7`bd196221     Obliteration+0x26535
02 00000027`40dff890 00007ff7`bd196019     Obliteration+0x26221
03 00000027`40dff9a0 00007ff7`bd1948cf     Obliteration+0x26019
04 00000027`40dffa10 00007ff7`bd195d08     Obliteration+0x248cf
05 00000027`40dffa40 00007ff7`bd209844     Obliteration+0x25d08
06 00000027`40dffa90 00007ff7`bd20990d     Obliteration+0x99844
07 00000027`40dffaf0 00007ff7`bd19d1bc     Obliteration+0x9990d
08 00000027`40dffb60 00007ff7`bd17a456     Obliteration+0x2d1bc
09 00000027`40dffb90 00007ff7`bd175c21     Obliteration+0xa456
0a 00000027`40dffd00 00007ff7`bd1766e9     Obliteration+0x5c21
0b 00000027`40dffd70 00007ff7`bd19895d     Obliteration+0x66e9
0c 00000027`40dffe20 00007ffd`b6ab257d     Obliteration+0x2895d
0d 00000027`40dffe80 00007ffd`b75caf28     KERNEL32!BaseThreadInitThunk+0x1d
0e 00000027`40dffeb0 00000000`00000000     ntdll!RtlUserThreadStart+0x28

@FluffyOMC
Copy link
Member Author

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.mSec
    Value: 609

    Key  : Analysis.Elapsed.mSec
    Value: 42830

    Key  : Analysis.IO.Other.Mb
    Value: 21

    Key  : Analysis.IO.Read.Mb
    Value: 1

    Key  : Analysis.IO.Write.Mb
    Value: 29

    Key  : Analysis.Init.CPU.mSec
    Value: 62

    Key  : Analysis.Init.Elapsed.mSec
    Value: 78899

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 98

    Key  : FailFast.Name
    Value: FATAL_APP_EXIT

    Key  : FailFast.Type
    Value: 7

    Key  : Failure.Bucket
    Value: FAIL_FAST_FATAL_APP_EXIT_c0000409_Obliteration.exe!Unknown

    Key  : Failure.Hash
    Value: {5cc691b1-3e41-c236-86f0-cf40abb612ab}

    Key  : Timeline.OS.Boot.DeltaSec
    Value: 38598

    Key  : Timeline.Process.Start.DeltaSec
    Value: 78

    Key  : WER.OS.Branch
    Value: ni_release

    Key  : WER.OS.Version
    Value: 10.0.22621.1

    Key  : WER.Process.Version
    Value: 0.0.1.0


NTGLOBALFLAG:  70

APPLICATION_VERIFIER_FLAGS:  0

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ff7bd1c3649 (Obliteration+0x0000000000053649)
   ExceptionCode: c0000409 (Security check failure or stack buffer overrun)
  ExceptionFlags: 00000001
NumberParameters: 1
   Parameter[0]: 0000000000000007
Subcode: 0x7 FAST_FAIL_FATAL_APP_EXIT 

FAULTING_THREAD:  00002384

PROCESS_NAME:  Obliteration.exe

ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

EXCEPTION_CODE_STR:  c0000409

EXCEPTION_PARAMETER1:  0000000000000007

STACK_TEXT:  
00000027`40dff7f0 00007ff7`bd196535     : 00000000`00000013 00007ff7`bd2495b8 00000027`40dff838 00007ffd`b4f346e8 : Obliteration+0x53649
00000027`40dff800 00007ff7`bd196221     : 00000000`00000000 000001b2`56c28a60 000001b2`5241aad0 00007ffd`7c0327d9 : Obliteration+0x26535
00000027`40dff890 00007ff7`bd196019     : 00000000`00000000 000001b2`52399648 0000fc5e`a642994b 00000000`00000000 : Obliteration+0x26221
00000027`40dff9a0 00007ff7`bd1948cf     : 00000000`00000000 000001b2`5241aaf0 00000000`00000000 00000027`40dffa80 : Obliteration+0x26019
00000027`40dffa10 00007ff7`bd195d08     : 00000027`40dffa90 00000027`40dffaa0 00000000`00000000 00007ffd`b75ad239 : Obliteration+0x248cf
00000027`40dffa40 00007ff7`bd209844     : 00000000`00000004 00000000`00000000 00007ff7`bd198920 000001b2`52306010 : Obliteration+0x25d08
00000027`40dffa90 00007ff7`bd20990d     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : Obliteration+0x99844
00000027`40dffaf0 00007ff7`bd19d1bc     : 00000000`0000000c 00000027`40dffc10 00000000`0000000c 00007ff7`bd249570 : Obliteration+0x9990d
00000027`40dffb60 00007ff7`bd17a456     : 00000000`00000000 000001b2`5241aad0 00000027`40dffd30 00007ff7`bd18e7a7 : Obliteration+0x2d1bc
00000027`40dffb90 00007ff7`bd175c21     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : Obliteration+0xa456
00000027`40dffd00 00007ff7`bd1766e9     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : Obliteration+0x5c21
00000027`40dffd70 00007ff7`bd19895d     : 00000000`00000000 000001b2`52306010 00000000`00000000 00000000`00000000 : Obliteration+0x66e9
00000027`40dffe20 00007ffd`b6ab257d     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : Obliteration+0x2895d
00000027`40dffe80 00007ffd`b75caf28     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x1d
00000027`40dffeb0 00000000`00000000     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x28


SYMBOL_NAME:  Obliteration+53649

MODULE_NAME: Obliteration

IMAGE_NAME:  Obliteration.exe

STACK_COMMAND:  ~21s ; .cxr ; kb

FAILURE_BUCKET_ID:  FAIL_FAST_FATAL_APP_EXIT_c0000409_Obliteration.exe!Unknown

OS_VERSION:  10.0.22621.1

BUILDLAB_STR:  ni_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

IMAGE_VERSION:  0.0.1.0

FAILURE_ID_HASH:  {5cc691b1-3e41-c236-86f0-cf40abb612ab}

Followup:     MachineOwner
---------

@FluffyOMC
Copy link
Member Author

FluffyOMC commented Aug 20, 2024

Ahem:

!analyze -v lil note for if I want massive logs like that.

@ultimaweapon ultimaweapon changed the title 0xc0000409 exception on Windows Implement CpuStates::set_rdi() for Windows Aug 20, 2024
@ultimaweapon ultimaweapon added T-enhancement Type: Enhancement and removed T-bug Type: Bug labels Aug 20, 2024
@FluffyOMC
Copy link
Member Author

Love how my laziness on not wanting to make a custom Qt build, has helped you add better Panic logging xD

@FluffyOMC
Copy link
Member Author

@ultimaweapon So, with the new logging stuff...
image
image

@FluffyOMC
Copy link
Member Author

Just freezes whenever I run the game instead of outputting the panic or anything.

@ultimaweapon
Copy link
Member

Can you create a dedicated issue for this?

@ultimaweapon
Copy link
Member

BTW the above logging window is for kernel logs, not the GUI logs.

@FluffyOMC
Copy link
Member Author

My laptop is currently being reset (fucking Asus Armory LMAO), uh, any progress on this?

@ultimaweapon
Copy link
Member

From me, nope. I still not finished with backing up my laptop so can't install Windows yet.

@ultimaweapon ultimaweapon changed the title Implement CpuStates::set_rdi() for Windows Implement CpuStates for Windows Oct 20, 2024
@ultimaweapon ultimaweapon added the A-amd64 Architecture: x86-64 label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-amd64 Architecture: x86-64 P-windows Platform: Windows T-enhancement Type: Enhancement
Development

No branches or pull requests

2 participants