Bug 701694

Summary: Segfault in libxml2 compiled in F15, worked on F12 with exactly the same compilation script
Product: [Fedora] Fedora Reporter: Pierre Blavy <pierreblavy>
Component: libxml2Assignee: Daniel Veillard <veillard>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: veillard
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-04 08:36:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pierre Blavy 2011-05-03 15:17:04 UTC
Description of problem:
When I compile libxml2 on F12, the libs pass its self test (runtest) but it fails to work when 1 compile it in F15

Version-Release number of selected component (if applicable):
libxml2-2.7.2


How reproducible:
Always

Steps to Reproduce:

1 : Use the following script

#!/bin/sh

p=`pwd`
mkdir extern-lib 2>/dev/null

mkdir extern-lib/libxml2
wget ftp://xmlsoft.org/libxml2/libxml2-2.7.2.tar.gz
tar -xf libxml2-*.tar.gz
rm libxml2-*.tar.gz
cd libxml2-*
./configure --prefix="$p/extern-lib/libxml2"
make
make install


2 : Use the testsuite
cd libxml2-2.7.2/
./runtest


  
Actual results:
F12 : test passed
F15 : 
## XML regression tests
Erreur de segmentation



Expected results:
Code should compile properly

Comment 1 Daniel Veillard 2011-05-04 08:36:40 UTC
Reproduced on F14:

0x0000003864b2e850 in __strncmp_ssse3 () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.13-1.x86_64 zlib-1.2.5-2.fc14.x86_64
(gdb) where
#0  0x0000003864b2e850 in __strncmp_ssse3 () from /lib64/libc.so.6
#1  0x00007ffff7ce9b62 in __xmlParserInputBufferCreateFilename (
    URI=<value optimized out>, enc=XML_CHAR_ENCODING_NONE) at xmlIO.c:2476
#2  0x00007ffff7cc0d5d in xmlNewInputFromFile__internal_alias (ctxt=0x61cfc8, 

If you fetch a recent version liske libxml2-2.7.8 the exact same steps
work fine. Reason is the following:

http://git.gnome.org/browse/libxml2/commit/?id=a7e79f28689c574e0bbef17f4cb3da00249181ff

F12 had the older zlib, F14/15 have the new one, and the old code is gonna crash
that's the reason why we update the libraries. Use the system libraries, don't
try t recompile old ones locally, you can get this,

Daniel