You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Artiom Morozov <ap...@csp.org.by> on 2002/03/04 09:40:39 UTC

Re: general/9935: rotatelog generates coredump

see it below. sorry for misleading report - rotatelogs crashes 
immediately ;-(

--------(cut)---------

execve("./rotatelogs", ["./rotatelogs", "/tmp/11", "11"], [/* 25 vars 
*/]) = 0
uname({sys="Linux", node="webhoststation", ...}) = 0
brk(0)                                  = 0x804a8e0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) =
0x40017000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/usr/local/apache3/lib/i686/mmx/libaprutil.so.0", O_RDONLY) = -1 
ENOENT
(No such file or directory)
stat64("/usr/local/apache3/lib/i686/mmx", 0xbfffec6c) = -1 ENOENT (No 
such file
or directory)
open("/usr/local/apache3/lib/i686/libaprutil.so.0", O_RDONLY) = -1 
ENOENT (No
such file or directory)
stat64("/usr/local/apache3/lib/i686", 0xbfffec6c) = -1 ENOENT (No such 
file or
directory)
open("/usr/local/apache3/lib/mmx/libaprutil.so.0", O_RDONLY) = -1 
ENOENT (No
such file or directory)
stat64("/usr/local/apache3/lib/mmx", 0xbfffec6c) = -1 ENOENT (No such 
file or
directory)
open("/usr/local/apache3/lib/libaprutil.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PB\0\000"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=287948, ...}) = 0
old_mmap(NULL, 66088, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x40018000
mprotect(0x40027000, 4648, PROT_NONE)   = 0
old_mmap(0x40027000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3,
0xe000) = 0x40027000
close(3)                                = 0
open("/usr/local/apache3/lib/libapr.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320v\0"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=613341, ...}) = 0
old_mmap(NULL, 120016, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x40029000
mprotect(0x40045000, 5328, PROT_NONE)   = 0
old_mmap(0x40045000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3,
0x1b000) = 0x40045000
close(3)                                = 0
open("/usr/local/apache3/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such 
file or
directory)
open("/usr/local/lib/i686/mmx/libm.so.6", O_RDONLY) = -1 ENOENT (No 
such file
or directory)
stat64("/usr/local/lib/i686/mmx", 0xbfffec4c) = -1 ENOENT (No such file 
or
directory)
open("/usr/local/lib/i686/libm.so.6", O_RDONLY) = -1 ENOENT (No such 
file or
directory)
stat64("/usr/local/lib/i686", 0xbfffec4c) = -1 ENOENT (No such file or
directory)
open("/usr/local/lib/mmx/libm.so.6", O_RDONLY) = -1 ENOENT (No such 
file or
directory)
stat64("/usr/local/lib/mmx", 0xbfffec4c) = -1 ENOENT (No such file or
directory)
open("/usr/local/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=18037, ...}) = 0
old_mmap(NULL, 18037, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40047000
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320H\0"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=625218, ...}) = 0
old_mmap(NULL, 142580, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x4004c000
mprotect(0x4006e000, 3316, PROT_NONE)   = 0
old_mmap(0x4006e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3,
0x21000) = 0x4006e000
close(3)                                = 0
open("/usr/local/apache3/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No 
such
file or directory)
open("/usr/local/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such 
file or
directory)
open("/lib/libcrypt.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\17\0\000"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=85123, ...}) = 0
old_mmap(NULL, 183900, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x4006f000
mprotect(0x40074000, 163420, PROT_NONE) = 0
old_mmap(0x40074000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3,
0x4000) = 0x40074000
old_mmap(0x40075000, 159324, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40075000
close(3)                                = 0
open("/usr/local/apache3/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No 
such file
or directory)
open("/usr/local/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file 
or
directory)
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20?\0\000"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=436456, ...}) = 0
old_mmap(NULL, 89628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x4009c000
mprotect(0x400af000, 11804, PROT_NONE)  = 0
old_mmap(0x400af000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3,
0x12000) = 0x400af000
old_mmap(0x400b0000, 7708, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400b0000
close(3)                                = 0
open("/usr/local/apache3/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No 
such file
or directory)
open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\36\0\000"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=66009, ...}) = 0
old_mmap(NULL, 12756, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x400b2000
mprotect(0x400b5000, 468, PROT_NONE)    = 0
old_mmap(0x400b5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3,
0x2000) = 0x400b5000
close(3)                                = 0
open("/usr/local/apache3/lib/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No 
such file
or directory)
open("/usr/local/lib/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file 
or
directory)
open("/usr/lib/libgdbm.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\24"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=29050, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) =
0x400b6000
old_mmap(NULL, 24260, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x400b7000
mprotect(0x400bc000, 3780, PROT_NONE)   = 0
old_mmap(0x400bc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3,
0x4000) = 0x400bc000
close(3)                                = 0
open("/usr/local/apache3/lib/libexpat.so.0", O_RDONLY) = -1 ENOENT (No 
such
file or directory)
open("/usr/local/lib/libexpat.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p&\0\000"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=288445, ...}) = 0
old_mmap(NULL, 122648, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x400bd000
mprotect(0x400d7000, 16152, PROT_NONE)  = 0
old_mmap(0x400d7000, 16384, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED, 3,
0x19000) = 0x400d7000
close(3)                                = 0
open("/usr/local/apache3/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT 
(No such
file or directory)
open("/usr/local/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such 
file or
directory)
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pP\0\000"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=554027, ...}) = 0
old_mmap(NULL, 90616, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x400db000
mprotect(0x400ea000, 29176, PROT_NONE)  = 0
old_mmap(0x400ea000, 32768, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED, 3,
0xe000) = 0x400ea000
close(3)                                = 0
open("/usr/local/apache3/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such 
file or
directory)
open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\310"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5808375, ...}) = 0
old_mmap(NULL, 1301256, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x400f2000
mprotect(0x40227000, 35592, PROT_NONE)  = 0
old_mmap(0x40227000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED, 3,
0x134000) = 0x40227000
old_mmap(0x4022c000, 15112, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4022c000
close(3)                                = 0
open("/usr/local/apache3/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No 
such
file or directory)
open("/usr/local/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such 
file or
directory)
open("/usr/lib/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\23\0\000"..., 
1024) =
1024
fstat64(3, {st_mode=S_IFREG|0644, st_size=196174, ...}) = 0
old_mmap(NULL, 31468, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x40230000
mprotect(0x40237000, 2796, PROT_NONE)   = 0
old_mmap(0x40237000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3,
0x6000) = 0x40237000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) =
0x40238000
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

На 2002.02.24 18:48 trawick@apache.org написал:
> [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!     ]
> 
> 
> Synopsis: rotatelog generates coredump
> 
> State-Changed-From-To: open-feedback
> State-Changed-By: trawick
> State-Changed-When: Sun Feb 24 08:48:22 PST 2002
> State-Changed-Why:
> Thanks for your report.
> 
> Since the coredump was not exactly enlightening, the
> preferred backup plan is for you to start strace on the
> rotatelogs process after rotatelogs has been started but
> before the first request arrives.  Please post the last
> 30 or so lines of the strace output so we can get an idea
> of what sort of processing is being performed by rotatelogs
> at the time of the segfault.
> 
> Procedure:
> start apache
> "ps ax | grep rotatelogs" to find the PID of rotatelogs
> strace -p PID >rotatelogs.trace 2>&1
> issue a request which will cause rotatelogs to bomb
> hopefully rotatelogs.trace will have some helpful information
> 
> Thanks!
> (rotatelogs works for me on RedHat 6.2 -- 2.2 kernel with egcs 2.91)
> 

Re: general/9935: rotatelog generates coredump

Posted by Artiom Morozov <ap...@csp.org.by>.
Jeff,

	No idea. No messages. ldd -r ./rotatelogs coredumps after 
reporting libraries (all of them loaded successfully). I have quite 
fresh version of binutils (of Dec 8th 2001) and also have apache 2.0.28 
running successfully. I'm lost. No idea where to look further =(((

îÁ 2002.03.05 16:59 Jeff Trawick ÎÁÐÉÓÁÌ:
> Artiom Morozov <ap...@csp.org.by> writes:
> 
> > see it below. sorry for misleading report - rotatelogs crashes
> > immediately ;-(
> 
> >From your backtrace, I'd guess that rotatelogs is never getting past
> the phase where shared libraries are loaded.  In other words, it never
> gets to our code because of some build problem.
> 
> What happens if you run rotatelogs interactively?  Maybe there is an
> error message from the loader which helps with the problem.
> 
> Thanks!
  ----
Artiom

Re: general/9935: rotatelog generates coredump

Posted by Jeff Trawick <tr...@attglobal.net>.
Artiom Morozov <ap...@csp.org.by> writes:

> see it below. sorry for misleading report - rotatelogs crashes
> immediately ;-(

>From your backtrace, I'd guess that rotatelogs is never getting past
the phase where shared libraries are loaded.  In other words, it never
gets to our code because of some build problem.

What happens if you run rotatelogs interactively?  Maybe there is an
error message from the loader which helps with the problem.

Thanks!

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...