monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monit 4.8 segfaults on Redhat EL4


From: Mike Jackson
Subject: Re: monit 4.8 segfaults on Redhat EL4
Date: Thu, 4 May 2006 13:58:00 -0700

Unfortunately i don't have access to any opteron based server ... in the > attachment is the patch which may fix the problem (not tested).

Sorry, no dice. Applied it to a freshly unpacked src dir, and the gdb results look the same:

(gdb) break log_log
Breakpoint 1 at 0x408fa0: file log.c, line 360.
(gdb) run
Starting program: /usr/local/src/monit-4.8/monit
[Thread debugging using libthread_db enabled]
[New Thread 182894082848 (LWP 6153)]
[Switching to Thread 182894082848 (LWP 6153)]

Breakpoint 1, log_log (priority=6, s=0x42afa0 "Starting %s daemon with http interface at [%s:%d]\n", ap=0x7fbffff6c0) at log.c:360
360     static void log_log(int priority, const char *s, va_list ap) {
(gdb) n
366       ASSERT(s);
(gdb) n
360     static void log_log(int priority, const char *s, va_list ap) {
(gdb) n
366       ASSERT(s);
(gdb) n
369       va_copy(ap_copy, ap);
(gdb) n
372       LOCK(log_mutex)
(gdb) n
369       va_copy(ap_copy, ap);
(gdb) n
372       LOCK(log_mutex)
(gdb) n
374         vfprintf(stderr, s, ap_copy);
(gdb) n
Starting monit daemon with http interface at [*:2812]
378         fflush(stderr);
(gdb) n
379       END_LOCK;
(gdb) n
381       if(Run.dolog) {
(gdb) n
384         if(Run.use_syslog) {
(gdb) n
385           LOCK(log_mutex)
(gdb) n
387             vsyslog(priority, s, ap_copy);
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x0000003106b6fd00 in strlen () from /lib64/tls/libc.so.6
(gdb) bt
#0  0x0000003106b6fd00 in strlen () from /lib64/tls/libc.so.6
#1  0x0000003106b428cc in vfprintf () from /lib64/tls/libc.so.6
#2  0x0000003106bc1e55 in vsyslog () from /lib64/tls/libc.so.6
#3 0x000000000040913b in log_log (priority=6, s=0x42afa0 "Starting %s daemon with http interface at [%s:%d]\n", ap=Variable "ap" is not available.
) at log.c:387
#4  0x0000000000409388 in LogInfo (s=Variable "s" is not available.
) at log.c:247
#5  0x000000000040b362 in main (argc=Variable "argc" is not available.
) at monitor.c:460




reply via email to

[Prev in Thread] Current Thread [Next in Thread]