[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with a CGI script
From: |
Benedikt Stefansson |
Subject: |
Problems with a CGI script |
Date: |
Sat, 25 Jul 1998 19:34:45 -0700 |
Marcus, y'all,
I've been writing some CGI scripts to allow me to interface with my
simulations and view results on the web, but the sophstication of Swarm
1.1. is getting me into trouble.
It seems that the web server (Apache) executes the CGI script (a Perl
program) as user nobody. However, when the Perl script calls the Swarm
simulation (invoking batch mode of course), the program crashes on the
first invocation of the -create: setC: method in String.m, called by the
Archiver, line String.m:65. I can't debug this CGI invoked session
directly of course, but my hunch is that assert() fails because cstring
is a null pointer, where in this case it should contain the home
directory of the user. User nobody has a home, but for some reason, in
this case, the environment variable isn't defined.
Any bright ideas on how I can get around this problem? I'd prefer
something that didn't require a patch to the Swarm source code, since
I'm relying on binary installs right now.
Regards,
-Benedikt
--
----------------
Benedikt Stefansson address@hidden
Department of Economics, UCLA Fax. (310) 825-9528
Los Angeles, CA 90095-1477 Tel. (310) 825-1777
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- Problems with a CGI script,
Benedikt Stefansson <=