Re: dpkg 1.8.3.1, fixes sparc sigbus
On Sat, 13 Jan 2001, Ben Collins wrote: Ok, I tagged dpkg 1.8.3.1 just to revert the nfmalloc patch which caused misaligned allocations, and thus, sigbus failures on sparc. For those desperately needing this, you can download it from: http://incoming.debian.org/dpkg_1.8.3.1_sparc.deb After this, today begins my quest to purge nfmalloc from dpkg using safer malloc/alloc/obstack functionality. I hope you are doing that in at least head, and maybe in a separate branch, as this could be a big change. BEGIN GEEK CODE BLOCK Version: 3.12 GCS d- s: a-- c+++ UL P+ L !E W+ M o+ K- W--- !O M- !V PS-- PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z? -END GEEK CODE BLOCK- BEGIN PGP INFO Adam Heath [EMAIL PROTECTED]Finger Print | KeyID 67 01 42 93 CA 37 FB 1E63 C9 80 1D 08 CF 84 0A | DE656B05 PGP AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG -END PGP INFO-
Re: dpkg 1.8.1.2 gives SIGBUS on sparc
On Fri, 12 Jan 2001, Wichert Akkerman wrote: Previously Ben Collins wrote: My only concern now is, does 1.7.2 work if I recompile it against the current libc6-dev. If it does, then the thing to do is start checking the diff between these two versions for possible alignment issues. Run it on an alpha and you'll get alignment warninrs in the kernel log. The part of the code it is having a sigbus(I wish I had an strace) in is not in any code that I modified for the 1.8 series. The actual file it is erroring in has had very little changes since 1.7.2. BEGIN GEEK CODE BLOCK Version: 3.12 GCS d- s: a-- c+++ UL P+ L !E W+ M o+ K- W--- !O M- !V PS-- PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z? -END GEEK CODE BLOCK- BEGIN PGP INFO Adam Heath [EMAIL PROTECTED]Finger Print | KeyID 67 01 42 93 CA 37 FB 1E63 C9 80 1D 08 CF 84 0A | DE656B05 PGP AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG -END PGP INFO-
Re: dpkg 1.8.1.2 gives SIGBUS on sparc
The following patch(taking from suggestions in bug#74259) is the culprit(as verified by Ben). Index: lib/nfmalloc.c === RCS file: /cvs/dpkg/dpkg/lib/nfmalloc.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- lib/nfmalloc.c 1999/01/29 08:54:00 1.1 +++ lib/nfmalloc.c 2000/12/20 07:33:47 1.2 @@ -30,7 +30,7 @@ #define UNIQUE 4096 union maxalign { - long l; long double d; + long l; void *pv; char *pc; union maxalign *ps; void (*pf)(void); }; I am not sure if he did my suggestion of moving the long l to the last field in the union, to see if that helps it. BEGIN GEEK CODE BLOCK Version: 3.12 GCS d- s: a-- c+++ UL P+ L !E W+ M o+ K- W--- !O M- !V PS-- PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z? -END GEEK CODE BLOCK- BEGIN PGP INFO Adam Heath [EMAIL PROTECTED]Finger Print | KeyID 67 01 42 93 CA 37 FB 1E63 C9 80 1D 08 CF 84 0A | DE656B05 PGP AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG -END PGP INFO-
Re: dpkg 1.8.1.2 gives SIGBUS on sparc
On Thu, 11 Jan 2001, Wichert Akkerman wrote: Previously Ben Collins wrote: Sparc users, keep your old dpkg on hold, don't upgrade it. No, do upgrade it and try to figure out where exactly it goes wrong. Btw, I'll look at this when I get home later tonight. This isn't saying I know what is wrong tho. BEGIN GEEK CODE BLOCK Version: 3.12 GCS d- s: a-- c+++ UL P+ L !E W+ M o+ K- W--- !O M- !V PS-- PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z? -END GEEK CODE BLOCK- BEGIN PGP INFO Adam Heath [EMAIL PROTECTED]Finger Print | KeyID 67 01 42 93 CA 37 FB 1E63 C9 80 1D 08 CF 84 0A | DE656B05 PGP AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG -END PGP INFO-