Re: [patch] dhclient(8) crashes with vm.malloc_conf=J

2020-07-07 Thread Jesper Wallin
On Tue, Jul 07, 2020 at 12:18:20PM +1000, David Gwynne wrote: > you might want to put the memset after the check to see if the malloc > failed... > Oh, wow... *goes to stand in the corner of shame*

Re: [patch] dhclient(8) crashes with vm.malloc_conf=J

2020-07-06 Thread David Gwynne
> On 7 Jul 2020, at 7:57 am, Jesper Wallin wrote: > > Hi all, > > I received a segmentation fault from dhclient(8) upon boot and decided > to investigate... My system is running with vm.malloc_conf=CFGJUR and > figured one of those options was the cause of the crash. I noticed that > the bu

[patch] dhclient(8) crashes with vm.malloc_conf=J

2020-07-06 Thread Jesper Wallin
Hi all, I received a segmentation fault from dhclient(8) upon boot and decided to investigate... My system is running with vm.malloc_conf=CFGJUR and figured one of those options was the cause of the crash. I noticed that the buffer which holds my config options contained a lot of junk at the end