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

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 9 Sep 1999 23:59:06 +0100 (BST)


> unsigned long bufferram; /* Memory used by buffers */
> - unsigned long totalbig; /* Total big memory size */
> - unsigned long freebig; /* Available big memory size */
> unsigned long totalswap; /* Total swap space size */
> unsigned long freeswap; /* swap space still available */
> 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.. */
> };
>
> #endif
>
> ...Not sure what the original point of this patch is, but reversing it
> makes things work agian.

It puts everyhing back as it was in 2.2.x. However due to alignment it should
be 20- on x86.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/