[Pythonmac-SIG] What is a bus error, anyway?

Frans H. Schippers F.Schippers@inter.NL.net
Wed, 17 Jul 2002 22:03:12 +0200


At 10:43 +0200 16-07-2002, Jack Jansen wrote:
>
>But, that aside: what exactly are you doing that you get a bus error? If you're running python twice from the commandline there should be absolutely no problem. If you try to run Python.app twice by double-clicking on a second .py script while the first one is still running it doesn't work, but I woulnd't expect a bus error (I would expect nothing to happen).


Jack

Although i don't understand what is happening i do the following things:

localhost% ls -l /usr/local/bin/python
lrwxrwxrwx  1 ronald  staff  46 Jun 21 15:50 /usr/local/bin/python -> /Applications/Python.app/Contents/MacOS/python

localhost% ls -l /Applications/Python.app/Contents/MacOS/python
-rwxr-xr-x  1 frans  admin  19576 Jul 12 16:01 /Applications/Python.app/Contents/MacOS/python

localhost% python
Pythonw 2.3a0 (#1, Jul 12 2002, 13:20:46)
[GCC 2.95.2 19991024 (release)] on darwin
Type "copyright", "credits" or "license" for more information.
>>>

Now in an other terminal window (same user frans)
localhost% python
zsh: bus error  python

Now in yet an other terminal window  (same user frans)
localhost% /Applications/Python.app/Contents/MacOS/python
Pythonw 2.3a0 (#1, Jul 12 2002, 13:20:46)
[GCC 2.95.2 19991024 (release)] on darwin
Type "copyright", "credits" or "license" for more information.
>>>

So if i invoke python twice though the symbolic link it results in bus errors.

Hope you can explain it.

Frans
-- 
X|support bv             mailto:xsupport@inter.nl.net