httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25103] - Purpose of APR_PROGRAM and APR_PROGRAM_ENV is reversed in apr_proc_create
Date Mon, 01 Dec 2003 18:10:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25103

Purpose of APR_PROGRAM and APR_PROGRAM_ENV is reversed in apr_proc_create





------- Additional Comments From mcorcoran@spidersoftware.com  2003-12-01 18:10 -------

Hi,

Below is a exerpt from the truss output for both a vanilla Apache install, 
followed by a truss output with the patch suggested by you (Jeff T.).  They are 
both dying.  Interesting, the second one uses the empty environment array, and 
still dies.  Is there something obviouse in the truss output that would 
explains this?  FYI.  Everything seems to be fine if I use execv() instead, 
when env in NULL.


14250:  close(8)                                        = 0
14250:  fcntl(7, F_DUP2FD, 0x00000000)                  = 0
14250:  close(7)                                        = 0
14250:  sigaction(SIGCLD, 0x080478B8, 0x08047960)       = 0
14249:  brk(0x081E5ED0)                                 = 0
14249:  brk(0x081E7ED0)                                 = 0
14249:  brk(0x081E7ED0)                                 = 0
14249:  brk(0x081E9ED0)                                 = 0
14250:  execve("/usr/local/spidercache/apache_swac/bin/rotatelogs", 0x081A37A8, 
0x00000000)  argc = 3
14250:  open("/usr/lib/ld.so.1", O_RDONLY)              = 3
14250:  fxstat(2, 3, 0x08047D64)                        = 0
14250:  mmap(0x00000000, 236188, PROT_READ|PROT_EXEC, MAP_SHARED, 3, 0) = 
0xDFB10000
14250:  mmap(0x00000000, 212992, PROT_READ|PROT_EXEC, MAP_SHARED, 3, 0) = 
0xDFAD0000
14250:  mmap(0xDFAD0000, 134124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 
0) = 0xDFAD0000
14250:  munmap(0xDFAF1000, 61440)                       = 0
14250:  mmap(0xDFB00000, 12884, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED, 3, 131072) = 0xDFB00000
14249:  brk(0x081E9ED0)                                 = 0
14250:  open("/dev/zero", O_RDWR)                       = 4
14249:  brk(0x081EBED0)                                 = 0
14250:  mmap(0xDFB03000, 596, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xDFB03000
14250:  close(3)                                        = 0
14250:      Incurred fault #6, FLTBOUNDS  %pc = 0xDFADA23F
14250:        siginfo: SIGSEGV SEGV_MAPERR addr=0x00000007
14250:      Received signal #11, SIGSEGV [default]
14250:        siginfo: SIGSEGV SEGV_MAPERR addr=0x00000007
14249:  brk(0x081EBED0)                                 = 0
14249:  brk(0x081EDED0)                                 = 0
14249:  time()                                          = 1070300584
14249:  getpid()                                        = 14249 [14248]
14249:  open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 7
14249:  poll(0x08047754, 1, 10)                         = 1
14249:  read(7, "DBCFD4CFBA9B EC1 91E 5C9".., 32)       = 32
14249:  close(7)                                        = 0
14249:  getuid()                                        = 0 [0]
14249:  time()                                          = 1070300584
14249:  xstat
(2, "/usr/local/spidercache/apache_swac/conf/ssl/spiderbox.cert.cert", 
0x080458E8) = 0
14250:          *** process killed ***
14249:  open("/usr/local/spidercache/apache_swac/conf/ssl/spiderbox.cert.cert", 
O_RDONLY) = 7
14249:  close(7)                                        = 0
14249:  open("/usr/local/spidercache/apache_swac/conf/ssl/spiderbox.cert.cert", 
O_RDONLY) = 7
14249:  fstat64(7, 0x08045604)                          = 0




17061:  close(5)                                        = 0
17061:  close(8)                                        = 0
17061:  fcntl(7, F_DUP2FD, 0x00000000)                  = 0
17061:  close(7)                                        = 0
17061:  sigaction(SIGCLD, 0x080478B8, 0x08047960)       = 0
17061:  execve("/usr/local/spidercache/apache_swac/bin/rotatelogs", 0x081A37A8, 
0x080479DC)  argc = 3
17061:  open("/usr/lib/ld.so.1", O_RDONLY)              = 3
17060:  brk(0x081E7ED0)                                 = 0
17060:  brk(0x081E9ED0)                                 = 0
17061:  fxstat(2, 3, 0x08047D64)                        = 0
17061:  mmap(0x00000000, 236188, PROT_READ|PROT_EXEC, MAP_SHARED, 3, 0) = 
0xDFB10000
17061:  mmap(0x00000000, 212992, PROT_READ|PROT_EXEC, MAP_SHARED, 3, 0) = 
0xDFAD0000
17061:  mmap(0xDFAD0000, 134124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 
0) = 0xDFAD0000
17061:  munmap(0xDFAF1000, 61440)                       = 0
17061:  mmap(0xDFB00000, 12884, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED, 3, 131072) = 0xDFB00000
17061:  open("/dev/zero", O_RDWR)                       = 4
17061:  mmap(0xDFB03000, 596, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xDFB03000
17061:  close(3)                                        = 0
17060:  brk(0x081E9ED0)                                 = 0
17061:      Incurred fault #6, FLTBOUNDS  %pc = 0xDFADA23F
17061:        siginfo: SIGSEGV SEGV_MAPERR addr=0x00000007
17060:  brk(0x081EBED0)                                 = 0
17061:      Received signal #11, SIGSEGV [default]
17061:        siginfo: SIGSEGV SEGV_MAPERR addr=0x00000007
17060:  brk(0x081EBED0)                                 = 0
17060:  brk(0x081EDED0)                                 = 0
17060:  time()                                          = 1070301281
17060:  getpid()                                        = 17060 [17059]
17060:  open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 7
17060:  poll(0x08047754, 1, 10)                         = 1
17060:  read(7, "CDF5B1A59517D49483 = < &".., 32)       = 32
17060:  close(7)                                        = 0
17061:          *** process killed ***
17060:  getuid()                                        = 0 [0]
17060:  time()                                          = 1070301281
17060:  xstat
(2, "/usr/local/spidercache/apache_swac/conf/ssl/spiderbox.cert.cert", 
0x080458E8) = 0
17060:  open("/usr/local/spidercache/apache_swac/conf/ssl/spiderbox.cert.cert", 
O_RDONLY) = 7
17060:  close(7)                                        = 0
17060:  open("/usr/local/spidercache/apache_swac/conf/ssl/spiderbox.cert.cert", 
O_RDONLY) = 7
17060:  fstat64(7, 0x08045604)                          = 0
17060:  brk(0x081EDED0)                                 = 0

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message