Bug 701694 - Segfault in libxml2 compiled in F15, worked on F12 with exactly the same compilation script
Summary: Segfault in libxml2 compiled in F15, worked on F12 with exactly the same com...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libxml2
Version: 15
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-03 15:17 UTC by Pierre Blavy
Modified: 2011-05-04 08:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-04 08:36:40 UTC
Type: ---


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.