Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113537 - 2.6.14-gentoo-r2 gentoo-sources: kernel BUG at mm/mmap.c:1965!
Summary: 2.6.14-gentoo-r2 gentoo-sources: kernel BUG at mm/mmap.c:1965!
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 01:15 UTC by Alexander Ivanchev
Modified: 2007-01-10 19:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Ivanchev 2005-11-25 01:15:37 UTC
While emerging lftp emerge crashed, upon examining dmesg a noticed there's a
kernel crash at mmap:

Unable to handle kernel paging request at virtual address 00523000
 printing eip:
c013e433
*pde = 00000000
Oops: 0002 [#1]
PREEMPT 
CPU:    0
EIP:    0060:[<c013e433>]    Not tainted VLI
EFLAGS: 00010016   (2.6.14-gentoo-r2) 
EIP is at free_block+0x43/0xd0
eax: c7b52000   ebx: c13e8000   ecx: c13e8804   edx: 00523000
esi: c7fedd60   edi: c7fefcc0   ebp: 00000038   esp: c688bdc8
ds: 007b   es: 007b   ss: 0068
Process emerge (pid: 25586, threadinfo=c688a000 task=c1c25ad0)
Stack: 0000003c c7fe9410 c7feec00 c7fefcc0 c76cc5f4 c7fe9410 c013e518 00000000 
       0000003c c7fe9400 c7fe9400 00000292 c76cc5f4 c688a000 c013e6ef c76ccac4 
       c76cc5f4 c50e9040 c014872a 00000000 ffffffff c688be28 00000000 c046ec2c 
Call Trace:
 [<c013e518>] cache_flusharray+0x58/0x100
 [<c013e6ef>] kmem_cache_free+0x3f/0x50
 [<c014872a>] exit_mmap+0x11a/0x150
 [<c0118462>] mmput+0x32/0xb0
 [<c015e146>] exec_mmap+0xc6/0x170
 [<c015e361>] flush_old_exec+0xe1/0x890
 [<c012e0c0>] autoremove_wake_function+0x0/0x50
 [<c0152cd9>] get_unused_fd+0x29/0xd0
 [<c018078a>] load_elf_binary+0x38a/0xc60
 [<c0139a70>] prep_new_page+0x40/0x70
 [<c0139ff4>] buffered_rmqueue+0x104/0x1e0
 [<c024f95a>] copy_from_user+0x3a/0x80
 [<c0180400>] load_elf_binary+0x0/0xc60
 [<c015ed75>] search_binary_handler+0x75/0x170
 [<c015efb7>] do_execve+0x147/0x1d0
 [<c0101979>] sys_execve+0x39/0x90
 [<c0102cab>] sysenter_past_esp+0x54/0x75
Code: 24 04 8b 15 90 d1 47 c0 8b 0c a8 8d 81 00 00 00 40 c1 e8 0c c1 e0 05 8b 5c
10 1c 8b 44 24 1c 8b 53 04 8b 74 87 14 8b 03 89 50 04 <89> 02 31 d2 2b 4b 0c c7
03 00 01 10 00 c7 43 04 00 02 20 00 89 
 <6>note: emerge[25586] exited with preempt_count 1
------------[ cut here ]------------
kernel BUG at mm/mmap.c:1965!
invalid operand: 0000 [#2]
PREEMPT 
CPU:    0
EIP:    0060:[<c014874a>]    Not tainted VLI
EFLAGS: 00010202   (2.6.14-gentoo-r2) 
EIP is at exit_mmap+0x13a/0x150
eax: 0000004c   ebx: 00000000   ecx: c7fefcc0   edx: c487a754
esi: 00000000   edi: 00000001   ebp: c688a000   esp: c688be60
ds: 007b   es: 007b   ss: 0068
Process emerge (pid: 25589, threadinfo=c688a000 task=c1c25ad0)
Stack: 00000000 ffffffff c688be74 00000000 c046ec2c 000007fb c431adc0 c431adfc 
       00000000 0000000b c0118462 c688a000 c1c25ad0 c011cb48 0000000a 00000000 
       0000000b c688bfbc 00000001 c782b200 0000000b c688a000 c688a000 c011ce4f 
Call Trace:
 [<c0118462>] mmput+0x32/0xb0
 [<c011cb48>] do_exit+0xd8/0x370
 [<c011ce4f>] do_group_exit+0x2f/0xa0
 [<c0126026>] get_signal_to_deliver+0x1f6/0x330
 [<c0102ac0>] do_signal+0x60/0x140
 [<c0369080>] do_page_fault+0x0/0x5c5
 [<c010379b>] error_code+0x4f/0x54
 [<c0369300>] do_page_fault+0x280/0x5c5
 [<c0369080>] do_page_fault+0x0/0x5c5
 [<c0102bd7>] do_notify_resume+0x37/0x3c
 [<c0102d96>] work_notifysig+0x13/0x19
Code: 00 8b 5e 0c 89 f0 e8 d6 de ff ff 89 de 85 f6 75 f0 8b bf 8c 00 00 00 85 ff
75 10 83 c4 18 5b 5e 5f 5d c3 0f 20 d8 0f 22 d8 eb 94 <0f> 0b ad 07 4d 43 39 c0
eb e6 e8 27 f2 21 00 eb d1 90 8d 74 26 
 <1>Fixing recursive fault but reboot is needed!
Unable to handle kernel paging request at virtual address ca0ff4cc
 printing eip:
c013e451
*pde = 00000000
Oops: 0002 [#3]
PREEMPT 
CPU:    0
EIP:    0060:[<c013e451>]    Not tainted VLI
EFLAGS: 00010013   (2.6.14-gentoo-r2) 
EIP is at free_block+0x61/0xd0
eax: 00ffffff   ebx: c13e8000   ecx: 02345d2c   edx: 00000018
esi: c7fedd60   edi: c7fefcc0   ebp: 00000004   esp: c7f93edc
ds: 007b   es: 007b   ss: 0068
Process events/0 (pid: 3, threadinfo=c7f92000 task=c7fc9030)
Stack: 00000018 c7fe9410 c7fe9410 c7fe9400 00000018 00000000 c013ebe3 00000000 
       c7fefcc0 c7fe0fb0 c7fedd60 00000002 c7fefcc0 c013ecb3 00000000 c7f92000 
       c7fe0fb0 c7f92000 c7f92000 c7fefd0c c7fc9158 c047d080 00000293 c047d084 
Call Trace:
 [<c013ebe3>] drain_array_locked+0x73/0xc0
 [<c013ecb3>] cache_reap+0x83/0x1e0
 [<c0129f0e>] worker_thread+0x1ae/0x280
 [<c013ec30>] cache_reap+0x0/0x1e0
 [<c0117140>] default_wake_function+0x0/0x10
 [<c0117140>] default_wake_function+0x0/0x10
 [<c0129d60>] worker_thread+0x0/0x280
 [<c012dbc5>] kthread+0x95/0xd0
 [<c012db30>] kthread+0x0/0xd0
 [<c0100f55>] kernel_thread_helper+0x5/0x10
Code: 1c 8b 53 04 8b 74 87 14 8b 03 89 50 04 89 02 31 d2 2b 4b 0c c7 03 00 01 10
00 c7 43 04 00 02 20 00 89 c8 f7 77 10 89 c1 8b 43 14 <89> 44 8b 1c ff 4b 10 89
4b 14 8b 46 18 40 89 46 18 8b 53 10 85 
 <6>note: events/0[3] exited with preempt_count 1
Unable to handle kernel NULL pointer dereference at virtual address 00000008
 printing eip:
c015483c
*pde = 00000000
Oops: 0000 [#4]
PREEMPT 
CPU:    0
EIP:    0060:[<c015483c>]    Not tainted VLI
EFLAGS: 00010282   (2.6.14-gentoo-r2) 
EIP is at __fput+0x1c/0x150
eax: 00000000   ebx: c7f92000   ecx: c5d7c2ac   edx: c76c7b40
esi: c76c7b40   edi: c76c7b40   ebp: c431a040   esp: c7f93f54
ds: 007b   es: 007b   ss: 0068
Process cron (pid: 25590, threadinfo=c7f92000 task=c7fc9030)
Stack: c7ac22dc 00000000 c7f92000 c5d7c284 c76c7b40 c431a040 c0146651 00000000 
       c431a040 c5d7c284 c0147f1e b7dea000 b7de9000 c01482c8 b7de9000 b7dea000 
       c76cc6a4 c431a040 c431a070 ffff0001 c7f92000 c0148370 b7de9000 80010670 
Call Trace:
 [<c0146651>] remove_vm_struct+0x51/0x90
 [<c0147f1e>] unmap_vma_list+0xe/0x20
 [<c01482c8>] do_munmap+0xe8/0x150
 [<c0148370>] sys_munmap+0x40/0x70
 [<c0102cab>] sysenter_past_esp+0x54/0x75
Code: d0 e9 09 00 00 00 89 f6 8d bc 27 00 00 00 00 83 ec 18 89 5c 24 08 89 74 24
0c 89 c6 89 7c 24 10 89 6c 24 14 8b 40 08 89 44 24 04 <8b> 78 08 8b 48 20 0f b7
46 1c 8b 6e 0c 83 e0 02 83 f8 01 0f b7 


Reproducible: Couldn't Reproduce
Steps to Reproduce:
1.
2.
3.




System is an Athlon XP 2000+
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-11-25 03:38:36 UTC
Please post "emerge --info" to every bug that you file.

Have you been able to reproduce this?
Comment 2 Alexander Ivanchev 2005-11-25 09:51:45 UTC
Nope, 2nd attempt of emerging lftp went all good..

emerge info:

dmz ~ # emerge --info
Portage 2.0.53_rc7 (hardened/x86/2.6, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -ffast-math -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -ffast-math -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache digest distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo/ http://gentoo.inode.at/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo.itdnet.net/gentoo-portage"
USE="x86 3dnow 7zip GAPING_SECURITY_HOLE X509 acl acpi apache2 async authdaemond
automount bash-completion bcmath berkdb big-tables bind-mysql bitmap-fonts bzip2
bzlib calendar caps cdb chroot clamav courier crypt curl curlwrappers dba dbus
dbx dlloader ecc erandom ethereal exif expat extensions fbcon flatfile
follow-xff font-server fontconfig freetds ftp gd gd-external gdbm gif
glibc-compat20 glibc-omitfp gmp gpgme gpm gtk2 gtkhtml hal hardened howl hpn hub
iconv icq idea idn imagemagick imap innodb ipalias ithreads javascript jbig jpeg
jpeg2k justify lcms ldap libclamav libwww logrotate lzw lzw-tiff maildir mcal
md5sum memlimit mhash mime mmap mmx moznocompose moznoirc moznomail mpm-worker
mssql mysql ncurses nfs nfsv4 nls nntp no-old-linux nocardbus nomac nomultilib
notlsbeforeauth nptl nptlonly ntlm oav offensive on-the-fly-crypt pam pam_chroot
pam_console pam_timestamp parse-clocks pcntl pcre perl perlsuid php pic png pop
posix postfix prelude pwdb python quotas readline rle rss samba sasl savedconfig
session sftplogging shared sharedmem skey smime sockets socks5 spamassassin
spell spf sse ssl symlink tcpd threads tiff tokenizer tools truetype
truetype-fonts type1-fonts ucs2 udev unicode urandom utf8 vda wmf xml xml2 xpm
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 Alexander Ivanchev 2005-11-25 09:54:45 UTC
Just to note that it's my server system, and it's generally 100% stable...
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-11-26 03:52:37 UTC
Ok, this is very difficult to diganose if it is not reproducible. I reported it
to the upstream developers anyway. Please reopen if it happens again.
Comment 5 evan 2007-01-10 18:41:35 UTC
(In reply to comment #4)
> Ok, this is very difficult to diganose if it is not reproducible. I reported it
> to the upstream developers anyway. Please reopen if it happens again.

I have the same error when I want to emerge some big lib like libX11 ans it's happen each time. I just install gentoo on this pc it's started when I want to emerge net-fs/samba and I found a tips: to put LDFLAGS="" in /etc/make.conf I did it and miracle the emerge was successfull but now I can't merge xorg-X11
and I'm afraid that will be the same result for big compilation like mplayer
My emerge --info:
Gentoo Base System version 1.12.1
Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r6 x86_64 AMD Sempron(tm) Processor 2800+
Last Sync: Tue, 09 Jan 2007 11:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -msse3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol berkdb bitmap-fonts cli cracklib crypt cups dlloader dri elibc_glibc fortran gdbm gpm iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nvidia xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Thanks for your help
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-01-10 19:17:59 UTC
Please open a new bug for your issues