2.3.99-pre4-2: BUG() at page_alloc.c:10x

From: Thorsten Knabe (tek@thorsten-knabe.de)
Date: Mon Apr 03 2000 - 05:37:13 EST


[1.] One line summary of the problem:
BUG() at page_alloc.c:10x under 2.3.99-pre4-2

[2.] Full description of the problem/report:

During a stress test (make -j bzImage) I got the several
  Apr 3 00:54:53 tek01 kernel: kernel BUG at page_alloc.c:10x!
messages followed by invalid operand exceptions.

[3.] Keywords (i.e., modules, networking, kernel):

Memory management, kernel bug

[4.] Kernel version (from /proc/version):

Linux version 2.3.99-pre4 (tek@tek01) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #3 Sun Apr 2 18:18:19 CEST 2000

[5.] Output of Oops.. message (if applicable) with symbolic information
     resolved (see Documentation/oops-tracing.txt)

ksymoops 2.3.3 on i586 2.3.99-pre4. Options used
     -V (default)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.3.99-pre4/ (default)
     -m /usr/src/linux/System.map (default)

Warning: You did not tell me where to find symbol information. I will
assume that the log matches the kernel and modules that are running
right now and I'll use the default options above for symbol resolution.
If the current kernel and/or modules do not match the log, you can get
more accurate output by telling me the kernel version and where to find
map, modules, ksyms etc. ksymoops -h explains the options.

Apr 2 19:04:04 tek01 kernel: 8139too Fast Ethernet driver 0.9.4 loaded
Apr 3 00:54:53 tek01 kernel: kernel BUG at page_alloc.c:106!
Apr 3 00:55:43 tek01 kernel: invalid operand: 0000
Apr 3 00:55:43 tek01 kernel: CPU: 0
Apr 3 00:55:45 tek01 kernel: EIP: 0010:[<c012aa35>]
Using defaults from ksymoops -t elf32-i386 -a i386
Apr 3 00:55:45 tek01 kernel: EFLAGS: 00010286
Apr 3 00:55:45 tek01 kernel: eax: 00000020 ebx: c1000170 ecx: 00000004 edx: 00000000
Apr 3 00:55:45 tek01 kernel: esi: c1000170 edi: 00000000 ebp: 00000000 esp: c14a5f2c
Apr 3 00:55:45 tek01 kernel: ds: 0018 es: 0018 ss: 0018
Apr 3 00:55:45 tek01 kernel: Process kswapd (pid: 2, stackpage=c14a5000)
Apr 3 00:55:45 tek01 kernel: Stack: c0203207 c02033d3 0000006a c1000170 c100018c 00000000 c14a5fa4 c100018c
Apr 3 00:55:45 tek01 kernel: c1000198 c1000198 00000282 00000023 c14a5fa4 c0122d9a 00000010 00000006
Apr 3 00:55:45 tek01 kernel: 00000004 c023aee0 c023aee0 00000007 c14a5f94 c023aefc c14a5fa4 c14a5f9c
Apr 3 00:55:45 tek01 kernel: Call Trace: [<c0203207>] [<c02033d3>] [<c0122d9a>] [<c012a4bb>] [<c012a5c3>] [<c0105000>] [<c0107513>]
Apr 3 00:56:38 tek01 kernel: Code: 0f 0b 83 c4 0c 89 f6 8b 46 18 a8 01 74 19 6a 6c 68 d3 33 20

>>EIP; c012aa35 <__free_pages_ok+95/2c0> <=====
Trace; c0203207 <tvecs+27e3/1515c>
Trace; c02033d3 <tvecs+29af/1515c>
Trace; c0122d9a <shrink_mmap+24a/320>
Trace; c012a4bb <do_try_to_free_pages+3b/b0>
Trace; c012a5c3 <kswapd+93/130>
Trace; c0105000 <empty_bad_page+0/1000>
Trace; c0107513 <kernel_thread+23/30>
Code; c012aa35 <__free_pages_ok+95/2c0>
00000000 <_EIP>:
Code; c012aa35 <__free_pages_ok+95/2c0> <=====
   0: 0f 0b ud2a <=====
