crash with new process

View: New views
3 Messages — Rating Filter:   Alert me  

crash with new process

by John DeSoi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a Lisp library (Mac dylib linked to my plugin) that I would  
like to call from 4D. If I call the plugin from the application  
process, everything seems to work OK. I have also been able to use  
Lisp to call 4D entry points.

If I set the method editor to run my test in a new process, 4D  
crashes. Not always the first time I try it, but generally after the  
second or third run.

Any suggestions on how to resolve this? I'm a newbie in plugin  
development, so any advice or other references are appreciated.

Thanks,

John




Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000ffff0000
Crashed Thread:  18

Thread 18 Crashed:
0   ???                           0x22ffc298 0 + 587186840
1   ???                           0x22ffc174 0 + 587186548
2   ???                           0x235d71e4 0 + 593326564
3   ???                           0x2373944b 0 + 594777163
4   ???                           0x235d749a 0 + 593327258
5   ???                           0x244ce50d 0 + 609019149
6   ???                           0x230ddca6 0 + 588111014
7   ???                           0x237a0b36 0 + 595200822
8   ???                           0x235d77a2 0 + 593328034
9   ???                           0x244ce50d 0 + 609019149
10  ???                           0x230ddca6 0 + 588111014
11  ???                           0x2386e444 0 + 596042820
12  ???                           0x2373840a 0 + 594773002
13  ???                           0x2373879a 0 + 594773914
14  ???                           0x244ce854 0 + 609019988
15  ???                           0x2387d4d3 0 + 596104403
16  ???                           0x238b09c4 0 + 596314564

Thread 18 crashed with X86 Thread State (32-bit):
   eax: 0xffff0000  ebx: 0x0000000c  ecx: 0x22fc0123  edx: 0x245cd3e3
   edi: 0xffff0004  esi: 0x24603f6b  ebp: 0x245f4208  esp: 0xffff0004
    ss: 0x0000001f  efl: 0x00010287  eip: 0x22ffc298   cs: 0x00000017
    ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
   cr2: 0xffff0000




John DeSoi, Ph.D.




**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/     
   

    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: crash with new process

by aparajita :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Any suggestions on how to resolve this? I'm a newbie in plugin  
> development, so any advice or other references are appreciated.

Turn symbols on when you generate the plugin, that way the stack trace  
in the crash log will show you if and where it was in your plugin when  
the crash occurred.

Regards,

    Aparajita
    www.aparajitaworld.com

    "If you dare to fail, you are bound to succeed."
    - Sri Chinmoy   |   www.srichinmoy.org


**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/     
   

    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: crash with new process

by John DeSoi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Mar 8, 2008, at 10:00 AM, Aparajita Fishman wrote:

> Turn symbols on when you generate the plugin, that way the stack  
> trace in the crash log will show you if and where it was in your  
> plugin when the crash occurred.

Can you give me a hint on what XCode 3.0 setting I need to change? I  
tried a few but the stack trace still looks the same.

Thanks,


John DeSoi, Ph.D.




**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/     
   

    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************

LightInTheBox - Buy quality products at wholesale price