You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Derek Smith <de...@motortrak.com> on 1999/09/14 12:04:13 UTC
general/5007: ScriptLog directove not working
>Number: 5007
>Category: general
>Synopsis: ScriptLog directove not working
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Sep 14 03:10:01 PDT 1999
>Last-Modified:
>Originator: derek@motortrak.com
>Organization:
apache
>Release: 1.3.6
>Environment:
solaris 2.6
gcc 2.8.1
>Description:
I have been trying to implement the ScriptLog directive of mod_cgi and am having difficulty. The apache child procs can create the file and appear to be trying writing to it (traced the processes) but doesn't manage to write anything. I have included the section of the trace where the child id trying to open the file and write the contents of the 500 error to it. The file is writeable globally is in /tmp and owner/group of the child processes.
Here's the relevant part of the trace :-
5996: _exit(2)
5976: read(7, 0x081427B4, 4096) = 0
5976: time() = 937302953
5976: fstat64(16, 0x0803FA20) = 0
5976: brk(0x08820040) = 0
5976: brk(0x08822040) = 0
5976: ioctl(16, TCGETA, 0x0803F9F4) Err#25 ENOTTY
5976: write(16, " [ T u e S e p 1 4 ".., 140) = 140
5976: xstat(2, "/usr/local/etc/httpd/logs/script_log", 0x08041B54) = 0
5976: open("/usr/local/etc/httpd/logs/script_log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 5
5976: fcntl(5, F_DUPFD, 0x0000000F) = 269
5976: close(5) = 0
5976: read(9, " s y n t a x e r r o r".., 4096) = 703
5976: read(9, 0x081A649C, 4096) = 0
5976: poll(0x08045B6C, 1, 0) = 0
5976: write(3, " H T T P / 1 . 1 5 0 0".., 777) = 777
5976: time() = 937302953
5976: time() = 937302953
5976: write(17, " 1 9 3 . 2 4 3 . 2 2 7 .".., 153) = 153
5976: shutdown(3, 1) = 0
5978: accept(15, 0x08047CB4, 0x08047CD4) (sleeping...)
26846: poll(0x08045C6C, 0, 1000) = 0
26846: time() = 937302953
26846: waitid(P_ALL, 0, 0x08047C50, WEXITED|WTRAPPED|WNOHANG) = 0
5976: poll(0x08045978, 1, 2000) = 1
5976: read(3, 0x08047A9C, 512) = 0
5976: close(3) = 0
5976: sigaction(SIGUSR1, 0x08047C08, 0x08047C58) = 0
5976: close(9) = 0
5976: close(7) = 0
5976: waitid(P_PID, 5996, 0x08047BC0, WEXITED|WTRAPPED|WNOHANG) = 0
26846: poll(0x08045C6C, 0, 1000) = 0
Thanks in advance for your help,
Derek.
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]