[syslog-ng] [Bug 141] Crash while reloading config
bugzilla at bugzilla.balabit.com
bugzilla at bugzilla.balabit.com
Wed Oct 26 16:06:24 CEST 2011
https://bugzilla.balabit.com/show_bug.cgi?id=141
--- Comment #1 from Balazs Scheidler <bazsi at balabit.hu> 2011-10-26 16:06:23 ---
Did you perhaps remove the tcp() source definition from your configuration while reloading?
I think that's the culprit, I got a similar looking backtrace using the steps:
1) start syslog-ng, open a connection to the tcp() source
2) remove the source in the configuration file but keeping the connection open
3) SIGHUP the syslog-ng process
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5622a23 in afsocket_sd_remove_and_kill_connection (self=0x0, connection=0x61d680) at
/home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/modules/afsocket/afsocket.c:343
343 self->connections = g_list_remove(self->connections, connection);
(gdb) bt
#0 0x00007ffff5622a23 in afsocket_sd_remove_and_kill_connection (self=0x0, connection=0x61d680) at
/home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/modules/afsocket/afsocket.c:343
#1 0x00007ffff5622abe in afsocket_sd_kill_connection_list (list=0x641260) at
/home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/modules/afsocket/afsocket.c:367
#2 0x00007ffff7b6214d in persist_config_entry_free (self=0x647c00) at /home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/lib/cfg.c:66
#3 0x00007ffff706dffa in g_hash_nodes_destroy (hash_node=0x621280, key_destroy_func=0x7ffff7082dc0 <IA__g_free>, value_destroy_func=0x7ffff7b62120
<persist_config_entry_free>) at ghash.c:874
#4 0x00007ffff706e3d7 in IA__g_hash_table_remove_all (hash_table=0x60a200) at ghash.c:483
#5 0x00007ffff706e5b5 in IA__g_hash_table_destroy (hash_table=0x0) at ghash.c:224
#6 0x00007ffff7b621c6 in persist_config_free (self=0x61d360) at /home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/lib/cfg.c:83
#7 0x00007ffff7b832b5 in main_loop_reload_config_apply () at /home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/lib/mainloop.c:491
#8 0x00007ffff7b83168 in main_loop_io_worker_sync_call (func=0x7ffff7b8320b <main_loop_reload_config_apply>) at
/home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/lib/mainloop.c:443
#9 0x00007ffff7b83528 in main_loop_reload_config_initiate () at /home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/lib/mainloop.c:561
#10 0x00007ffff7b83584 in sig_hup_handler (s=0x0) at /home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/lib/mainloop.c:594
#11 0x00007ffff5e61dcb in iv_signal_event (_this=<value optimized out>) at iv_signal.c:80
#12 0x00007ffff5e61569 in iv_event_raw_got_event (_this=0x7ffff7ddb408) at iv_event_raw.c:82
#13 0x00007ffff60677b6 in iv_run_active_list () at iv_main.c:219
#14 iv_main () at iv_main.c:269
#15 0x00007ffff7b83967 in main_loop_run () at /home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/lib/mainloop.c:722
#16 0x0000000000401929 in main (argc=1, argv=0x7fffffffdaf8) at /home/bazsi/zwa/work/syslog-ng-ose-3.3/syslog-ng-ose/syslog-ng/main.c:260
--
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the syslog-ng
mailing list