10:54:48 ptribble - re 17453 (fenix) I think that's clarifying rather than muddying. I can stop looking at differences between the forks at least. The values from the test program vary on OmniOS/Helios but they seem to always be page aligned, unlike the other systems. 10:55:03 illumos 17453 fenix 10:55:04 BUG 17453: ed(1) segfaults on writing empty file (In Progress) 10:55:04 ↳ https://www.illumos.org/issues/17453 | https://code.illumos.org/c/illumos-gate/+/4282 11:05:26 It's definitely a weird one! Glad I can help shine a little light on mapping this particular rabbit hole. 12:31:10 It's apparently due to omnios/helios having ASLR enabled on sshd. If I log in on the console, I see the same behaviour as tribblix et al. 12:32:35 https://github.com/omniosorg/omnios-build/blob/master/build/openssh/files/ssh.xml#L110 12:33:23 .oO oops. 12:34:35 Could you try `pfexec psecflags -s aslr $$` in your shell and see if it changes things? 12:34:59 https://paste.omnios.org/?41e97272cf18af08#FSPKJYnLyDkTXi62yDxus9Xobn8BS1WRbqMbve5ZYwGR 12:40:02 Segmentation Fault (core dumped) (on OI) 12:40:05 Bingo! 12:40:32 With that, reproduces on Tribblix. 12:40:57 I would never in a million years have expected this. what a journey andyf 12:41:15 https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/common/exec/elf/elf.c#L1563-L1573 12:53:21 kwaltz - thanks for reporting it. It's a real bug in ed(1) and my proposed fix is at https://code.illumos.org/c/illumos-gate/+/4282. I can give you a hotfix for OmniOS if you'd like, otherwise it will be updated next time OmniOS has a weekly release. 12:53:22 → CODE REVIEW 4282: 17453 ed(1) segfaults on writing empty file 17455 Add CTF data to ed(1) (NEW) | https://www.illumos.org/issues/17453 12:56:37 thank you so much andyf! I'll be sure to grab the release when it comes out 16:45:17 Thanks for finding this @kwaltz . 16:49:35 heh.. i wonder how long that bug has been there 16:56:00 Oh, ed crashes the same way on Solaris 11.4, once I worked out the magic incantation (using sxadm) to disable aslr 17:07:10 oh, so it does 17:42:50 With C99 `bool`, is there a reason we couldn't get rid of `boolean_t` in illumos? 17:43:22 It's probably a bit tricky. It's part of the MAC interface for example. 17:43:43 Dammit, was mid-typing "existing interfaces?" and yeah, I guess so. 17:44:30 The ena driver has a nice mix of boolean_t and bool for that reason.. Well, I converted everything I could to bool. 17:44:32 "sizeof (bool) != sizeof (boolean_t)" which matters for existing interfaces (i.e. what I was typing). 17:44:44 I SAW that in ena(4D). 17:45:43 (I don't think we have any frequently-allocated structures where adding more <> is horrid, but that we have <> in things bugs me, probably irrationally, and it's now in my same headspace as precision-data-layout in a language...) 17:53:02 The boolean_t is part of the ABI for many things and where it's part of that ABI, it can't change. 17:53:18 Also depending on what you care about, you cannot build C89 software with bool present generally speaking, unlike other extensions. 18:52:08 rmustacc: we should probably have a sys/bool.h rather than stdbool, for uts, too? 18:52:41 or does sys/stdbool.h end up behaving fully? 18:52:48 headers that smell of userland scare me 19:27:38 [illumos-gate] 17307 ufs/newfs: dprintf() cleanup -- Hans Rosenfeld 19:33:56 richlowe: was the one that the kernel can safely use. 19:34:18 ah, just the 'std' giving me the fear 19:34:40 I think of it like . 19:43:04 [illumos-gate] 17444 gitignore doesn't know findunref -- Patrick Mooney