osascript bug?
osascript bug?
- Subject: osascript bug?
- From: Paul Trilsbeek <email@hidden>
- Date: Mon, 15 Apr 2002 16:18:51 +0200
Hi,
I'm trying to call the osascript command from php, but I think there
is a bug in the osascript command which causes it to crash in certain
cases. I don't know exactly what the problem is, but it seems to have
something to do with user privileges and initializing some image
routines (why does it need those btw?).
When I call the command from php as the www user (default user for
apache) it crashes. When I change the apache user to the same one as
I'm currently logged in as, it works.
So far so good, but now when I call two of them at the same time (for
example when I have two web clients accessing at the same time), one
of the processes crashes, the other one works fine. Here's what I get
in the osascript.crash.log:
Date/Time: 2002-04-15 10:57:20 +0200
OS Version: 10.1.3 (Build 5Q110)
Command: osascript
PID: 4445
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000008
Thread 0:
#0 0x700056b0 in _spin_lock_try
#1 0x70197ecc in CFMessagePortCreateRunLoopSource
#2 0x7319e1bc in INIT_Processes
#3 0x7319b1e8 in _InitHLTB
#4 0x41108ac0 in call_image_init_routines
#5 0x41112b0c in _dyld_make_delayed_module_initializer_calls
#6 0x00003334 in 0x3334
#7 0x000031b4 in 0x31b4
#8 0x00003128 in 0x3128
Folks at Apple, is this a bug? It would also be nice if there was
some feedback of an error occurring or so. Now it just returns
nothing, and the only way you can tell what happened is turn on crash
reporting and look in the crash log.
Best regards,
Paul
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.