NO

Author Topic: Exception in pocc.exe  (Read 1386 times)

Offline dezmand07

  • Member
  • *
  • Posts: 14
Exception in pocc.exe
« on: January 05, 2025, 10:46:08 PM »
Hello. I found a bug in the pocc.exe compiler.
In Windows 11 23H2 (build 23631) compilation is fine.
But in Windows 11 24H2 (build 26100) the error is 0xC0000005


The exception in pocc.exe occurs when closing handles with the CloseHandle function in ntdll.SbSelectProcedure on the movaps instruction.
For Windows 11 24H2 (build 26100) the movaps instruction requires that the operand address be aligned to 16 bytes


Fix it please.

Offline HellOfMice

  • Member
  • *
  • Posts: 315
  • Never be pleased, always improve
Re: Exception in pocc.exe
« Reply #1 on: January 06, 2025, 03:16:26 AM »
Very interesting, but we can't do anything.
--------------------------------
Kenavo

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2189
Re: Exception in pocc.exe
« Reply #2 on: January 06, 2025, 11:02:21 AM »
Bit strange, if only pocc.exe suffer that kind of problem  ???
May the source be with you

Offline John Z

  • Member
  • *
  • Posts: 954
Re: Exception in pocc.exe
« Reply #3 on: January 06, 2025, 11:50:09 AM »
No expert here but isn't is also strange that programs created with the theorized non-alignment issue in prior versions of Windows apparently still run fine in Win 11 24H2? I would assume that the issue should affect running programs not just the Pelles Compiling/Linking process ?

Fortunately for me I have a WIN10 system running that could not handle the downgrade to WIN 11  ;D
Unfortunately not the case for my main computing system which is still 23H2 so far but any day now it could go to the dark side...

John Z

Offline Vortex

  • Member
  • *
  • Posts: 944
    • http://www.vortex.masmcode.com
Re: Exception in pocc.exe
« Reply #4 on: January 06, 2025, 08:39:45 PM »
Hi  dezmand07,

Any chance to repeaet the test on Windows 10?
« Last Edit: January 06, 2025, 08:44:07 PM by Vortex »
Code it... That's all...

Offline HellOfMice

  • Member
  • *
  • Posts: 315
  • Never be pleased, always improve
Re: Exception in pocc.exe
« Reply #5 on: January 06, 2025, 08:40:47 PM »
Is it good now
--------------------------------
Kenavo

Offline dezmand07

  • Member
  • *
  • Posts: 14
Re: Exception in pocc.exe
« Reply #6 on: January 07, 2025, 08:45:55 AM »
Hi Vortex.

I have Windows 10 22H2 (build 19045) installed on a Hyper-V VM.
At the moment, I continue to develop my projects from a virtual machine, since my main operating system is Windows 11 24H2 (build 26100).
I don’t see any problems with IDE Pelles C in Windows 10.

Offline John Z

  • Member
  • *
  • Posts: 954
Re: Exception in pocc.exe
« Reply #7 on: January 09, 2025, 05:09:55 PM »
Hi,

At the start of this particular thread regarding WIN 11 24H2 'bug'/impact on Pelles C the file ntdll.dll was pointed to as being involved.

The attached shows where two ntdll.dll files are system32 and SysWOW64.
On my WIN 11 23H2 the file version in both places is 10.0.2261.4541 and the create date and file size are shown in the attachment.

Can someone with a WIN 11 24H2 system check on the version of the ntdll.dll files to verify it is different?

John Z

Offline HellOfMice

  • Member
  • *
  • Posts: 315
  • Never be pleased, always improve
Re: Exception in pocc.exe
« Reply #8 on: January 09, 2025, 05:19:01 PM »
Here are he version of NTDLL.DLL before and after installing the V24 version :-[
--------------------------------
Kenavo

Offline Vortex

  • Member
  • *
  • Posts: 944
    • http://www.vortex.masmcode.com
Re: Exception in pocc.exe
« Reply #9 on: January 09, 2025, 05:45:53 PM »
Retrieving the version of a file with Visual Basic script :

Code: [Select]
' http://blogs.technet.com/b/heyscriptingguy/archive/2005/04/18/how-can-i-determine-the-version-number-of-a-file.aspx

strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colFiles = objWMIService.ExecQuery _
    ("Select * from CIM_Datafile Where Name = 'C:\\Windows\\System32\\ntdll.dll'")

For Each objFile in colFiles
    Wscript.Echo objFile.Version
Next
Code it... That's all...

Offline dezmand07

  • Member
  • *
  • Posts: 14
Re: Exception in pocc.exe
« Reply #10 on: January 09, 2025, 08:13:05 PM »
John Z,

Windows 11 24H2 (build 26100.2605)
ntdll.dll (System32) - 10.0.26100.2454
ntdll.dll (SysWOW64) - 10.0.26100.2605

Offline John Z

  • Member
  • *
  • Posts: 954
Re: Exception in pocc.exe
« Reply #11 on: January 09, 2025, 09:51:45 PM »
Thanks all,

Good to know and record.


John Z

Offline CandCPlusPlus

  • Member
  • *
  • Posts: 71
Re: Exception in pocc.exe
« Reply #12 on: January 15, 2025, 03:38:45 AM »
Is this a bug in Windows 11? I wonder if this was fixed by Microsoft for patch Tuesday. Can anyone test it?

Offline HellOfMice

  • Member
  • *
  • Posts: 315
  • Never be pleased, always improve
Re: Exception in pocc.exe
« Reply #13 on: January 15, 2025, 03:49:49 AM »
If you don't use the IDE for compiling & linking there is no problem
--------------------------------
Kenavo

Offline CandCPlusPlus

  • Member
  • *
  • Posts: 71
Re: Exception in pocc.exe
« Reply #14 on: January 15, 2025, 03:50:52 AM »
If Pelles ever creates a workaround for this, I'd recommend having a way to disable the workaround in the options as it's possible that Microsoft may fix this problem in the future and possibly already has fixed it this patch Tuesday. Could anyone test Pelles C after applying the newest update today? I don't have a Windows 11 computer running at the moment.