Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465404 - kernel 3.7.10 - XFS (hda6): Internal error xfs_trans_cancel at line 1477 of file fs/xfs/xfs_trans.c. Caller 0xc11ee8f0 (when out of memory)
Summary: kernel 3.7.10 - XFS (hda6): Internal error xfs_trans_cancel at line 1477 of f...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-10 15:42 UTC by Paul Osmialowski
Modified: 2013-04-14 11:49 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 Paul Osmialowski 2013-04-10 15:42:32 UTC
I had a filesystem crash when I tried to upgrade ghc to version 4.7.2 during stage2 of building with llvm use flag. This was on kernel 3.5.7-gentoo on an i686 32-bit machine.
I have upgraded kernel on this machine to 3.7.10-gentoo and tried again. This time I looked at dmesg to see the reason for the crash:

[42726.783173] vmap allocation for size 4194304 failed: use vmalloc=<size> to increase size.
[42726.783192] vmap allocation for size 4194304 failed: use vmalloc=<size> to increase size.
[42726.783204] vmap allocation for size 4194304 failed: use vmalloc=<size> to increase size.
[42726.783215] XFS (hda6): xfs_buf_get_map: failed to map pages

[42726.783224] XFS (hda6): Internal error xfs_trans_cancel at line 1477 of file fs/xfs/xfs_trans.c.  Caller 0xc11ee8f0

[42726.783230] Pid: 30355, comm: as Tainted: P           O 3.7.10-gentoo #1
[42726.783233] Call Trace:
[42726.783244]  [<c12288d2>] ? xfs_trans_cancel+0xc0/0xdd
[42726.783251]  [<c11ee8f0>] ? xfs_create+0x239/0x501
[42726.783256]  [<c11ee8f0>] ? xfs_create+0x239/0x501
[42726.783261]  [<c11e6d0c>] ? xfs_vn_mknod+0x80/0x187
[42726.783265]  [<c11e6e32>] ? xfs_vn_mkdir+0x1f/0x1f
[42726.783271]  [<c10e8031>] ? vfs_create+0x6f/0xae
[42726.783275]  [<c10e73a5>] ? lookup_dcache+0x24/0x91
[42726.783280]  [<c10ea871>] ? do_last.isra.55+0x6f3/0xa90
[42726.783284]  [<c10e820f>] ? link_path_walk+0x53/0x745
[42726.783289]  [<c10eaca6>] ? path_openat.isra.56+0x98/0x3b7
[42726.783295]  [<c10cbabd>] ? handle_pte_fault+0x83/0x611
[42726.783300]  [<c10eb22c>] ? do_filp_open+0x2b/0x70
[42726.783305]  [<c10deb67>] ? do_sys_open+0xf8/0x1bb
[42726.783309]  [<c10cef5a>] ? do_munmap+0x225/0x27a
[42726.783314]  [<c10dec56>] ? sys_open+0x2c/0x34
[42726.783320]  [<c164dfbc>] ? syscall_call+0x7/0xb
[42726.783324] XFS (hda6): xfs_do_force_shutdown(0x8) called from line 1478 of file fs/xfs/xfs_trans.c.  Return address = 0xc12288ea
[42726.856124] XFS (hda6): Corruption of in-memory data detected.  Shutting down filesystem
[42726.856134] XFS (hda6): Please umount the filesystem and rectify the problem(s)
[42727.776021] XFS (hda6): xfs_log_force: error 5 returned.
[42757.856044] XFS (hda6): xfs_log_force: error 5 returned.
[42787.936033] XFS (hda6): xfs_log_force: error 5 returned.
[42818.016020] XFS (hda6): xfs_log_force: error 5 returned.


Reproducible: Didn't try

Steps to Reproduce:
1. format /var with xfs filesystem
2. type: USE="llvm" emerge ghc
3. wait one hour or so

Actual Results:  
crash, possibly damage to data

Expected Results:  
no crash

After previous crash I've lost all my KDE settings (how come? this will remain a mystery for me forever), so please don't expect much of help in this issue from me - this is potentially disasterous operation, so I won't try to do it again.

This system has a little RAM:
$ free
             total       used       free     shared    buffers     cached
Mem:       2067436    1774552     292884          0          4    1311060
-/+ buffers/cache:     463488    1603948
Swap:      2104508     652576    1451932

