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

Bug#44654: dpkg: seg faults w/2.3.17; problem traced to sysinfo()



> I suggest also to put back the comment about the 64byte alignment.
> 
> --- 2.3.17/include/linux/kernel.h	Wed Sep  8 18:18:56 1999
> +++ kernel.h	Fri Sep 10 02:32:45 1999
> @@ -96,7 +96,8 @@
>  	unsigned short procs;		/* Number of current processes */
>  	unsigned long totalbig;		/* Total big memory size */
>  	unsigned long freebig;		/* Available big memory size */
> -	char _f[22-2*sizeof(long)];	/* Padding: libc5 uses this.. */
> +	char _f[12];			/* Pads structure to 64 bytes
> +					   (libc5 uses this..) */
>  };
>  
>  #endif
> 
> Andrea

That is trivially and obviously wrong. You have to do the sizeof check
because of 64bit machines


Reply to: