Opengl calls result in a crash (memory corrupted?)
Original Reporter info from Mantis: koda
-
Reporter name:
Original Reporter info from Mantis: koda
- Reporter name:
Description:
Hello,
under the upcoming Mac OS X 10.7 no freepascal program using opengl are able to run.
For example trying to open Hedgewars engine results in the backtrace i posted under "Additional Information".
This bug has been confirmed also by an Apple engineer who provided a simple test program that triggers the error (attached).
Additional information:
Here is the backtrace for my program
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000005075b80e4
0x0000000107c2d402 in glColor4ub_Exec ()
(gdb) bt
#0 0x0000000107c2d402 in glColor4ub_Exec ()
#1 0x000000010010815c in URENDER_TINT$BYTE$BYTE$BYTE$BYTE ()
#2 0x0000000100027184 in P$HWENGINE_MAINLOOP ()
#3 0x00007fff9247e86a in _CFXNotificationPost ()
#4 0x00007fff9110b01b in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#5 0x00007fff890cb4e1 in -[NSApplication _postDidFinishNotification] ()
#6 0x00007fff890cb26e in -[NSApplication _sendFinishLaunchingNotification] ()
#7 0x00007fff892f5f66 in -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] ()
#8 0x00007fff89195045 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#9 0x00007fff924c5ad1 in -[NSObject performSelector:withObject:withObject:] ()
#10 0x00007fff9119fb06 in __-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke_1 ()
#11 0x00007fff91142c22 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#12 0x00007fff91142ab0 in _NSAppleEventManagerGenericHandler ()
#13 0x00007fff914e62fc in aeDispatchAppleEvent ()
#14 0x00007fff914e61da in dispatchEventAndSendReply ()
#15 0x00007fff914e60ce in aeProcessAppleEvent ()
#16 0x00007fff92062d41 in AEProcessAppleEvent ()
#17 0x00007fff8909d5a1 in _DPSNextEvent ()
#18 0x00007fff8909cc5c in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#19 0x00007fff89061684 in -[NSApplication run] ()
#20 0x0000000100026b01 in main ()
Mantis conversion info:
- Mantis ID: 19269
- OS: Mac OS X
- OS Build: 10.7
- Platform: Intel x86_64
- Fixed in version: 2.6.0
- Fixed in revision: 17388 (#a08989a7)
- Monitored by: » koda (koda)