Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-06

KERN_PROTECTION_FAILURE at address: 0x00000000

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roland Turcan

Hello lazarus project!

How can I find the reason of problem which is resulted in GDB this way:

Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x0068b197 in CARBONPRIVATE_CARBONCOMMON_TRACK$EVENTHANDLERCALLREF$EVENTREF$TCARBONWIDGET$$LONGINT () at carbonprivatecommon.inc:231 #2 0x96225143 in DispatchEventToHandlers ()
#3 0x9622457d in SendEventToEventTargetInternal () #4 0x962243e2 in SendEventToEventTargetWithOptions () #5 0x96304a90 in SendControlDefTrack ()
#6 0x963048b4 in HIView::ClickInternal ()
#7 0x962f1116 in HIView::ClickSelf ()
#8 0x96233771 in HIView::EventHandler ()
#9 0x96225143 in DispatchEventToHandlers ()
#10 0x9622457d in SendEventToEventTargetInternal () #11 0x96240ed2 in SendEventToEventTarget ()
#12 0x962ee72f in HIView::Click ()
#13 0x962ee591 in HandleClickAsHIView ()
#14 0x962edf21 in HandleWindowClick ()
#15 0x962edd13 in HandleMouseEvent ()
#16 0x962a970a in StandardWindowEventHandler ()
#17 0x96225143 in DispatchEventToHandlers ()
#18 0x9622457d in SendEventToEventTargetInternal () #19 0x96240ed2 in SendEventToEventTarget ()
#20 0x962530a8 in ToolboxEventDispatcherHandler () #21 0x962254fc in DispatchEventToHandlers ()
#22 0x9622457d in SendEventToEventTargetInternal () #23 0x96240ed2 in SendEventToEventTarget ()
#24 0x0064f0cd in TCARBONWIDGETSET__APPPROCESSMESSAGES (this=0x5ad42e0) at carbonobject.inc:486 #25 0x00021d76 in TAPPLICATION__HANDLEMESSAGE (this=0x5d08020) at ./include/application.inc:1113 #26 0x00022041 in TAPPLICATION__RUNLOOP (this=0x5d08020) at ./include/application.inc:1223 #27 0x0064e52d in EVENTLOOPEVENTHANDLER (INHANDLERCALLREF=0xbffff1f0, INEVENT=0x5b119a0, INUSERDATA=0x5ad42e0) at carbonobject.inc:126 #28 0x96225143 in DispatchEventToHandlers ()
#29 0x9622457d in SendEventToEventTargetInternal () #30 0x962243e2 in SendEventToEventTargetWithOptions () #31 0x96252d54 in ToolboxEventDispatcherHandler () #32 0x962254fc in DispatchEventToHandlers ()
#33 0x9622457d in SendEventToEventTargetInternal () #34 0x96240ed2 in SendEventToEventTarget ()
#35 0x962adb80 in ToolboxEventDispatcher ()
#36 0x962aa3da in RunApplicationEventLoop ()
#37 0x0064ef49 in TCARBONWIDGETSET__APPRUN (ALOOP=0x22000 <TAPPLICATION__RUNLOOP>, this=0x5ad42e0) at carbonobject.inc:434 #38 0x00021ff8 in TAPPLICATION__RUN (this=0x5d08020) at ./include/application.inc:1211 #39 0x0000288e in PASCALMAIN () at moneyplex.lpr:761 #40 0x00013fa5 in SYSTEM_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR () #41 0x00002192 in start ()

Thanks for all responses.

Reply by email

Roland Turcan
to dmitry boyarintsev

Thanks Dmitry,

But I have tried to add DebugLn lines around the line 231 to see and really the line 231 raises the exception.

How can I find which components has problem?

Thanks.

TRoland;

<<< 10.06.2009 15:43 - dmitry boyarintsev "" >>>
db> open carbonprivatecommon.inc at line 231

db> it feels like a control has been freed during a mouse event.

db> __________ Information from ESET Smart Security, version of virus db> signature database 4143 (20090610) __________

db> The message was checked by ESET Smart Security.

db> http://www.eset.com

Reply by email