Pelles C forum

Pelles C => Bug reports => Topic started by: bitcoin on August 15, 2022, 11:43:19 PM

Title: Aceess violation in IDE
Post by: bitcoin on August 15, 2022, 11:43:19 PM
Hello,
got strange error,
Code: [Select]
fatal error: Internal error: 'Access violation' at 0x00007ff72fa2ab4e.
I removed everything unnecessary from the project, but when compiling the function "int exec(PUNICODE_STRING name)" , I get this error.
Title: Re: Aceess violation in IDE
Post by: frankie on August 16, 2022, 12:35:55 AM
The code you attached is not valid.
Please post the correct code that cause the problem.
Title: Re: Aceess violation in IDE
Post by: bitcoin on August 17, 2022, 01:05:26 PM
correct code don't crashes IDE
Title: Re: Aceess violation in IDE
Post by: John Z on August 17, 2022, 01:26:52 PM
Hi bitcoin,

I tried the code package you posted.  I think maybe you took too much out.
It does not compile at all and has many error messages.  I add one missing header file
but still too much is missing to troubleshoot.

As posted it does not compile, but does not crash the IDE either.

Maybe re-post with a bit more code left in?

John Z
Title: Re: Aceess violation in IDE
Post by: TimoVJL on August 19, 2022, 01:11:00 PM
Example was extracted from C++ code ?
Without those structs, can't test, if optimization fails.
Code: [Select]
nebet_test.c(27): error #2048: Undeclared identifier 'USER_STACK' (did you mean: ?).
nebet_test.c(29): error #2152: Unknown member 'StackReserve' of 'SECTION_IMAGE_INFORMATION (aka struct _SECTION_IMAGE_INFORMATION)' (did you mean: Reserved?).
nebet_test.c(34): error #2152: Unknown member 'StackCommit' of 'SECTION_IMAGE_INFORMATION (aka struct _SECTION_IMAGE_INFORMATION)' (did you mean: CheckSum?).
nebet_test.c(52): error #2152: Unknown member 'EntryPoint' of 'SECTION_IMAGE_INFORMATION (aka struct _SECTION_IMAGE_INFORMATION)' (did you mean: ZeroBits?).
Vergilius project (https://www.vergiliusproject.com/kernels/x64/Windows%208.1%20|%202012R2/Update%201/_SECTION_IMAGE_INFORMATION)
Title: Re: Aceess violation in IDE
Post by: Marco on August 19, 2022, 02:22:58 PM
Hi bitcoin,

maybe somewhere in your code you have something alike to the following:

https://forum.pellesc.de/index.php?topic=10180.msg35039#msg35039 (https://forum.pellesc.de/index.php?topic=10180.msg35039#msg35039)
Title: Re: Aceess violation in IDE
Post by: bitcoin on August 21, 2022, 03:01:41 PM
Hello!

I can post correct code , but its dont crashes IDE. I was surprised that these are not ordinary compiler / linker errors, but 'Access violation'. I thought maybe there was some internal mistake in PellesC itself. And yes, the code was copied from C++ .. moreover, the code is from windows 2000.
Title: Re: Aceess violation in IDE
Post by: John Z on August 21, 2022, 04:35:56 PM
Hi Bitcoin,

Sympathize with your situation, but the code as posted so far just does not crash my IDE.
See attached results -

Perhaps a re-install of Pelles C should be tried?

John Z
Title: Re: Aceess violation in IDE
Post by: bitcoin on August 22, 2022, 10:15:53 PM
but the code as posted so far just does not crash my IDE.
This is very good! So, maybe this is my local bug.