emerging libxml2-2.6.21: crash nautilus (nil) : Freed() xmlMallocBreakpoint reached on block 0 crash also evolution es menu class init *** glibc detected *** free(): invalid pointer: 0x0815f5e8 *** Reproducible: Always Steps to Reproduce: 1.emerge -uD world 2.startx 3. see up Actual Results: crash nautilus (nil) : Freed() xmlMallocBreakpoint reached on block 0 crash also evolution es menu class init *** glibc detected *** free(): invalid pointer: 0x0815f5e8 *** echo "=dev-libs/libxml2-2.6.21" >> /etc/portage/package.mask solve the pb
just for info ;) Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo i686) ================================================================= System uname: 2.6.13-gentoo i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.12.0_pre8 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.3.5-r1, 2.4.1-r1 sys-apps/sandbox: 1.2.12 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/mnt/portage/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="fr_FR@euro" LINGUAS="fr" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/mnt/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex 3dnowext X Xaw3d a52 aalib acpi alsa apache2 apm arts avi bash-completion bdf berkdb bitmap-fonts bonobo cdr clamav crypt cups curl dga divx4linux dv dvd dvdr dvdread eds emboss encode esd fam fame flac font-server foomaticdb fortran gd gdbm gif gimpprint glep gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb ipalias ipv6 jack java jikes joystick jpeg junit kde krb4 ldap libg++ libwww lzo mad maildir mailwrapper mdb mikmod mjpeg mmx mmxext motif mozilla mp3 mpeg mysql nas ncurses network nls odbc offensive ogg oggvorbis opengl oss pam pdflib perl pic png postgres ppds pvm python qt quicktime readline samba sasl scanner sdl slang slp speex spell sqlite sse ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb v4l vorbis wmf xine xml xml2 xmms xv xvid zlib linguas_fr userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS will try to find why at night two boxes crash the same, one not but less packages merged on it ;)
found in compilation log: +`/var/tmp/portage/libxml2-2.6.21/work/libxml2-2.6.21/python' /usr/bin/python ./generator.py . /usr/lib/python2.4/xmllib.py:9: DeprecationWarning: The xmllib module is +obsolete. Use xml.sax instead. warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", +DeprecationWarning) Found 1579 functions in libxml2-api.xml Found 53 functions in libxml2-python-api.xml Generated 873 wrapper functions, 547 failed, 212 skipped Missing type converters: xmlRelaxNGValidityErrorFunc *:2 xmlXPathObjectPtr:22 const htmlEntityDesc *:2 +xmlOutputMatchCallback:1 xmlElementContentPtr *:1 xmlStructuredErrorFunc:3 +xmlSchematronValidCtxtPtr:2 xmlParserInputBufferCreateFilenameFunc:2 +xmlSchemaValType:2 size_t:1 xmlEnumerationPtr:5 xmlSchemaWildcardPtr:1 +xmlXIncludeCtxtPtr:4 xmlRelaxNGValidityErrorFunc:2 xmlSAXHandler *:4 ...:1 +xmlShellReadlineFunc:1 xmlDict *:1 xmlAutomataPtr:19 xmlParserInputPtr:17 +xmlCatalogAllow:2 xmlExpNodePtr:3 xmlElementContent *:1 +xmlCharEncodingOutputFunc:1 xmlDictPtr:10 xmlTextWriterPtr:77 const +htmlElemDesc *:1 xmlIDPtr:1 xmlSchemaValPtr:13 xmlInputMatchCallback:1 +xmlElementTablePtr:2 xmlChar **:15 xmlXPathCompExprPtr:5 +xmlTextReaderErrorFunc:1 xmlExternalEntityLoader:2 xmlNotationTablePtr:2 +xmlXPathVariableLookupFunc:1 xmlParserNodeInfoPtr:1 xmlExpCtxtPtr:14 +xmlPatternPtr:8 xmlC14NIsVisibleCallback:1 xmlDeregisterNodeFunc:2 va_list:1+xmlSchemaTypePtr:9 htmlStatus:1 xmlRegisterNodeFunc:2 xmlAttributeType:2 +xmlRefPtr:1 xmlCharEncodingHandler *:4 xmlNotationPtr:3 xmlSaveCtxtPtr:8 +xmlRegExecCallbacks:1 xmlNsPtr *:1 xmlLocationSetPtr:6 xmlSchemaSAXPlugPtr:1+xmlModulePtr:4 xmlEnumerationPtr *:2 xmlShellCtxtPtr:10 +xlinkNodeDetectFunc:2 xmlRefTablePtr:1 xmlStreamCtxtPtr:4 +xmlSchemaValidityErrorFunc *:2 xmlChRangeGroupPtr:1 xmlAttributeTablePtr:2 +xmlSchematronParserCtxtPtr:5 xmlCatalogPrefer:1 xmlParserNodeInfoSeqPtr:3 +xmlSchematronPtr:2 xmlNodePtr *:2 xmlInputReadCallback:7 char **:5 +xmlCharEncoding:13 xmlRegExecCtxtPtr:5 xmlElementContentType:2 void *:85 +xmlTextReaderErrorFunc *:1 xmlSAXHandlerPtr *:1 xmlEntityReferenceFunc:1 +xmlDocPtr *:1 xmlBufferAllocationScheme:3 xmlSchemaValidityErrorFunc:2 +xmlDOMWrapCtxtPtr:5 xmlOutputWriteCallback:2 xmlSchemaFacetPtr:7 +xlinkHandlerPtr:2 xmlXPathFuncLookupFunc:1 htmlElemDesc *:3 +xmlCharEncodingHandlerPtr:7 xmlCharEncodingInputFunc:1 xmlFeature:1 const +xmlParserNodeInfo *:1 xmlNodeSetPtr:32 xmlEntitiesTablePtr:3 xmlIDTablePtr:1+xmlXPathFunction:4 xmlOutputBufferCreateFilenameFunc:2 xmlElementContentPtr:8+xmlElementTypeVal:1 xlinkType:1 xmlGenericErrorFunc *:1 touch gen_prog etc... leave for now ;)
Thanks for reporting this. Please provide a backtrace from nautilus or any other program crashing so we can study the problem. See http://www.gentoo.org/doc/en/bugzilla-howto.xml#doc_chap2 for information on how to produce one.
building via ssh to provide backtrace on computer where i will try tonight, i see after recompiling nautilus nostrip: --- !targe sym /usr/lib/libnautilus-private.so.2 --- !targe sym /usr/lib/libnautilus-private.so --- !targe sym /usr/lib/libnautilus-extension.so.1 --- !targe sym /usr/lib/libnautilus-extension.so * Updating desktop mime database ... * Updating shared mime info database ... *** * Updating MIME database in /usr/share/mime... (nil) : Freed() xmlMallocBreakpoint reached on block 0 /usr/portage/eclass/fdo-mime.eclass: line 28: 30656 Erreur de segmentation update-mime-database /usr/share/mime >>> original instance of package unmerged safely. * Installing GNOME 2 GConf schemas * Updating desktop mime database ... * Updating shared mime info database ... *** * Updating MIME database in /usr/share/mime... (nil) : Freed() xmlMallocBreakpoint reached on block 0 /usr/portage/eclass/fdo-mime.eclass: line 28: 30691 Erreur de segmentation update-mime-database /usr/share/mime >>> Regenerating /etc/ld.so.cache... >>> gnome-base/nautilus-2.10.1-r1 merged. >>> clean: No packages selected for removal. look like i won't sleep much this night ;)
Created attachment 67857 [details] backtrace from nautilus don't have time to do the same with evolution ;)
Thanks. Could you please emerge libxml2 with FEATURES=nostrip also and then re-create the backtrace?
Created attachment 67872 [details] new backtrace with libxml2 nostrip will look in source file tomorrow, for now have some firends at home ;)
found why ;) i have in my /etc/portage/package.use lost from last(?) debug: ... dev-libs/libxml debug dev-libs/libxml2 debug dev-libs/libxslt debug ... removing this lines and emerging with --newuse flag in fact all went ok when libxml2-2.6.21 was merged again without the debug flag ;) thank you for your help ;)
Just because it works when you remove the debug USE flag for those packages doesn't mean the problem is fixed. nautilus and evolution are still technically broken (it's just ignored when libxml2 is compiled without USE=debug).
The update-mime-database utility breaks too, as, apparently, does everything related to shared-mime-info. I downgraded the libxml2, but AFAIR it barfed on the xmlFree(lang) line in remove_old when parsing any <comment> without xml:lang explicitly defined in it (xmlGetNsProp(new, "lang", XML_NS) returned NULL, which happens to be extremely suprising to it). It does so even when parsing freedesktop.org.xml (the file is equipped with an internal DTD).
(In reply to comment #10) > The update-mime-database utility breaks too, as, apparently, does everything > related to shared-mime-info. I downgraded the libxml2, but AFAIR it barfed on > the xmlFree(lang) line in remove_old when parsing any <comment> without xml:lang > explicitly defined in it (xmlGetNsProp(new, "lang", XML_NS) returned NULL, which > happens to be extremely suprising to it). It does so even when parsing > freedesktop.org.xml (the file is equipped with an internal DTD). Yes this is known. I have a patch for it sitting in my overlay; I'll open a bug today so the maintainer can fix it.
The problem seems to be caused by the --with-mem-debug switch, which has been removed from the ebuild in libxml2-2.6.21-r1. Aaron, You mean you have reported an upstream bug? If that's the case, could you mention the bug number here so we can keep track of it? Thanks.
*** Bug 105540 has been marked as a duplicate of this bug. ***