same problem in feisty:
I compile the same testcase with:
[EMAIL PROTECTED] /tmp]$ gcc toto.c -o toto && ./toto
sizeof(Bits)=3
mask=0x1ff7f
Erreur de segmentation
[EMAIL PROTECTED] /tmp]$ gcc -g toto.c -o toto && ./toto
sizeof(Bits)=3
mask=0x1ff7f
[EMAIL PROTECTED] /tmp]$ gcc --version
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
did you notice it's even badder?
if compiled without '-g', it segfault on returning, and compiled with '-g', no
segfault...
but it's still not packed...
** Changed in: gcc-4.1 (Ubuntu)
Status: Invalid => New
--
gcc-4.1 doesn't pack structures with 'char' fields.
https://bugs.launchpad.net/bugs/51690
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs