I made a small change to assert.c so it would compile on NetBSD. It was pretty simple, but please check.
I added -a to ntpd's command parser to generate an assert failure. Testing assert failure. 3 Jun 01:04:45 ntpd[3278]: ../../ntpd/ntpd.c:246: REQUIRE(false) failed 3 Jun 01:04:45 ntpd[3278]: Stack trace: 3 Jun 01:04:45 ntpd[3278]: ./hgm/main/ntpd/ntpd(+0x36ec9) [0x558c2eebbec9] 3 Jun 01:04:45 ntpd[3278]: ./hgm/main/ntpd/ntpd(+0x1b532) [0x558c2eea0532] 3 Jun 01:04:45 ntpd[3278]: ./hgm/main/ntpd/ntpd(+0x1c9a3) [0x558c2eea19a3] 3 Jun 01:04:45 ntpd[3278]: /lib64/libc.so.6(__libc_start_main+0xf1) [0x7f32e7f68401] 3 Jun 01:04:45 ntpd[3278]: ./hgm/main/ntpd/ntpd(+0x8b8a) [0x558c2ee8db8a] 3 Jun 01:04:45 ntpd[3278]: exiting (due to assertion failure) Aborted (core dumped) On a Raspberry Pi (Debian/Raspbian): Testing assert failure. 3 Jun 01:28:45 ntpd[349]: ../../ntpd/ntpd.c:246: REQUIRE(false) failed 3 Jun 01:28:45 ntpd[349]: Stack trace: 3 Jun 01:28:45 ntpd[349]: exiting (due to assertion failure) Aborted NetBSD 6.1.5: Testing assert failure. 3 Jun 01:16:40 ntpd[14429]: ../../ntpd/ntpd.c:246: REQUIRE(false) failed 3 Jun 01:16:40 ntpd[14429]: exiting (due to assertion failure) bash: line 1: 14429 Abort trap (core dumped) ./bob2/main/ntpd/ntpd -a NetBSD 7: Testing assert failure. 3 Jun 01:16:40 ntpd[13708]: ../../ntpd/ntpd.c:246: REQUIRE(false) failed 3 Jun 01:16:40 ntpd[13708]: Stack trace: 3 Jun 01:16:40 ntpd[13708]: #1 0x21e086 in ?? 3 Jun 01:16:40 ntpd[13708]: #2 0x21f64d in ?? 3 Jun 01:16:40 ntpd[13708]: #3 0x20bc35 in ?? 3 Jun 01:16:40 ntpd[13708]: exiting (due to assertion failure) bash: line 1: 13708 Abort trap (core dumped) ./bob3/main/ntpd/ntpd -a NetBSD 7 on Raspberry Pi: Testing assert failure. 3 Jun 01:23:27 ntpd[5538]: ../../ntpd/ntpd.c:246: REQUIRE(false) failed Segmentation fault (core dumped) >From gdb: Testing assert failure. 3 Jun 01:24:42 ntpd[6243]: ../../ntpd/ntpd.c:246: REQUIRE(false) failed Program received signal SIGSEGV, Segmentation fault. 0x4039c804 in ?? () (gdb) [bt is garbage] FreeBSD: 3 Jun 01:21:48 ntpd[10377]: ../../ntpd/ntpd.c:246: REQUIRE(false) failed 3 Jun 01:21:48 ntpd[10377]: exiting (due to assertion failure) bash: line 1: 10377 Abort trap (core dumped) ./ted2/main/ntpd/ntpd -a -- These are my opinions. I hate spam. _______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel