Jeff,
Compile option.
export CC="purify -follow-child-processes=yes gcc"
Here is the output of purify.
**** Purify instrumented /servers/run/apache/bin/httpd (pid 8850) ****
UMR: Uninitialized memory read:
* This is occurring while in thread 1074225280:
SHA1_Update [libcrypto.a]
* Reading 1 byte from 0x8f7293f in the heap.
* Address 0x8f7293f is 31 bytes into a malloc'd block at 0x8f72920 of 32
bytes.
* This block was allocated from thread 1074225280:
malloc [rtlib.o]
default_malloc_ex [libcrypto.a]
**** Purify instrumented /servers/run/apache/bin/httpd (pid 8850) ****
COR: Fatal core dump:
* This is occurring while in thread 1074225280:
_p2154static [rtlib.o]
detach [http_main.c:3479]
standalone_main [http_main.c:5346]
main [http_main.c:5767]
__libc_start_main [libc.so.6]
_start [crt1.o]
* Received signal 11 (SIGSEGV - Segmentation fault)
* Handler function: SIG_DFL
* Faulting address = 0xbc
* Signal mask: (SIGQUIT | SIGBUS | SIGFPE | SIGUSR1 | SIGSEGV | \
SIGUSR2 | SIGALRM | SIGTERM | SIGSTKFLT | SIGCHLD | SIGCONT | \
SIGSTOP | SIGSTP | SIGTTIN | SIGTTOU | SIGURG | SIGXCPU | SIGXFSZ | \
SIGVTALRM | SIGPROF | SIGWINCH | SIGIO | SIGPWR | SIGReserved32 | \
SIGReserved33 | SIGReserved37 | SIGReserved39 | SIGReserved40 | \
SIGReserved42 | SIGReserved44 | SIGReserved46 | SIGReserved47 | \
SIGReserved48 | SIGReserved49 | SIGReserved50 | SIGReserved51 | \
SIGReserved52 | SIGReserved53 | SIGReserved54 | SIGReserved55 | \
SIGReserved56 | SIGReserved57 | SIGReserved58 | SIGReserved59 | \
SIGReserved60 | SIGReserved61 | SIGReserved62)
* Pending signals: (SIGINT | SIGQUIT | SIGTRAP | SIGBUS | SIGFPE | \
SIGUSR1 | SIGSEGV | SIGPIPE | SIGReserved36 | SIGReserved39 | \
SIGReserved42 | SIGReserved43 | SIGReserved44)
**** Purify instrumented /servers/run/apache/bin/httpd (pid 8850) ****
Current file descriptors in use: 7
FIU: file descriptor 0: <stdin>
FIU: file descriptor 1: <stdout>
FIU: file descriptor 2: "/servers/run/logs/error_log", O_WRONLY | O_APPEND |
O_CREAT
* Duplication of file descriptor 15.
* File info: -rw-rw-r-- 1 nitesh nitesh 10105 Mar 11 10:49
* File position: 10105
* This file descriptor was allocated from:
dup2 [rtlib.o]
ap_open_logs [http_log.c:230]
main [http_main.c:5763]
__libc_start_main [libc.so.6]
_start [crt1.o]
FIU: file descriptor 15: "/servers/run/logs/access_log", O_WRONLY | O_APPEND
| O_CREAT
* Duplication of file descriptor 3.
* File info: -rw-rw-r-- 1 nitesh nitesh 10105 Mar 11 10:49
* File position: 10105
* This file descriptor was allocated from:
fcntl [rtlib.o]
ap_slack [ap_slack.c:49]
ap_popenf_ex [alloc.c:2082]
open_config_log [mod_log_config.c:1069]
open_multi_logs [mod_log_config.c:1115]
init_config_log [mod_log_config.c:1143]
FIU: file descriptor 16: <unknown>
FIU: file descriptor 26: <reserved for Purify internal use>
FIU: file descriptor 27: <reserved for Purify internal use>
Regards
Nitesh Naik
----- Original Message -----
From: "Jeff Trawick" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 11, 2005 1:32 AM
Subject: Re: how to avoid overrun in apache
> On Thu, 10 Mar 2005 19:57:42 +0530, Nitesh Naik <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > While running rational purify apache 1.3.33 crashes.
>
> where does it crash? (show stack trace)
>