gcc-4.4 4.4.2-1ubuntu2/3 __builtin_offsetof and & (address of) seems to trigger "internal compiler error: Segmentation fault"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.4 (Ubuntu) |
Fix Released
|
High
|
Matthias Klose |
Bug Description
Binary package hint: gcc-4.4
I am getting failures when trying to build the Lucid kernel with the gcc-4.4
4.4.2-1ubuntu2 compiler. It seems to throw internal errors and core dump on
some incantations of offsetof/
ipc/util.c: In function 'ipc_schedule_
ipc/util.c:572: internal compiler error: Segmentation fault
static void ipc_schedule_
{
-> sched = container_
}
ext4/mballoc.c: In function 'ext4_mb_
ext4/
/*
* calculate needed size. if change bb_counters size,
* don't forget about ext4_mb_
*/
-> len = offsetof(
kernel/
kernel/
static struct audit_chunk *find_chunk(struct node *p)
{
int index = p->index & ~(1U<<31);
p -= index;
-> return container_of(p, struct audit_chunk, owners[0]);
}
Changed in gcc-4.4 (Ubuntu): | |
importance: | Undecided → High |
Note that container_of() is defined thus:
#define container_of(ptr, type, member) ({ \ type,member) );})
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(