Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000004
0x00000001000042d9 in aStar (data=0x10180c600, end=0x101345420) at pathfinding.c:64
64 if(DBPATH)printf("closed 61 x: %d y: %d\n",closed->n_pos.x,closed->n_pos.y);
(gdb) bt
0 0x00000001000042d9 in aStar (data=0x10180c600, end=0x101345420) at pathfinding.c:64
1 0x00000001000036d2 in graphicLoop (l_screen=0x100771ed0, data=0x10180c600) at graphicUpdate.c:89
2 0x0000000100002a23 in SDL_main (argc=1, argv=0x10070ae70) at main.c:99
3 0x0000000100001eb0 in -[SDLMain applicationDidFinishLaunching:]()
4 0x00007fff85283a66 in _nsnote_callback ()
5 0x00007fff84411000 in __CFXNotificationPost ()
6 0x00007fff843fd578 in _CFXNotificationPostNotification ()
7 0x00007fff8527a9ce in -[NSNotificationCenter postNotificationName:object:userInfo:]()
8 0x00007fff87f513d6 in -[NSApplication _postDidFinishNotification]()
9 0x00007fff87f5130b in -[NSApplication _sendFinishLaunchingNotification]()
10 0x00007fff8801c305 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:]()
11 0x00007fff8801bf81 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]()
12 0x00007fff852b1f62 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]()
13 0x00007fff852b1d92 in _NSAppleEventManagerGenericHandler ()
14 0x00007fff81a04323 in aeDispatchAppleEvent ()
15 0x00007fff81a0421c in dispatchEventAndSendReply ()
16 0x00007fff81a04123 in aeProcessAppleEvent ()
17 0x00007fff86520765 in AEProcessAppleEvent ()
18 0x00007fff87f2104b in _DPSNextEvent ()
19 0x00007fff87f207a9 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]()
Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000004 0x00000001000042d9 in aStar (data=0x10180c600, end=0x101345420) at pathfinding.c:64 64 if(DBPATH)printf("closed 61 x: %d y: %d\n",closed->n_pos.x,closed->n_pos.y); (gdb) bt
0 0x00000001000042d9 in aStar (data=0x10180c600, end=0x101345420) at pathfinding.c:64
1 0x00000001000036d2 in graphicLoop (l_screen=0x100771ed0, data=0x10180c600) at graphicUpdate.c:89
2 0x0000000100002a23 in SDL_main (argc=1, argv=0x10070ae70) at main.c:99
3 0x0000000100001eb0 in -[SDLMain applicationDidFinishLaunching:]()
4 0x00007fff85283a66 in _nsnote_callback ()
5 0x00007fff84411000 in __CFXNotificationPost ()
6 0x00007fff843fd578 in _CFXNotificationPostNotification ()
7 0x00007fff8527a9ce in -[NSNotificationCenter postNotificationName:object:userInfo:]()
8 0x00007fff87f513d6 in -[NSApplication _postDidFinishNotification]()
9 0x00007fff87f5130b in -[NSApplication _sendFinishLaunchingNotification]()
10 0x00007fff8801c305 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:]()
11 0x00007fff8801bf81 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]()
12 0x00007fff852b1f62 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]()
13 0x00007fff852b1d92 in _NSAppleEventManagerGenericHandler ()
14 0x00007fff81a04323 in aeDispatchAppleEvent ()
15 0x00007fff81a0421c in dispatchEventAndSendReply ()
16 0x00007fff81a04123 in aeProcessAppleEvent ()
17 0x00007fff86520765 in AEProcessAppleEvent ()
18 0x00007fff87f2104b in _DPSNextEvent ()
19 0x00007fff87f207a9 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]()
20 0x00007fff87ee648b in -[NSApplication run]()
21 0x0000000100002503 in main ()