However, amount of RAM should not act as an excuse for leaking filesystem driver.
I got a feeling that XFS suffers from lack of maintenance nowadays, recently I used to have repeating problems with crash on unmount when I was using 3.5.7 kernel. So far it did not happend with 3.7.10 but I got a feeling that it's just a matter of time. Things like this did not happend to XFS in the past (say, year ago), no matter how much RAM was installed in the host.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-10 15:44:40 UTC
Please post your `emerge --info' output in a comment.
Comment 2 Paul Osmialowski 2013-04-10 17:39:15 UTC
Portage 2.1.11.55 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo i686)
=================================================================
System uname: Linux-3.7.10-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.1
KiB Mem:     2067436 total,    536668 free
KiB Swap:    2104508 total,   2104508 free
Timestamp of tree: Wed, 10 Apr 2013 03:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.4.6, 2.6.8, 2.7.3-r3, 3.1.5, 3.2.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.5, 1.6.3, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo armagetron
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/polkit-1/actions /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/armagetron"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit-indices 24bpp 32bit 7zip R X Xaw3d a52 aac aacplus aacs aalib abiword accessibility acl acoustid acpi adns adplug ads aesicm afp akode akonadi alias alisp allegro alsa alstream amr amrnb amrwb analitza angelscript animgif ao apbs aplaymidi apng applet archive arpack artworkextra asf asn aspell ass assistant asyncns athena attica attrib audacious audio audiofile auth automount autoreplace autotrace aux_xml avalon-framework avalon-logkit avantgo avcodec avformat awt background badval bash-completion bazaar bcmath berkdb bidi bitmap bittorrent bl blas blaster blender-game blksha1 bluetooth bluray boehm-gc bonjour bonobo bookmarks boost branding bs2b bzip2 cache cairo calendar canberra caps caps-ng capslib catalogs cblas cdda cddax cdf cdio cdparanoia cdr cdrtools cegui celt cg cgraph chappa chardet chdir chicken chm ciao city clamd clamdtop cli client clipboard clisp clucene cluster clutter collab colord combination-explosion-check common-lisp community compat connectionstatus consolekit contactnotes context contrast contrib corefonts coverart cpufreq cracklib cramfs crashreporter creds cron crypt cscope css ctype ctypes-python cuda cue cups curl cursors cvs cxx d data dbase dbi dbus dc1394 ddate debugger declarative default-font deprecated designer designer-plugin desktopglobe detex devfs-compat devhelp device-mapper devil dht dia digitalradio dirac discard-path discouraged djbfft djvu dmi dnd docbook doctool dot double-precision dri drmaa dsdp dselect dssi dtmf dts dv dvb dvbpsi dvd dvdnav dvdr dvi dvi2tty dvipdfm dynamic e2fsprogs eap-tls ebook eclipse edd edit editor eds egl eigen elf elisp emacs embedded emf emoticons-manager emovix enca enchant encode enscript eolconv epiphany equalizer escreen eselect ethernet etiquette excel exceptions exif expat expoblending extensions external-fuse extra extra-cardsets extra-tools extrafilters extramodules extras faac faad facedetect fam fame farstream fat fax festival ffamber ffmpeg fftw filecaps fileinfo filter filters findbugs finger fingerprint firefox firefox3 fits flac flash floppy fltk fluidsynth fontconfig fontforge foomaticdb fortran fortran2003 fox fping fpx frei0r ftd2xx ftdi ftp fts3 fuse g15 g3dvl gadu gallium games gcdmaster gcode gconf gcrypt gd gdal gdbm gdm gdu gecko gedit geoip geoloc geolocation geonames geos ggi gif gimp ginac git gjdoc glade glep glew glitz gloox glpk glut gmath gme gml gmp gmplayer gnet gnokii gnome gnome-keyring gnomecd gnumeric gnuplot gnutls google gopher gpg gphoto2 gpm gps gpu grammar graphics graphicsmagick graphite graphviz groupwise grp grub gs gsettings gsf gsl gsm gsmloc gssapi gstreamer gtk gtk3 gtkhtml gtkstyle gudev guile gunit gzip-el h224 h281 h323 hal handbook hardcoded-tables hash hdf hdf5 health help heterogeneous highlight hipe hires-icons history hlapi hog hostip hotpixels howl-compat hpcups hpijs html http humanities hunspell hwdb i18n iax ical icecast icons iconv icu id3 id3tag idn ieee1394 ifp ilbc image image-cache imagemagick imaging imlib infinality inherit-graph inifile inkjar inotify internal-fltk intl introspection iodbc ipc iplayer ipod iproute2 iptables ipv6 ipython irc irrlicht isag it3tag itk jabber jack jadetex jai java java5 java6 javacomm javamail javascript jbig jit jmf jms joystick jpeg jpeg2k json kate kde kdm kdrive kexiv2 keymap kig-scripting kipi kmod kontact kpathsea ladspa lame lapack largefile lash lasi lastfm lastfmradio latex latex3 lcdfilter lcms ldap ldap-sasl ldapdb ldb ldos leim less levels libadns libass libburn libcaca libcanberra libclamav libdsk libextractor libffi libgda libkms libmms libmpeg2 libnotify libs libsamplerate libssh2 libssp libsysfs libtar libtiger libv4l libv4l2 libvisual libwww libxml2 libyaml lid lightning linuxkeys lirc listen-queue live llvm lm_sensors log4j logitech-mouse logrotate lpsol lqr lua luatex lucene lvm1 lxde lyx lzma lzo m17n-lib m4lib-png mad magic mail manual maps math mathml matplotlib matroska mbox mclib mcve md5sum mdns-bundled mdnsresponder-compat mediawiki memmap mercurial metalink metis metric mew mhash midi mikmod mime minizip mixer mjpeg mmap mms mmx mng mod modplug modules mono moonlight motif mouse moviepack moviesounds mozdevelop mozdom mozilla mozsha1 mp2 mp3 mp3tunes mp4 mpeg mpg123 mpi mplayer mpx msn mta mtp mudflap mule multimedia mumble musepack music musicbrainz mvl mzscheme natspec nautilus ncat ncurses ndiff neXt nelma net netapi netbeans netcdf netlink netpbm nettle network networking new-clx new-login nextaw nfsdcld nfsidmap nfsv3 nfsv4 nfsv41 nio-buffers nis njb nls nntp no-old-linux nodrm nogyroscopic nokia nominatim normalize nowlistening nping npp nptl nsplugin nss ntfs ntfsprogs ntlm ntlm_unsupported_patch ntp numpy nut nuv nvidia nvtt nyx objc objc++ objc-gc ocaml ocamlopt ocr octave odbc ode offensive offscreen ofx ogdi ogg ogg123 ogm ois okteta okular omega omxil opal openal opencl opencore-amr openexr opengl openldap openmedia openmp openrc openssl openxml opus orc oscar osdmenu osgapps osmesa oss otp otr ots overlays pac pager pam pango pari parport password pasteafter pbs pcap pci pcntl pcre pcsc-lite pda pdf pdfannotextractor pdo perl perl-geoipupdate pg-intdatetime pgm phar phonon php physfs pipe pixmaps pkinit places plasma player playlist playtools plot plotutils plugins pm-utils pnat png pnm policykit poppler-data portaudio posix postgres postproc postscript povray powerkadu ppds ppp presto preview-latex prison private-headers profiler proj projectm ps pstricks pth publishers pvr pyglet python qalculate qhull qimageblitz qos qpak qrupdate qscintilla qt-bundled qt-faststart qt-static qt3 qt3support qt4 qthelp quicktime quotes qwt radio raptor rar raw rcs readline recursion-limit redeyes redland reflection regex remote remoteosd resid reviewboard rle romio rpm rrdtool rss rtc rtf rtmp rtsp ruby rups samba sametime sasl sbc scale0tilt scanner schroedinger science screen script scripting scripttools scsi sctp sdk sdl sdl-image sdl-sound sdlgfx segger semantic-desktop sensord serial servletapi session sftp sge shaders shapefile shared-glapi sharedext sharedmem shine shm shmvideo shout sid sift sigsegv simplexml sip sipim skins skype slang smbclient smbkrb5passwd smbtav2 smi smime smp smpeg sms sna sndfile snmp soap sockets solver sound soundex sounds soundtouch soup sourceview sox sparse speech speex spell spidermonkey spl splash sql sqlite sqlite3 srtp sse sse2 sse2check ssl startup-notification static-analyzer statistics stats stl stream stun subject-rewrite subtitles subversion suhosin supernodal svg svm swat swig switcher swscale syslog system-mpmath systemtap sysvipc szip t1lib taglib tbb tcl tcpd tdb tdbtest teamarena telepathy teletext telnet test-framework tex4ht texmacs texteffect tga themedesigner themes theora thesaurus thin thin-splines threads threadsafe thumbnail thumbnails tidy tiff tilepath timezone timidity tinfo tk tokenizer toolame toolbar toolkit-scroll-bars tools toporouter totem track-src-odirect traits translator tremor truetype tta twisted twolame type3 udev udev-acl udis86 udisks umfpack unicode unlock-notify usb utempter utils uudeview uuid v4l v4l2 vaapi vala valgrind vamp vapigen vcd vcdinfo vcdx vdpau vdr versaloon verse vhook video vidix vim-pager vim-with-x virtuoso visualization vlm vmd vmware-tools vnc voice vorbis vpx vst wad wallpapers watchdog wav wavpack wddx weather web webdav webdav-neon webdav-serf webgl webkit webkit2 webm webp widescreen win32codecs winbind wininst winpopup wma wma-fixed wmf wordperfect wxwidgets wxwindows x264 x86 xa xanim xbase xcap xcb xchatdccserver xcomposite xemacs xembed xerces-c xetex xext xface xforms xforward xfs xft xgetdefault xindy xine xinerama xinetd xml xmldoclet xmlpatterns xmlreader xmlrpc xmlwriter xmp xmpp xnest xorg xorgmodule xosd xpdf-headers xpm xrandr xrender xscreensaver xsl xslt xterm xulrunner xv xvfb xvid xvmc xz yahoo yahoo-geo yaz youtube yp yv12 zip zlib zvbi" ABI_X86="32" ALSA_CARDS="emu10k1 emu10k1x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon spca50x template ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy nv nvidia v4l r128 intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Mike Pagano gentoo-dev 2013-04-14 11:49:09 UTC
There are some reports of this through the years, with data loss being a possibility.  Most reporters understandable feel like you do and do not want to test further and risk losing data or worse.

I'm closing this as upstream, as this really should go there. If you want to pursue it further with them, please see:

http://xfs.org/index.php/XFS_FAQ#Q:_What_information_should_I_include_when_reporting_a_problem.3F


and:

http://oss.sgi.com/bugzilla/buglist.cgi?product=XFS&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED

If you do open a bug, they will probably look for to you for more testing.  Please post the link to the bug if that's the route you choose to take.