Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338800 - gcc-{4.3*,4.4*} compilation problem - process is killed by kernel (gentoo livecd)
Summary: gcc-{4.3*,4.4*} compilation problem - process is killed by kernel (gentoo liv...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-26 13:10 UTC by Daniel Cegielka
Modified: 2010-09-28 12:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log from /var/tmp/.../temp (build.log.tar.bz2,55.81 KB, text/plain)
2010-09-26 13:13 UTC, Daniel Cegielka
Details
enviromnent (environment.tar.bz2,37.85 KB, text/plain)
2010-09-26 13:14 UTC, Daniel Cegielka
Details
syslog messages (messages.tar.bz2,4.89 KB, text/plain)
2010-09-26 13:15 UTC, Daniel Cegielka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Cegielka 2010-09-26 13:10:24 UTC
Hi,

I have standard hardened stage and standard livecd for amd64. Sometimes I can compile gcc without bugs.. but usually compilation is killed by kernel. I work from gentoo livecd to by shure than it's not a host binutils problem.


I have standard env from livecd.. I have only -march=core2 -O2 -pipe in CFLAGS.

I have no idea whats going on. I could be a hardware problem? I have tested memory with memtest86 and it's look ok. I'm not a newby in linux and gentoo and first time I have this kind of problem.

Best regards,
daniel

Reproducible: Always




Sep 26 12:06:41 livecd dhcpcd[17371]: eth0: checking 192.168.1.101 is available on attached networks
Sep 26 12:06:46 livecd dhcpcd[17371]: eth0: leased 192.168.1.101 for 86400 seconds
Sep 26 12:06:46 livecd netplugd[16886]: eth0: state INNING pid 16893 exited status 0
Sep 26 12:06:52 livecd kernel: EXT4-fs (sda12): mounted filesystem with ordered data mode
Sep 26 12:07:14 livecd kernel: EXT4-fs (sda11): mounted filesystem with ordered data mode
Sep 26 12:27:14 livecd -- MARK --
Sep 26 12:33:31 livecd kernel: cc1 invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Sep 26 12:33:31 livecd kernel: Pid: 15516, comm: cc1 Not tainted 2.6.34-gentoo-r6 #1
Sep 26 12:33:31 livecd kernel: Call Trace:
Sep 26 12:33:31 livecd kernel: [<ffffffff8105e577>] ? T.372+0x57/0x167
Sep 26 12:33:31 livecd kernel: [<ffffffff8106617c>] ? shrink_slab+0x12a/0x13c
Sep 26 12:33:31 livecd kernel: [<ffffffff8105e4dd>] ? badness+0x1ae/0x1f1
Sep 26 12:33:31 livecd kernel: [<ffffffff8105e6be>] ? T.370+0x37/0xfe
Sep 26 12:33:31 livecd kernel: [<ffffffff8105e8c5>] ? __out_of_memory+0x140/0x157
Sep 26 12:33:31 livecd kernel: [<ffffffff8105e95e>] ? out_of_memory+0x82/0xac
Sep 26 12:33:31 livecd kernel: [<ffffffff8106136f>] ? __alloc_pages_nodemask+0x489/0x57a
Sep 26 12:33:32 livecd kernel: [<ffffffff810629da>] ? __do_page_cache_readahead+0x9e/0x1b1
Sep 26 12:33:32 livecd kernel: [<ffffffff81062b09>] ? ra_submit+0x1c/0x20
Sep 26 12:33:32 livecd kernel: [<ffffffff8105cc41>] ? filemap_fault+0x18a/0x30a
Sep 26 12:33:32 livecd kernel: [<ffffffff8106cac8>] ? __do_fault+0x52/0x419
Sep 26 12:33:32 livecd kernel: [<ffffffff8106d693>] ? do_wp_page+0x5bf/0x6c8
Sep 26 12:33:32 livecd kernel: [<ffffffff8106ebfa>] ? handle_mm_fault+0x44a/0x7f0
Sep 26 12:33:32 livecd kernel: [<ffffffff8101ae8c>] ? do_page_fault+0x2b7/0x2d9
Sep 26 12:33:32 livecd kernel: [<ffffffff8121b10f>] ? rb_insert_color+0xb5/0xdd
Sep 26 12:33:32 livecd kernel: [<ffffffff810276ff>] ? finish_task_switch+0x33/0x7a
Sep 26 12:33:32 livecd kernel: [<ffffffff81392940>] ? schedule+0x540/0x5fc
Sep 26 12:33:32 livecd kernel: [<ffffffff8139451f>] ? page_fault+0x1f/0x30
Sep 26 12:33:32 livecd kernel: Mem-Info:
Sep 26 12:33:32 livecd kernel: DMA per-cpu:
Sep 26 12:33:32 livecd kernel: CPU    0: hi:    0, btch:   1 usd:   0
Sep 26 12:33:32 livecd kernel: CPU    1: hi:    0, btch:   1 usd:   0
Sep 26 12:33:32 livecd kernel: DMA32 per-cpu:
Sep 26 12:33:32 livecd kernel: CPU    0: hi:  186, btch:  31 usd: 114
Sep 26 12:33:32 livecd kernel: CPU    1: hi:  186, btch:  31 usd:  92
Sep 26 12:33:32 livecd kernel: active_anon:120556 inactive_anon:120571 isolated_anon:0
Sep 26 12:33:32 livecd kernel: active_file:39 inactive_file:23 isolated_file:0
Sep 26 12:33:32 livecd kernel: unevictable:0 dirty:5 writeback:0 unstable:0
Sep 26 12:33:32 livecd kernel: free:1982 slab_reclaimable:1982 slab_unreclaimable:3616
Sep 26 12:33:32 livecd kernel: mapped:42 shmem:9088 pagetables:849 bounce:0
Sep 26 12:33:32 livecd kernel: DMA free:3984kB min:60kB low:72kB high:88kB active_anon:5924kB inactive_anon:5972kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file
):0kB present:15768kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:36kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:28kB unstable:0kB bounce:0kB writeback_tmp:0k
B pages_scanned:0 all_unreclaimable? yes
Sep 26 12:33:32 livecd kernel: lowmem_reserve[]: 0 985 985 985
Sep 26 12:33:32 livecd kernel: DMA32 free:3944kB min:3984kB low:4980kB high:5976kB active_anon:476300kB inactive_anon:476312kB active_file:156kB inactive_file:92kB unevictable:0kB isolated(anon):0k
B isolated(file):0kB present:1008800kB mlocked:0kB dirty:20kB writeback:0kB mapped:168kB shmem:36352kB slab_reclaimable:7892kB slab_unreclaimable:14464kB kernel_stack:848kB pagetables:3368kB unstab
le:0kB bounce:0kB writeback_tmp:0kB pages_scanned:401 all_unreclaimable? yes
Sep 26 12:33:32 livecd kernel: lowmem_reserve[]: 0 0 0 0
Sep 26 12:33:32 livecd kernel: DMA: 0*4kB 0*8kB 1*16kB 0*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 3984kB
Sep 26 12:33:32 livecd kernel: DMA32: 0*4kB 1*8kB 4*16kB 5*32kB 4*64kB 1*128kB 1*256kB 0*512kB 1*1024kB 1*2048kB 0*4096kB = 3944kB
Sep 26 12:33:32 livecd kernel: 9149 total pagecache pages
Sep 26 12:33:32 livecd kernel: 0 pages in swap cache
Sep 26 12:33:32 livecd kernel: Swap cache stats: add 0, delete 0, find 0/0
Sep 26 12:33:32 livecd kernel: Free swap  = 0kB
Sep 26 12:33:32 livecd kernel: Total swap = 0kB

