stsh (was: Scripting languages and IDEs)

Damien Pollet damien.pollet at gmail.com
Sat Aug 26 21:23:08 UTC 2006


On 8/26/06, Marcel Weiher <marcel at metaobject.com> wrote:
> Odd.  I've tested it on both Intel and PPC Macs with various OSes.,
> but maybe there was something wrong with my tests.  Can you give me a
> few more details on the crash?

This time I removed the old binary and Frameworks, then installed the 0.1 ones.

dpollet at keima stsh-0.1 $ stsh scripts/fontnames.stsh
dyld: Library not loaded:
@executable_path/../Frameworks/MPWShellScriptKit.framework/Versions/A/MPWShellScriptKit
  Referenced from: /Users/dpollet/bin/stsh
  Reason: image not found
Trace/BPT trap

So I put back MPWShellScriptKit.framework from the old archive (it's
not in the 0.1) but then I get a bus error. Here's what gdb has to
say:

(gdb) run scripts/fontnames.stsh
Starting program: /usr/local/bin/stsh scripts/fontnames.stsh
Reading symbols for shared libraries
.....................................................................
done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000003
0x002972d8 in -[MPWFakedReturnMethodSignature initWithSignature:]
(self=0x40cd10, _cmd=0x2a6784, aSignature=0x40c950) at
/Volumes/User/marcel/programming/Kits/MPWFoundation/Collections.subproj/MPWFakedReturnMethodSignature.m:78
78      /Volumes/User/marcel/programming/Kits/MPWFoundation/Collections.subproj/MPWFakedReturnMethodSignature.m:
No such file or directory.
        in /Volumes/User/marcel/programming/Kits/MPWFoundation/Collections.subproj/MPWFakedReturnMethodSignature.m
(gdb) bt
#0  0x002972d8 in -[MPWFakedReturnMethodSignature initWithSignature:]
(self=0x40cd10, _cmd=0x2a6784, aSignature=0x40c950) at
/Volumes/User/marcel/programming/Kits/MPWFoundation/Collections.subproj/MPWFakedReturnMethodSignature.m:78
#1  0x9272f1b0 in -[NSObject(NSForwardInvocation) forward::] ()
#2  0x90a51ba1 in _objc_msgForward ()
#3  0x0008522e in -[MPWStsh initWithArgs:] (self=0xd9000,
_cmd=0x87a48, args=0x409290) at
/Volumes/User/marcel/programming/Kits/MPWShellScriptKit/MPWStsh.m:72
#4  0x00084d46 in +[MPWStsh runCommand:withArgs:] (self=0x893e0,
_cmd=0x87ab8, commandName=0x4083e0, args=0x409290) at
/Volumes/User/marcel/programming/Kits/MPWShellScriptKit/MPWStsh.m:26
#5  0x00084ed1 in +[MPWStsh runWithArgs:] (self=0x893e0, _cmd=0x87738,
args=0x407830) at
/Volumes/User/marcel/programming/Kits/MPWShellScriptKit/MPWStsh.m:37
#6  0x00002ef6 in main (argc=2, argv=0xbffff710) at
/Volumes/User/marcel/programming/Projects/stsh/stsh_main.m:14
(gdb)

> > PS. not really related... what's the status of your Squeak /
> > Objective-C bridge ? there are a couple cocoa bridges out there, I'm
> > not sure which is the most advanced/maintained.
>
> I think the one that Todd Blanchard worked on is the most recent and
> most comprehensive.

OK thanks :)


-- 
 Damien Pollet
 type less, do more



More information about the Squeak-dev mailing list