[Tarantool-patches] [PATCH v4 4/4] crash: report crash data to the feedback server

Cyrill Gorcunov gorcunov at gmail.com
Sat Dec 12 19:19:47 MSK 2020


On Fri, Dec 11, 2020 at 03:57:20PM +0300, Serge Petrenko wrote:
> > +
> > +	/*
> > +	 * On linux there is new_utsname structure which
> > +	 * encodes each field to __NEW_UTS_LEN + 1 => 64 + 1 = 65.
> > +	 *
> > +	 * So lets just reserve more data in advance: 5 fields
> > +	 * 128 bytes each => 640 bytes.
> > +	 */
> > +	static_assert(sizeof(struct utsname) <= 640,
> > +		      "utsname is bigger than expected");
> 
> 
> This static assert fails on my mac.
> Looks like `struct utsname` is 1280 bytes in size there.

Thanks, Serge! I'll force update the size.


More information about the Tarantool-patches mailing list