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

Bug#634261: strange alignment of stdin on sparc



* Jurij Smakov <jurij@wooyd.org> [120912 12:32]:
> For the record, I do not consider this bug to be RC. As far as I know, 
> it only manifested itself for iceweasel and only because iceweasel 
> does really funky things with its symbols. The bug now contains enough 
> information for a useful upstream report, however I don't intend to 
> file one.

Independent whether it is a RC bug, there seems to at least be some
general bug hiding there:

A __alignof(struct _IO_FILE) in libio/genops.c is 8 while a
__alignof(struct _IO_FILE) in libio/oldstdfiles.c is 4 [1].
This means that gcc does not really consider them to be the same struct
in those two files, which could possibly cause harvoc even on other
architectures than sparc and with other programs.

        Bernhard R. Link

[1] Tested by inserting a int foobar(void) {return __alignof(struct
_IO_FILE);} in both and looking with objdump -d at the generated
files.


Reply to: