Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105120 - libxml2-2.6.21 breaks nautilus and evolution
Summary: libxml2-2.6.21 breaks nautilus and evolution
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 105540 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-07 01:45 UTC by Patrick Fourniols
Modified: 2005-09-13 07:06 UTC (History)
1 user (show)

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


Attachments
backtrace from nautilus (nautilus_backtrace.txt,4.85 KB, text/plain)
2005-09-07 12:36 UTC, Patrick Fourniols
Details
new backtrace with libxml2 nostrip (nautilus_backtrace2.txt,4.11 KB, text/plain)
2005-09-07 15:12 UTC, Patrick Fourniols
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Fourniols 2005-09-07 01:45:57 UTC
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
Comment 1 Patrick Fourniols 2005-09-07 03:20:21 UTC
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 ;)
Comment 2 Patrick Fourniols 2005-09-07 03:38:48 UTC
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 ;)
Comment 3 Leonardo Boshell (RETIRED) gentoo-dev 2005-09-07 08:43:55 UTC
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.
Comment 4 Patrick Fourniols 2005-09-07 09:56:17 UTC
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 ;)
Comment 5 Patrick Fourniols 2005-09-07 12:36:52 UTC
Created attachment 67857 [details]
backtrace from nautilus

don't have time to do the same with evolution ;)
Comment 6 Leonardo Boshell (RETIRED) gentoo-dev 2005-09-07 12:44:13 UTC
Thanks. Could you please emerge libxml2 with FEATURES=nostrip also and then
re-create the backtrace?
Comment 7 Patrick Fourniols 2005-09-07 15:12:27 UTC
Created attachment 67872 [details]
new backtrace with libxml2 nostrip

will look in source file tomorrow, for now have some firends at home ;)
Comment 8 Patrick Fourniols 2005-09-07 22:48:35 UTC
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 ;)
Comment 9 Aaron Walker (RETIRED) gentoo-dev 2005-09-08 11:05:50 UTC
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).
Comment 10 Aleksander Kamil Modzelewski 2005-09-09 01:51:02 UTC
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).

Comment 11 Aaron Walker (RETIRED) gentoo-dev 2005-09-09 04:21:39 UTC
(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.

Comment 12 Leonardo Boshell (RETIRED) gentoo-dev 2005-09-11 22:49:01 UTC
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.
Comment 13 Daniel Thaler 2005-09-13 07:06:46 UTC
*** Bug 105540 has been marked as a duplicate of this bug. ***