-
Type:
Incident report
-
Resolution: Fixed
-
Priority:
Major
-
None
-
Affects Version/s: None
-
Component/s: Server (S)
-
None
-
Environment:OpenBSD 4.1, MySQL 5.0.33
CFLAGS="-ggdb3 -lssl -lcrypto" ./configure --enable-static --enable-server --enable-agent --with-mysql --with-net-snmp
Again, zabbix_server segfaults shortly after startup. This is a fresh installation on a fresh OpenBSD installation, fresh database and all that.. it segfaults upon having created a first host.
Here's the backtrace
---------------------------------8<---------------------------------
This GDB was configured as "i386-unknown-openbsd4.1"...
Core was generated by `zabbix_server'.
Program terminated with signal 11, Segmentation fault.
#0 0x1c124630 in vfprintf (fp=0xcfbd2520,
fmt0=0x3c017aa0 "select count
from items i,hosts h where i.status=%d and i.type not in (%d) and ((h.status=%d and h.available!=%d) or (h.status=%d and h.available=%d and h.disable_until<=%d)) and i.hostid=h.hostid "..., ap=0xcfbd2760 "óZ") at /usr/src/lib/libc/stdio/vfprintf.c:484
484 /usr/src/lib/libc/stdio/vfprintf.c: No such file or directory.
in /usr/src/lib/libc/stdio/vfprintf.c
(gdb) bt
#0 0x1c124630 in vfprintf (fp=0xcfbd2520,
fmt0=0x3c017aa0 "select count
from items i,hosts h where i.status=%d and i.type not in (%d) and ((h.status=%d and h.available!=%d) or (h.status=%d and h.available=%d and h.disable_until<=%d)) and i.hostid=h.hostid "..., ap=0xcfbd2760 "óZ") at /usr/src/lib/libc/stdio/vfprintf.c:484
#1 0x1c11b098 in _fmt (format=0x7d73cc00 "select eventid,value,clock,object,objectid from events where source=0 and object=0 and objectid=12865 order by object desc,objectid desc,eventid desc limit 2",
t=0x0, pt=0x0, ptlim=0x0, warnp=0x0) at /usr/src/lib/libc/time/strftime.c:568
#2 0x1c032502 in __zbx_zbx_snprintf (str=0x0, count=1006729888, fmt=0xcfbd2754 "") at str.c:196
#3 0x1c02ec4b in DBget_item_from_db (item=0x3c017aa0, row=0xcfbd2754) at db.c:1689
#4 0x1c02b99c in DBcopy_graph_to_host (graphid=2022943107573426008, hostid=14969163979186862752, copy_mode=28 '\034') at host.c:4137
#5 0x1c02e620 in DBadd_alert (actionid=80794700464, userid=14969165131467444256, triggerid=9562054603558617088, mediatypeid=8589934594, sendto=0xcfbd2860 "", subject=0x0,
message=0x138 <Address 0x138 out of bounds>) at db.c:1497
#6 0x1c00b0c9 in process_event (event=0xcfbd2860) at events.c:175
#7 0x1c02c316 in DBbegin () at db.c:121
#8 0x1c00b769 in update_triggers (itemid=19478) at functions.c:166
#9 0x1c0127d4 in update_key_status (hostid=10025, host_status=2) at poller.c:225
#10 0x1c012f86 in get_values () at poller.c:469
#11 0x1c013188 in main_poller_loop (type=1, num=1) at poller.c:538
#12 0x1c00dc01 in MAIN_ZABBIX_ENTRY () at server.c:1183
#13 0x1c02214d in redirect_std (filename=0x0) at log.c:59
#14 0x1c00d5f8 in main (argc=1, argv=0xcfbd4ab0) at server.c:978
---------------------------------8<---------------------------------
I can't see the problem in the source..
(BTW I checked twice this time to make sure this isn't my branch ![]()