Code; c012aa37 <__free_pages_ok+97/2c0>
   2: 83 c4 0c addl $0xc,%esp
Code; c012aa3a <__free_pages_ok+9a/2c0>
   5: 89 f6 movl %esi,%esi
Code; c012aa3c <__free_pages_ok+9c/2c0>
   7: 8b 46 18 movl 0x18(%esi),%eax
Code; c012aa3f <__free_pages_ok+9f/2c0>
   a: a8 01 testb $0x1,%al
Code; c012aa41 <__free_pages_ok+a1/2c0>
   c: 74 19 je 27 <_EIP+0x27> c012aa5c <__free_pages_ok+bc/2c0>
Code; c012aa43 <__free_pages_ok+a3/2c0>
   e: 6a 6c pushl $0x6c
Code; c012aa45 <__free_pages_ok+a5/2c0>
  10: 68 d3 33 20 00 pushl $0x2033d3

Apr 3 00:56:51 tek01 kernel: kernel BUG at page_alloc.c:108!
Apr 3 00:56:51 tek01 kernel: invalid operand: 0000
Apr 3 00:56:51 tek01 kernel: CPU: 0
Apr 3 00:56:51 tek01 kernel: EIP: 0010:[<c012aa54>]
Apr 3 00:56:51 tek01 kernel: EFLAGS: 00010296
Apr 3 00:56:51 tek01 kernel: eax: 00000020 ebx: c1000170 ecx: c023959c edx: c023959c
Apr 3 00:56:51 tek01 kernel: esi: c1000170 edi: ca3bbb08 ebp: 00000000 esp: cd6bdee8
Apr 3 00:56:51 tek01 kernel: ds: 0018 es: 0018 ss: 0018
Apr 3 00:56:51 tek01 kernel: Process cc1 (pid: 3316, stackpage=cd6bd000)
Apr 3 00:56:51 tek01 kernel: Stack: c0203207 c02033d3 0000006c c1000170 00000001 ca3bbb08 000000cd c012b312
Apr 3 00:56:51 tek01 kernel: 0116e600 00000001 c1000170 00000001 c012b36e c012b384 c1000170 c012b404
Apr 3 00:56:51 tek01 kernel: c1000170 00000120 001c7000 c011fa46 c1000170 c7c92c80 081c7000 c6bdf000
Apr 3 00:56:51 tek01 kernel: Call Trace: [<c0203207>] [<c02033d3>] [<c012b312>] [<c012b36e>] [<c012b384>] [<c012b404>] [<c011fa46>]
Apr 3 00:56:51 tek01 kernel: [<c0122408>] [<c0113ab5>] [<c01198b5>] [<c0119aaf>] [<c0109794>]
Apr 3 00:56:51 tek01 kernel: Code: 0f 0b 83 c4 0c 8d 76 00 8b 5e 44 bf ff ff ff ff 89 e9 d3 e7

>>EIP; c012aa54 <__free_pages_ok+b4/2c0> <=====
Trace; c0203207 <tvecs+27e3/1515c>
Trace; c02033d3 <tvecs+29af/1515c>
Trace; c012b312 <__delete_from_swap_cache+72/80>
Trace; c012b36e <delete_from_swap_cache_nolock+4e/70>
Trace; c012b384 <delete_from_swap_cache_nolock+64/70>
Trace; c012b404 <free_page_and_swap_cache+44/80>
Trace; c011fa46 <zap_page_range+186/220>
Trace; c0122408 <exit_mmap+b8/120>
Trace; c0113ab5 <mmput+15/30>
Trace; c01198b5 <do_exit+165/350>
Trace; c0119aaf <sys_exit+f/10>
Trace; c0109794 <system_call+34/40>
Code; c012aa54 <__free_pages_ok+b4/2c0>
00000000 <_EIP>:
Code; c012aa54 <__free_pages_ok+b4/2c0> <=====
   0: 0f 0b ud2a <=====
