killed by HUP signal on Mac OS X 10.3
The syslog-ng daemon dies on Mac OS X when a HUP signal is sent: $ sudo /usr/local/sbin/syslog-ng -d io.c: Preparing fd 4 for reading io.c: Preparing fd 5 for reading syslog-ng version 1.6.2 starting io.c: Preparing fd 7 for writing io.c: Preparing fd 8 for writing SIGHUP received, restarting syslog-ng poll.c:282: failed assertion `pArray != (struct pollfd *) NULL' zsh: abort sudo /usr/local/sbin/syslog-ng -d Software versions involved: syslog-ng 1.6.2 libol 0.3.13 gcc 3.3 20030304 (Apple Computer, Inc. build 1495) Mac OS X 10.3.3 (build 7F44) Running ktrace shows the following: 12661 syslog-ng RET write 149/0x95 12661 syslog-ng CALL select(0x9,0xbffff3a0,0xbffff420,0xbffff4a0,0xbffff520) 12661 syslog-ng RET select -1 errno 4 Interrupted system call 12661 syslog-ng PSIG SIGHUP caught handler=0x2a94 mask=0x0 code=0x0 12661 syslog-ng CALL sigaction(0x1,0xbfffecb0,0xbfffed20) 12661 syslog-ng RET sigaction 0 12661 syslog-ng CALL #184(0xbfffee58,0x1) 12661 syslog-ng RET #184 JUSTRETURN 12661 syslog-ng CALL write(0x2,0xbffff540,0x26) 12661 syslog-ng GIO fd 2 wrote 38 bytes "SIGHUP received, restarting syslog-ng " 12661 syslog-ng RET write 38/0x26 12661 syslog-ng CALL write(0x2,0xbfffeb50,0x40) 12661 syslog-ng GIO fd 2 wrote 64 bytes "poll.c:282: failed assertion `pArray != (struct pollfd *) NULL' " 12661 syslog-ng RET write 64/0x40 12661 syslog-ng CALL sigprocmask(0x3,0xbffff324,0) 12661 syslog-ng RET sigprocmask 0 12661 syslog-ng CALL getpid 12661 syslog-ng RET getpid 12661/0x3175 12661 syslog-ng CALL kill(0x3175,0x6) 12661 syslog-ng RET kill 0 12661 syslog-ng PSIG SIGIOT SIG_DFL
Just to be sure I am understanding your message correctly you are running syslog-ng on OS X, I assumed you compiled from source ? Thanks On Apr 27, 2004, at 12:21 PM, Jeremy Mates wrote:
The syslog-ng daemon dies on Mac OS X when a HUP signal is sent:
$ sudo /usr/local/sbin/syslog-ng -d io.c: Preparing fd 4 for reading io.c: Preparing fd 5 for reading syslog-ng version 1.6.2 starting io.c: Preparing fd 7 for writing io.c: Preparing fd 8 for writing SIGHUP received, restarting syslog-ng poll.c:282: failed assertion `pArray != (struct pollfd *) NULL' zsh: abort sudo /usr/local/sbin/syslog-ng -d
Software versions involved:
syslog-ng 1.6.2 libol 0.3.13 gcc 3.3 20030304 (Apple Computer, Inc. build 1495) Mac OS X 10.3.3 (build 7F44)
Running ktrace shows the following:
12661 syslog-ng RET write 149/0x95 12661 syslog-ng CALL select(0x9,0xbffff3a0,0xbffff420,0xbffff4a0,0xbffff520) 12661 syslog-ng RET select -1 errno 4 Interrupted system call 12661 syslog-ng PSIG SIGHUP caught handler=0x2a94 mask=0x0 code=0x0 12661 syslog-ng CALL sigaction(0x1,0xbfffecb0,0xbfffed20) 12661 syslog-ng RET sigaction 0 12661 syslog-ng CALL #184(0xbfffee58,0x1) 12661 syslog-ng RET #184 JUSTRETURN 12661 syslog-ng CALL write(0x2,0xbffff540,0x26) 12661 syslog-ng GIO fd 2 wrote 38 bytes "SIGHUP received, restarting syslog-ng " 12661 syslog-ng RET write 38/0x26 12661 syslog-ng CALL write(0x2,0xbfffeb50,0x40) 12661 syslog-ng GIO fd 2 wrote 64 bytes "poll.c:282: failed assertion `pArray != (struct pollfd *) NULL' " 12661 syslog-ng RET write 64/0x40 12661 syslog-ng CALL sigprocmask(0x3,0xbffff324,0) 12661 syslog-ng RET sigprocmask 0 12661 syslog-ng CALL getpid 12661 syslog-ng RET getpid 12661/0x3175 12661 syslog-ng CALL kill(0x3175,0x6) 12661 syslog-ng RET kill 0 12661 syslog-ng PSIG SIGIOT SIG_DFL _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
A. Lester Burke Network Analyst Arlington Public Schools, VA V 703-228-6057 E leburke@mindspring.com "They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." Ben Franklin
* Lester <leburke@mindspring.com>
Just to be sure I am understanding your message correctly you are running syslog-ng on OS X, I assumed you compiled from source ?
Yes.
2004-04-27, k keltezéssel 18:21-kor Jeremy Mates ezt írta:
The syslog-ng daemon dies on Mac OS X when a HUP signal is sent:
$ sudo /usr/local/sbin/syslog-ng -d io.c: Preparing fd 4 for reading io.c: Preparing fd 5 for reading syslog-ng version 1.6.2 starting io.c: Preparing fd 7 for writing io.c: Preparing fd 8 for writing SIGHUP received, restarting syslog-ng poll.c:282: failed assertion `pArray != (struct pollfd *) NULL' zsh: abort sudo /usr/local/sbin/syslog-ng -d
hmm.. there's no poll.c in syslog-ng nor in libol, though there's a poll() call with NULL fdarray argument. diff -u -r1.40 io.c --- io.c 19 Jan 2004 13:20:38 -0000 1.40 +++ io.c 28 Apr 2004 09:24:45 -0000 @@ -207,8 +207,12 @@ } else { gc_maybe(&b->super, 1); - if (nfds == 0) - res = poll(NULL, 0, timeout < 0 ? 60000 : timeout * 1000); + if (nfds == 0) { + struct pollfd dummy; + + /* this hack is needed on MacOSX where the poll emulation does not handle the fdarray being NULL */ + res = poll(&dummy, 0, timeout < 0 ? 60000 : timeout * 1000); + } } if (res < 0) -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (3)
-
Balazs Scheidler
-
Jeremy Mates
-
Lester