gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tools-windows-msvc runtime error


From: M A
Subject: Re: tools-windows-msvc runtime error
Date: Sat, 15 Jul 2023 11:27:55 -0400

My guess is a nil pointer was accessed.

I made this test program to see what would happen if a nil pointer was accessed:

#include <Foundation/Foundation.h>

int main(int argc, char *argv[]) {
    NSString *mystring;                // nil pointer
    NSLog(@"mystring: %@", mystring);  // crash here
}

The result was Segmentation fault: 11.

I am on Mac OS 12 and you are on Windows so that could account for the 
different error message.

Could you share more information about your program?


> On Jul 15, 2023, at 9:28 AM, loserist <loserist@88.com> wrote:
> 
> Hi all! I want to get help from you.Thank You.
> C:\>echo %errorlevel%
> -1073741819
> 
> (lldb) Process 3708 launched: 'C:\a.exe' (x86_64)
> Process 3708 stopped
> * thread #1, stop reason = Exception 0xc0000005 encountered at address 
> 0x7ffb37a81048: Access violation reading locatio
> n 0x00000000
> frame #0: 0x00007ffb37a81048 objc.dll`objc_msgSend + 40
> objc.dll`objc_msgSend:
> -> 0x7ffb37a81048 <+40>: movl (%r10), %r11d
> 0x7ffb37a8104b <+43>: cmpl $0x8, %r11d
> 0x7ffb37a8104f <+47>: je 0x7ffb37a81063 ; <+67>
> 0x7ffb37a81051 <+49>: cmpl $0x0, %r11d




reply via email to

[Prev in Thread] Current Thread [Next in Thread]