monit-general
[Top][All Lists]
Advanced

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

SIGSEGV, Segmentation fault.


From: Igor Homyakov
Subject: SIGSEGV, Segmentation fault.
Date: Tue, 20 May 2003 11:32:21 +0400
User-agent: Mutt/1.4.1i

address@hidden monit-3.2]# gdb ./monit
GNU gdb ALT Linux (5.2.1-alt2)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-alt-linux"...
(gdb) break do_default
Breakpoint 1 at 0x804f09c: file monitor.c, line 496.
(gdb) run
Starting program: /home/homyakov/RPM/BUILD/monit-3.2/monit
[New Thread 1024 (LWP 14649)]
[Switching to Thread 1024 (LWP 14649)]

Breakpoint 1, do_default () at monitor.c:496
496       if(Run.isdaemon) {
(gdb) n
498         if(do_wakeupcall()) {
(gdb) n
504         log("Starting %s daemon\n", prog);
(gdb) s
log (format=0x80619e0 "Starting %s daemon\n") at log.c:116
116       ASSERT(format);
(gdb) s
118       va_start(ap,format);
(gdb) n
119       vsnprintf(msg, STRLEN, format, ap);
(gdb) n
122       if(! Run.dolog) goto nolog;
(gdb) n
124       if(Run.use_syslog) {
(gdb) n
126         syslog(LOG_ERR|LOG_USER, "%s", msg);
(gdb) print msg
$1 = "Starting monit 
daemon\n\0*ЬВЪ\177tи\004\bH5\a\b\220ВЪ\177\210ЬЪ\177;е\004\b/var/run/address@hidden(ЬЪ\177uC\005\bH5\a\b\0\0\0\0(ЬЪ\177L\214п*L\214п*`\234п*"...
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x2ac6011a in malloc () from /lib/libc.so.6
(gdb) where
#0  0x2ac6011a in malloc () from /lib/libc.so.6
#1  0x2ac5fc7e in malloc () from /lib/libc.so.6
#2  0x2ac57997 in open_memstream () from /lib/libc.so.6
#3  0x2acb90a9 in vsyslog () from /lib/libc.so.6
#4  0x2acb8ebd in syslog () from /lib/libc.so.6
#5  0x0804d4f5 in log (format=0x80619e0 "Starting %s daemon\n") at log.c:126
#6  0x0804f0cf in do_default () at monitor.c:504
#7  0x0804ec5d in do_action (args=0x7ffff8f4) at monitor.c:316
#8  0x0804e917 in main (argc=1, argv=0x7ffff8f4) at monitor.c:96
#9  0x2ac0b652 in __libc_start_main () from /lib/libc.so.6


-- 
Igor Homyakov
<homyakov AT ramax.spb.ru>




reply via email to

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