bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seg fault on "echo ~nosuchuser"


From: Ángel
Subject: Re: Seg fault on "echo ~nosuchuser"
Date: Tue, 02 Jun 2020 01:58:32 +0200

On 2020-06-01 at 15:12 -0400, Chet Ramey wrote:
> I finally found a case where 16-byte alignment for memory returned by
> malloc() is required. But it's only on Linux systems that use systemd.
> I bet it's trying to marshal arguments for IPC and uses instructions
> that require 16-byte alignment.
> 
> Thanks for your help verifying this.
> 
> Chet

You mean that with systemd getpwnam() crashes if using a malloc() that
returns addresses not 16-byte aligned?

Cornercase, surely, but it seems like a bug in whatever is assuming such
alignment. That's not even pointer-size alignment.

Cheers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]