Sep 26 12:33:32 livecd kernel: 259791 pages RAM
Sep 26 12:33:32 livecd kernel: 5801 pages reserved
Sep 26 12:33:32 livecd kernel: 1097 pages shared
Sep 26 12:33:32 livecd kernel: 250693 pages non-shared
Sep 26 12:33:32 livecd kernel: Out of memory: kill process 15515 (xgcc) score 4362 or a child
Sep 26 12:33:32 livecd kernel: Killed process 15516 (cc1) vsz:507160kB, anon-rss:481352kB, file-rss:180kB
Sep 26 12:33:32 livecd kernel: cc1 invoked oom-killer: gfp_mask=0x280da, order=0, oom_adj=0
Sep 26 12:33:32 livecd kernel: Pid: 15544, comm: cc1 Not tainted 2.6.34-gentoo-r6 #1
Sep 26 12:33:32 livecd kernel: Call Trace:
Sep 26 12:33:32 livecd kernel: [<ffffffff8105e577>] ? T.372+0x57/0x167
Sep 26 12:33:32 livecd kernel: [<ffffffff8106617c>] ? shrink_slab+0x12a/0x13c
Sep 26 12:33:32 livecd kernel: [<ffffffff8105e4dd>] ? badness+0x1ae/0x1f1
Sep 26 12:33:32 livecd kernel: [<ffffffff8105e6be>] ? T.370+0x37/0xfe
Sep 26 12:33:32 livecd kernel: [<ffffffff8105e8c5>] ? __out_of_memory+0x140/0x157
Sep 26 12:33:32 livecd kernel: [<ffffffff8105e95e>] ? out_of_memory+0x82/0xac
Sep 26 12:33:32 livecd kernel: [<ffffffff8106136f>] ? __alloc_pages_nodemask+0x489/0x57a
Sep 26 12:33:32 livecd kernel: [<ffffffff8106eaba>] ? handle_mm_fault+0x30a/0x7f0
Sep 26 12:33:32 livecd kernel: [<ffffffff8101ae8c>] ? do_page_fault+0x2b7/0x2d9
Sep 26 12:33:32 livecd kernel: [<ffffffff81073f1c>] ? mmap_region+0x3af/0x4c4
Sep 26 12:33:32 livecd kernel: [<ffffffff81000cc3>] ? __switch_to+0x25a/0x268
Sep 26 12:33:32 livecd kernel: [<ffffffff810276ff>] ? finish_task_switch+0x33/0x7a
Sep 26 12:33:32 livecd kernel: [<ffffffff81392940>] ? schedule+0x540/0x5fc
Sep 26 12:33:32 livecd kernel: [<ffffffff8139451f>] ? page_fault+0x1f/0x30
Sep 26 12:33:32 livecd kernel: Mem-Info:
Sep 26 12:33:32 livecd kernel: DMA per-cpu:
Sep 26 12:33:32 livecd kernel: CPU    0: hi:    0, btch:   1 usd:   0
Sep 26 12:33:32 livecd kernel: CPU    1: hi:    0, btch:   1 usd:   0
Sep 26 12:33:32 livecd kernel: DMA32 per-cpu:
Sep 26 12:33:32 livecd kernel: CPU    0: hi:  186, btch:  31 usd: 168
Sep 26 12:33:32 livecd kernel: CPU    1: hi:  186, btch:  31 usd:  59
Sep 26 12:33:32 livecd kernel: active_anon:95700 inactive_anon:25080 isolated_anon:0
Sep 26 12:33:32 livecd kernel: active_file:39 inactive_file:98 isolated_file:0
Sep 26 12:33:32 livecd kernel: unevictable:0 dirty:5 writeback:0 unstable:0
Sep 26 12:33:32 livecd kernel: free:122503 slab_reclaimable:1965 slab_unreclaimable:3616
Sep 26 12:33:32 livecd kernel: mapped:42 shmem:9088 pagetables:592 bounce:0
Sep 26 12:33:32 livecd kernel: DMA free:11644kB min:60kB low:72kB high:88kB active_anon:4300kB inactive_anon:8kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15768kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:36kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Sep 26 12:33:32 livecd kernel: lowmem_reserve[]: 0 985 985 985
Sep 26 12:33:32 livecd kernel: DMA32 free:478368kB min:3984kB low:4980kB high:5976kB active_anon:378500kB inactive_anon:100312kB active_file:156kB inactive_file:392kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:1008800kB mlocked:0kB dirty:20kB writeback:0kB mapped:168kB shmem:36352kB slab_reclaimable:7824kB slab_unreclaimable:14464kB kernel_stack:848kB pagetables:2368kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Sep 26 12:33:32 livecd kernel: lowmem_reserve[]: 0 0 0 0
Sep 26 12:33:32 livecd kernel: DMA: 385*4kB 156*8kB 70*16kB 26*32kB 16*64kB 6*128kB 4*256kB 2*512kB 1*1024kB 1*2048kB 0*4096kB = 11652kB
Sep 26 12:33:32 livecd kernel: DMA32: 20054*4kB 12209*8kB 8038*16kB 3185*32kB 779*64kB 99*128kB 15*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 478368kB
Sep 26 12:33:32 livecd kernel: 9224 total pagecache pages
Sep 26 12:33:32 livecd kernel: 0 pages in swap cache
Sep 26 12:33:32 livecd kernel: Swap cache stats: add 0, delete 0, find 0/0
Sep 26 12:33:32 livecd kernel: Free swap  = 0kB

