Xojo Conferences
XDCMay2019MiamiUSA

[MBS] SoftDeclare crashes if function not present (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Webkit in version 4
Next thread: [MBS] DiscRecording Audio quality


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] SoftDeclare crashes if function not present   -   Daniel Chiaramello
   Re: [MBS] SoftDeclare crashes if function not present   -   Daniel Chiaramello
   Re: [MBS] SoftDeclare crashes if function not present   -   Christian Schmitz

[MBS] SoftDeclare crashes if function not present
Date: 20.01.04 14:03 (Tue, 20 Jan 2004 14:03:22 +0100)
From: Daniel Chiaramello
The following sample code crashes on MacOS 10.2.8 (not tested on 10.3.2). Of
course, a workaround is to use correct function names :-)

dim s as SoftDeclareMBS

s=new SoftDeclareMBS
if s.LoadLibary("Carbon.Framework") then
if s.LoadFunction("thisisnotagoodfunctionname") then // crashes there
// nothing
end if
end if

Crash log:

**********

Date/Time: 2004-01-20 13:57:47 +0100
OS Version: 10.2.8 (Build 6R73)
Host: Ordinateur-Mac.local.

Command: My Application (Mac OS X).debug
PID: 1551

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000020

Thread 0 Crashed:
#0 0x9022aef0 in FindExportInfo
#1 0x9024adc4 in PCFragFindExportInfo
#2 0x9024f268 in FindSymbol
#3 0x004ff238 in 0x4ff238
#4 0x0019dbb4 in 0x19dbb4
#5 0x0019cb44 in 0x19cb44
#6 0x00212e3c in 0x212e3c
#7 0x001cbdbc in 0x1cbdbc
#8 0x001c1ab4 in 0x1c1ab4
#9 0x001c18fc in 0x1c18fc
#10 0x001c188c in 0x1c188c
#11 0x0025f6cc in 0x25f6cc
#12 0x001d8858 in 0x1d8858
#13 0x0029a108 in 0x29a108
#14 0x00235938 in 0x235938
#15 0x00235298 in 0x235298
#16 0x00233680 in 0x233680
#17 0x002338d4 in 0x2338d4
#18 0x002300a0 in 0x2300a0
#19 0x001a40cc in 0x1a40cc
#20 0x0019c098 in 0x19c098
#21 0x902790c4 in CCFM_LaunchApplication
#22 0x0000362c in main
#23 0x0000329c in _start
#24 0x0000311c in start

Thread 1:
#0 0x9000508c in syscall
#1 0x90515d0c in BSD_waitevent
#2 0x905156dc in CarbonSelectThreadFunc
#3 0x90020c28 in _pthread_body

Thread 2:
#0 0x9003e9a8 in semaphore_wait_signal_trap
#1 0x9003e7c4 in _pthread_cond_wait
#2 0x9051dbf0 in CarbonOperationThreadFunc
#3 0x90020c28 in _pthread_body

Thread 3:
#0 0x9003e9a8 in semaphore_wait_signal_trap
#1 0x9003e7c4 in _pthread_cond_wait
#2 0x905259e0 in CarbonInetOperThreadFunc
#3 0x90020c28 in _pthread_body

PPC Thread State:
srr0: 0x9022aef0 srr1: 0x0000f030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x9024adc4 ctr: 0x00000000 mq: 0x00000000
r0: 0xbffff3e4 r1: 0xbffff310 r2: 0x90282d58 r3: 0x004e6d10
r4: 0xbffff3d0 r5: 0xbffff3e4 r6: 0xbffff4c4 r7: 0xbffff4c0
r8: 0x00000009 r9: 0x00000000 r10: 0x00000067 r11: 0x00000000
r12: 0xa022429c r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000
r20: 0xbffffe74 r21: 0xffffffff r22: 0xbffffc20 r23: 0x00000000
r24: 0x02429988 r25: 0x0242c410 r26: 0x02434128 r27: 0x004e6d10
r28: 0xbffff3e4 r29: 0xbffff4c0 r30: 0xbffff4c4 r31: 0x9024f208

Re: [MBS] SoftDeclare crashes if function not present
Date: 20.01.04 14:22 (Tue, 20 Jan 2004 14:22:49 +0100)
From: Daniel Chiaramello
Well, sorry... It seems it crashes only if I am using the RB debugger at the
same time...

Daniel

----- Original Message -----
From: "Daniel Chiaramello" <<email address removed>>
To: <<email address removed>>
Sent: Tuesday, January 20, 2004 2:03 PM
Subject: [MBS] SoftDeclare crashes if function not present