Code; c012aa56 <__free_pages_ok+b6/2c0>
   2: 83 c4 0c addl $0xc,%esp
Code; c012aa59 <__free_pages_ok+b9/2c0>
   5: 8d 76 00 leal 0x0(%esi),%esi
Code; c012aa5c <__free_pages_ok+bc/2c0>
   8: 8b 5e 44 movl 0x44(%esi),%ebx
Code; c012aa5f <__free_pages_ok+bf/2c0>
   b: bf ff ff ff ff movl $0xffffffff,%edi
Code; c012aa64 <__free_pages_ok+c4/2c0>
  10: 89 e9 movl %ebp,%ecx
Code; c012aa66 <__free_pages_ok+c6/2c0>
  12: d3 e7 shll %cl,%edi

Apr 3 01:03:07 tek01 kernel: kernel BUG at page_alloc.c:102!
Apr 3 01:03:17 tek01 kernel: invalid operand: 0000
Apr 3 01:03:17 tek01 kernel: CPU: 0
Apr 3 01:03:17 tek01 kernel: EIP: 0010:[<c012a9cd>]
Apr 3 01:03:17 tek01 kernel: EFLAGS: 00010292
Apr 3 01:03:17 tek01 kernel: eax: 00000020 ebx: 01297300 ecx: ffffffff edx: c0fc28e0
Apr 3 01:03:17 tek01 kernel: esi: c10000e0 edi: cc149944 ebp: 00000000 esp: c044fd68
Apr 3 01:03:17 tek01 kernel: ds: 0018 es: 0018 ss: 0018
Apr 3 01:03:17 tek01 kernel: Process cpp (pid: 3525, stackpage=c044f000)
Apr 3 01:03:17 tek01 kernel: Stack: c0203207 c02033d3 00000066 01297300 c10000e0 cc149944 c7f867e0 00000001
Apr 3 01:03:17 tek01 kernel: 01e3d200 01297300 c10000e0 cc149944 c0129f9c c0129fd4 08252000 cc149944
Apr 3 01:03:17 tek01 kernel: c7f867e0 08400000 01e3d200 c012a287 c7f867e0 08251000 cc149944 00000005
Apr 3 01:03:17 tek01 kernel: Call Trace: [<c0203207>] [<c02033d3>] [<c0129f9c>] [<c0129fd4>] [<c012a287>] [<c012a31b>] [<c012a41e>]
Apr 3 01:03:51 tek01 kernel: [<c012a51a>] [<c012a685>] [<c012af8d>] [<c012b02e>] [<c012b59c>] [<c0120c3c>] [<c01210a3>] [<c010fdd6>]
Apr 3 01:03:51 tek01 kernel: [<c010df31>] [<c01098cd>]
Apr 3 01:03:51 tek01 kernel: Code: 0f 0b 83 c4 0c 89 f6 89 f1 2b 0d ec ab 23 c0 8d 14 cd 00 00

>>EIP; c012a9cd <__free_pages_ok+2d/2c0> <=====
Trace; c0203207 <tvecs+27e3/1515c>
Trace; c02033d3 <tvecs+29af/1515c>
Trace; c0129f9c <try_to_swap_out+9c/220>
Trace; c0129fd4 <try_to_swap_out+d4/220>
Trace; c012a287 <swap_out_vma+167/1c0>
Trace; c012a31b <swap_out_mm+3b/70>
Trace; c012a41e <swap_out+ce/130>
Trace; c012a51a <do_try_to_free_pages+9a/b0>
Trace; c012a685 <try_to_free_pages+25/30>
Trace; c012af8d <zone_balance_memory+5d/90>
Trace; c012b02e <__alloc_pages+6e/b0>
Trace; c012b59c <read_swap_cache_async+5c/100>
Trace; c0120c3c <do_swap_page+2c/170>
Trace; c01210a3 <handle_mm_fault+113/180>
Trace; c010fdd6 <do_page_fault+176/4f0>
Trace; c010df31 <old_mmap+121/190>
Trace; c01098cd <error_code+2d/40>
Code; c012a9cd <__free_pages_ok+2d/2c0>
00000000 <_EIP>:
Code; c012a9cd <__free_pages_ok+2d/2c0> <=====
   0: 0f 0b ud2a <=====
