ELF programs with R_386_RELATIVE blocks are badly mapped into memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libxslt (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
linux (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Running the Samba autobuild tests on a 15.04 openstack image results in a segfault in this command:
/usr/bin/xsltproc --nonet -o default/
I reported this upstream as a bug in xsltproc, but it was found to be impossible to reproduce using upstream source on the openstack instance:
https:/
Comment 8 (https:/
The stack trace below shows the segfault actually occurs in libxml's xpath evaluation functions. I see no difference between xpath.c in upstream 2.9.2 and Ubuntu's version.
(gdb) bt 12
#0 0xb760f874 in xmlXPathCompOpEval (ctxt=0xba25d3e8, op=0xb86bc818) at ../../xpath.c:13606
#1 0xb760f82e in xmlXPathCompOpEval (ctxt=0xba25d3e8, op=0xb86bc890) at ../../xpath.c:13598
#2 0xb7610244 in xmlXPathCompOpEval (ctxt=0xba25d3e8, op=0xb86bc8b8) at ../../xpath.c:13529
#3 0xb760f9d6 in xmlXPathCompOpEval (ctxt=0xba25d3e8, op=0xb86bc8e0) at ../../xpath.c:13977
#4 0xb7612735 in xmlXPathCompOpEval (op=<optimized out>, ctxt=0xba25d3e8) at ../../xpath.c:14552
#5 xmlXPathRunEval (ctxt=0xba25d3e8, toBool=<optimized out>) at ../../xpath.c:14552
#6 0xb76171ed in xmlXPathCompile
#7 xmlXPathCompile
#8 0xb7787260 in xsltEvalVariable (ctxt=ctxt@
#9 0xb778759a in xsltBuildVariable (ctxt=0xb9836560, castedComp=
#10 0xb7788bfa in xsltParseStyles
#11 0xb779b9db in xsltCallTemplate (ctxt=0xb9836560, node=0xb85efed8, inst=0xb86a6880, castedComp=
(More stack frames follow...)
(gdb) bt -5
#3311 0xb779a7de in xsltProcessOneNode (ctxt=0xb9836560, contextNode=
#3312 0xb779d818 in xsltApplyStyles
output=
#3313 0xb779df8d in xsltRunStyleshe
profile=0x0, userCtxt=
#3314 0xb77ea12c in xsltProcess (doc=0xb97586a0, cur=0xb85ee200, filename=0xbfd59812 "default/
#3315 0xb77e9298 in main (argc=6, argv=0xbfd58f94) at ../../.
---
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Jul 9 00:13 seq
crw-rw---- 1 root audio 116, 33 Jul 9 00:13 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: i386
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/timer', '/dev/snd/seq'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
DistroRelease: Ubuntu 15.04
Ec2AMI: ami-0000012b
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: c1.c4r4
Ec2Kernel: aki-00000005
Ec2Ramdisk: ari-00000005
IwConfig: Error: [Errno 2] No such file or directory
Lsusb:
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: OpenStack Foundation OpenStack Nova
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware N/A
RfKill: Error: [Errno 2] No such file or directory
Tags: vivid ec2-images
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
Uname: Linux 3.19.0-20-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip floppy netdev plugdev sudo video
_MarkForUpload: True
dmi.bios.date: 01/01/2011
dmi.bios.vendor: Bochs
dmi.bios.version: Bochs
dmi.chassis.type: 1
dmi.chassis.vendor: Bochs
dmi.modalias: dmi:bvnBochs:
dmi.product.name: OpenStack Nova
dmi.product.
dmi.sys.vendor: OpenStack Foundation
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
status: | Incomplete → Triaged |
tags: | added: kernel-bug-fixed-upstream kernel-da-key |
Changed in libxslt (Ubuntu): | |
importance: | Undecided → Medium |
Rebuilding libxml2_ 2.9.2+dfsg1- 3_i386. deb from ubuntu source with -O0 fixes the issue.