> The following sample code crashes on MacOS 10.2.8 (not tested on 10.3.2).
Of
> course, a workaround is to use correct function names :-)
>
> dim s as SoftDeclareMBS
>
> s=new SoftDeclareMBS
> if s.LoadLibary("Carbon.Framework") then
> if s.LoadFunction("thisisnotagoodfunctionname") then // crashes there
> // nothing
> end if
> end if
>
> Crash log:
>
> **********
>
> Date/Time: 2004-01-20 13:57:47 +0100
> OS Version: 10.2.8 (Build 6R73)
> Host: Ordinateur-Mac.local.
>
> Command: My Application (Mac OS X).debug
> PID: 1551
>
> Exception: EXC_BAD_ACCESS (0x0001)
> Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000020
>
> Thread 0 Crashed:
> #0 0x9022aef0 in FindExportInfo
> #1 0x9024adc4 in PCFragFindExportInfo
> #2 0x9024f268 in FindSymbol
> #3 0x004ff238 in 0x4ff238
> #4 0x0019dbb4 in 0x19dbb4
> #5 0x0019cb44 in 0x19cb44
> #6 0x00212e3c in 0x212e3c
> #7 0x001cbdbc in 0x1cbdbc
> #8 0x001c1ab4 in 0x1c1ab4
> #9 0x001c18fc in 0x1c18fc
> #10 0x001c188c in 0x1c188c
> #11 0x0025f6cc in 0x25f6cc
> #12 0x001d8858 in 0x1d8858
> #13 0x0029a108 in 0x29a108
> #14 0x00235938 in 0x235938
> #15 0x00235298 in 0x235298
> #16 0x00233680 in 0x233680
> #17 0x002338d4 in 0x2338d4
> #18 0x002300a0 in 0x2300a0
> #19 0x001a40cc in 0x1a40cc
> #20 0x0019c098 in 0x19c098
> #21 0x902790c4 in CCFM_LaunchApplication
> #22 0x0000362c in main
> #23 0x0000329c in _start
> #24 0x0000311c in start
>
> Thread 1:
> #0 0x9000508c in syscall
> #1 0x90515d0c in BSD_waitevent
> #2 0x905156dc in CarbonSelectThreadFunc
> #3 0x90020c28 in _pthread_body
>
> Thread 2:
> #0 0x9003e9a8 in semaphore_wait_signal_trap
> #1 0x9003e7c4 in _pthread_cond_wait
> #2 0x9051dbf0 in CarbonOperationThreadFunc
> #3 0x90020c28 in _pthread_body
>
> Thread 3:
> #0 0x9003e9a8 in semaphore_wait_signal_trap
> #1 0x9003e7c4 in _pthread_cond_wait
> #2 0x905259e0 in CarbonInetOperThreadFunc
> #3 0x90020c28 in _pthread_body
>
> PPC Thread State:
> srr0: 0x9022aef0 srr1: 0x0000f030 vrsave: 0x00000000
> xer: 0x00000000 lr: 0x9024adc4 ctr: 0x00000000 mq: 0x00000000
> r0: 0xbffff3e4 r1: 0xbffff310 r2: 0x90282d58 r3: 0x004e6d10
> r4: 0xbffff3d0 r5: 0xbffff3e4 r6: 0xbffff4c4 r7: 0xbffff4c0
> r8: 0x00000009 r9: 0x00000000 r10: 0x00000067 r11: 0x00000000
> r12: 0xa022429c r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
> r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000
> r20: 0xbffffe74 r21: 0xffffffff r22: 0xbffffc20 r23: 0x00000000
> r24: 0x02429988 r25: 0x0242c410 r26: 0x02434128 r27: 0x004e6d10
> r28: 0xbffff3e4 r29: 0xbffff4c0 r30: 0xbffff4c4 r31: 0x9024f208
>
> --
> Web8REALbasic mailing list
> <email address removed>
> http://mail.huynh.de/mailman/listinfo/web8realbasic

Re: [MBS] SoftDeclare crashes if function not present
Date: 20.01.04 15:43 (Tue, 20 Jan 2004 15:43:58 +0100)
From: Christian Schmitz
Daniel Chiaramello <<email address removed>> wrote:

> The following sample code crashes on MacOS 10.2.8 (not tested on 10.3.2). Of
> course, a workaround is to use correct function names :-)

Fixed for 4.0pr5.

Mfg
Christian