Code; c012a9cf <__free_pages_ok+2f/2c0>
   2: 83 c4 0c addl $0xc,%esp
Code; c012a9d2 <__free_pages_ok+32/2c0>
   5: 89 f6 movl %esi,%esi
Code; c012a9d4 <__free_pages_ok+34/2c0>
   7: 89 f1 movl %esi,%ecx
Code; c012a9d6 <__free_pages_ok+36/2c0>
   9: 2b 0d ec ab 23 c0 subl 0xc023abec,%ecx
Code; c012a9dc <__free_pages_ok+3c/2c0>
   f: 8d 14 cd 00 00 00 00 leal 0x0(,%ecx,8),%edx

Apr 3 01:07:41 tek01 kernel: kernel BUG at page_alloc.c:108!
Apr 3 01:07:54 tek01 kernel: invalid operand: 0000
Apr 3 01:07:54 tek01 kernel: CPU: 0
Apr 3 01:07:54 tek01 kernel: EIP: 0010:[<c012aa54>]
Apr 3 01:07:54 tek01 kernel: EFLAGS: 00010292
Apr 3 01:07:54 tek01 kernel: eax: 00000020 ebx: c1000128 ecx: ffffffff edx: cc211140
Apr 3 01:07:54 tek01 kernel: esi: c1000128 edi: 081daefc ebp: 00000000 esp: cbe4fe74
Apr 3 01:07:54 tek01 kernel: ds: 0018 es: 0018 ss: 0018
Apr 3 01:07:54 tek01 kernel: Process cc1 (pid: 3372, stackpage=cbe4f000)
Apr 3 01:07:54 tek01 kernel: Stack: c0203207 c02033d3 0000006c c1000128 00004025 081daefc c1000128 c012b312
Apr 3 01:07:54 tek01 kernel: 01361b00 00000001 c1000128 00004025 c012b36e c012b384 00000000 c0120686
Apr 3 01:07:54 tek01 kernel: c1000128 c244c080 cbe4e000 081daefc c6b3c8a0 cbe4e000 0807d0ea c6b3c4e0
Apr 3 01:07:54 tek01 kernel: Call Trace: [<c0203207>] [<c02033d3>] [<c012b312>] [<c012b36e>] [<c012b384>] [<c0120686>] [<c01210ca>]
Apr 3 01:07:55 tek01 kernel: [<c010fdd6>] [<c012260b>] [<c0122757>] [<c012228b>] [<c01212e0>] [<c01098cd>]
Apr 3 01:07:55 tek01 kernel: Code: 0f 0b 83 c4 0c 8d 76 00 8b 5e 44 bf ff ff ff ff 89 e9 d3 e7

>>EIP; c012aa54 <__free_pages_ok+b4/2c0> <=====
Trace; c0203207 <tvecs+27e3/1515c>
Trace; c02033d3 <tvecs+29af/1515c>
Trace; c012b312 <__delete_from_swap_cache+72/80>
Trace; c012b36e <delete_from_swap_cache_nolock+4e/70>
Trace; c012b384 <delete_from_swap_cache_nolock+64/70>
Trace; c0120686 <do_wp_page+b6/2a0>
Trace; c01210ca <handle_mm_fault+13a/180>
Trace; c010fdd6 <do_page_fault+176/4f0>
Trace; c012260b <merge_segments+1b/190>
Trace; c0122757 <merge_segments+167/190>
Trace; c012228b <do_brk+11b/150>
Trace; c01212e0 <sys_brk+100/160>
Trace; c01098cd <error_code+2d/40>
Code; c012aa54 <__free_pages_ok+b4/2c0>
00000000 <_EIP>:
Code; c012aa54 <__free_pages_ok+b4/2c0> <=====
   0: 0f 0b ud2a <=====