Sep 26 12:33:32 livecd kernel: Total swap = 0kB
Sep 26 12:33:32 livecd kernel: 259791 pages RAM
Sep 26 12:33:32 livecd kernel: 5801 pages reserved
Sep 26 12:33:32 livecd kernel: 1066 pages shared
Sep 26 12:33:32 livecd kernel: 130136 pages non-shared
Sep 26 12:33:32 livecd kernel: Out of memory: kill process 15543 (xgcc) score 3400 or a child
Sep 26 12:33:32 livecd kernel: Killed process 15544 (cc1) vsz:391208kB, anon-rss:365952kB, file-rss:180kB


emerge --info is the standard configuration from gentoo-livecd. I have only -march=core2 in CFLAGS.
Comment 1 Daniel Cegielka 2010-09-26 13:13:49 UTC
Created attachment 248670 [details]
build.log from /var/tmp/.../temp
Comment 2 Daniel Cegielka 2010-09-26 13:14:49 UTC
Created attachment 248672 [details]
enviromnent
Comment 3 Daniel Cegielka 2010-09-26 13:15:19 UTC
Created attachment 248673 [details]
syslog messages
Comment 4 Martin Väth 2010-09-26 14:56:20 UTC
I guess that you are running out of memory. Try to enable more swap space.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-09-28 11:57:39 UTC
Indeed, you are running out of memory.

Sep 26 12:33:31 livecd kernel: cc1 invoked oom-killer: gfp_mask=0x201da,
Comment 6 Daniel Cegielka 2010-09-28 12:12:34 UTC
Yes, it's memory space problem. It means that gcc need more then 2GB memory (ram+swap) to be installed... incredible!

regards,
daniel