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: Jan-Henrik Haukeland
Subject: Re: monit 4.8 segfaults on Redhat EL4
Date: Thu, 4 May 2006 23:35:23 +0200

On 4. mai. 2006, at 22.37, Mike Jackson wrote:

I tried it again from the command line, and it segfaults without the -l flag. When it's specified, it starts correctly.

Ok, since it segfaults before it daemonize you could run gdb like so and stop right before it calls LogInfo() and without using the -I flag;

hauk:[~/src/monit]gdb ./monit
GNU gdb 6.1-20040303 (Apple version gdb-437) (Sun Dec 25 08:31:29 GMT 2005)
...
(gdb) b monitor.c:457
Breakpoint 1 at 0x9f9c: file monitor.c, line 457.
(gdb) r
Starting program: /Users/hauk/src/monit/monit
Reading symbols for shared libraries . done

Breakpoint 1, main (argc=1, argv=0x0) at monitor.c:457
457         Run.once= FALSE;
(gdb) n
458         if(can_http())
(gdb)
459 LogInfo("Starting %s daemon with http interface at [%s:% d]\n",
(gdb) s
LogInfo (s=0x2f100 "Starting %s daemon with http interface at [%s:%d] \n") at log.c:241
241     void LogInfo(const char *s, ...) {
(gdb) p s
$1 = 0x2f100 "Starting %s daemon with http interface at [%s:%d]\n"
(gdb) n
244       ASSERT(s);
(gdb) n
...


--
Jan-Henrik Haukeland
Mobil +47 97141255





reply via email to

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