Code; c012aa56 <__free_pages_ok+b6/2c0>
   2: 83 c4 0c addl $0xc,%esp
Code; c012aa59 <__free_pages_ok+b9/2c0>
   5: 8d 76 00 leal 0x0(%esi),%esi
Code; c012aa5c <__free_pages_ok+bc/2c0>
   8: 8b 5e 44 movl 0x44(%esi),%ebx
Code; c012aa5f <__free_pages_ok+bf/2c0>
   b: bf ff ff ff ff movl $0xffffffff,%edi
Code; c012aa64 <__free_pages_ok+c4/2c0>
  10: 89 e9 movl %ebp,%ecx
Code; c012aa66 <__free_pages_ok+c6/2c0>
  12: d3 e7 shll %cl,%edi

1 warning issued. Results may not be reliable.

[6.] A small shell script or example program which triggers the
     problem (if possible)

make -j bzImage on linux-2.3.99-pre4-2 triggered the problem.

[7.] Environment

AMD K6-2@333 with 256MB RAM and approx. 3GB swap. Less than 5% swap were
used at the first BUG() occured.

[7.1.] Software (add the output of the ver_linux script here)

-- Versions installed: (if some fields are empty or look
-- unusual then possibly you have very old versions)
Linux tek01 2.3.99-pre4 #3 Sun Apr 2 18:18:19 CEST 2000 i586 unknown
Kernel modules 2.3.10
Gnu C egcs-2.91.66
Binutils 2.9.1.0.25
Linux C Library x 1 root root 4223971 Nov 6 17:22
/lib/libc.so.6
Dynamic linker ldd (GNU libc) 2.1.2
Procps 2.0.2
Mount 2.9z
Net-tools 1.53
Kbd 0.99
Sh-utils 2.0
Modules Loaded ad1816 sound soundcore ipt_MASQUERADE ipt_LOG
ipt_state iptable_filter ip_nat_ftp iptable_nat ip_conntrack_ftp
ip_conntrack ip_tables 8139too hisax isdn

[7.2.] Processor information (from /proc/cpuinfo):

processor : 0
vendor_id : AuthenticAMD
cpu family : 5
model : 8
model name : AMD-K6(tm) 3D processor
stepping : 0
cpu MHz : 332.764798
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 sep mmx 3dnow
bogomips : 663.55

[7.3.] Module information (from /proc/modules):

ad1816 8480 1 (autoclean)
sound 62956 0 (autoclean) [ad1816]
soundcore 3908 5 (autoclean) [sound]
ipt_MASQUERADE 1352 1 (autoclean)
ipt_LOG 3440 2 (autoclean)
ipt_state 900 2 (autoclean)
iptable_filter 1960 0 (autoclean) (unused)
ip_nat_ftp 3236 0 (unused)
iptable_nat 13088 1 [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack_ftp 1872 0 (unused)
ip_conntrack 12068 3 [ipt_MASQUERADE ipt_state ip_nat_ftp
iptable_nat ip_conntrack_ftp]
ip_tables 12304 7 [ipt_MASQUERADE ipt_LOG ipt_state
iptable_filter iptable_nat]
8139too 14804 1 (autoclean)
hisax 138976 2
isdn 121984 3 [hisax]

[7.4.] SCSI information (from /proc/scsi/scsi)

not loaded

-- 
              E-Mail: tek@thorsten-knabe.de
___              WWW: http://tek.thorsten-knabe.de
 |        | /    ICQ: 5472045
 |horsten |/\nabe     Linux AD1816 sound driver developer

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:09 EST