Re: Bug#858405: xmlto: intermittent Segmentation fault when building manpages for libreswan on mips64el

James Cowgill <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Hi,

On 22/03/17 01:29, Daniel Kahn Gillmor wrote:
> Package: xmlto
> Version: 0.0.28-1
> Severity: normal
> 
> https://buildd.debian.org/status/fetch.php?pkg=libreswan&arch=mips64el&ver=3.20-6&stamp=1490132010&raw=0
> 
> shows xmlto having a segfault during the build of libreswan's manpages.
> 
> make[5]: Leaving directory '/«PKGBUILDDIR»/OBJ.linux.mips64/programs/proc'
> sed -e "s:@IPSECVERSION@:3.20:g" -e "/@linux_START@/,/@linux_END@/d" -e "s:@EXAMPLECONFDIR@:/usr/share/doc/libreswan:g" -e "s:@FINALBINDIR@:/usr/lib/ipsec:g" -e "s:@FINALCONFDDIR@:/etc/ipsec.d:g" -e "s:@FINALCONFDIR@:/etc:g" -e "s:@FINALCONFFILE@:/etc/ipsec.conf:g" -e "s:@FINALDOCDIR@:/usr/share/doc/libreswan:g" -e "s:@FINALEXAMPLECONFDIR@:/usr/share/doc/libreswan:g" -e "s:@FINALLIBEXECDIR@:/usr/lib/ipsec:g" -e "s:@FINALRCDIR@:/etc/init.d:g" -e "s:@FINALSBINDIR@:/usr/sbin:g" -e "s:@FINALSYSCONFDIR@:/etc:g" -e "s:@FINALVARDIR@:/var:g" -e "s:@IPSEC_CONF@:/etc/ipsec.conf:g" -e "s:@IPSEC_CONFDDIR@:/etc/ipsec.d:g" -e "s:@IPSEC_NSSDIR@:/var/lib/ipsec/nss:g" -e "s:@IPSEC_DIR@:/usr/lib/ipsec:g" -e "s:@IPSEC_EXECDIR@:/usr/lib/ipsec:g" -e "s:@IPSEC_VARDIR@:/var:g" -e "s:@IPSEC_SBINDIR@:/usr/sbin:g" -e "s:@IPSEC_SECRETS_FILE@:/etc/ipsec.secrets:g" -e "s:@MODPROBEBIN@:modprobe:g" -e "s:@MODPROBEARGS@:--quiet --use-blacklist:g" -e "s:@USE_DEFAULT_CONNS@::g" -e "s:@SD_TYPE@:notify:g" -e "s:@SD_RESTART_TYPE@:"always":g" -e "s:@SD_PLUTO_OPTIONS@:"--leak-detective":g" -e "s:@SD_WATCHDOGSEC@:200:g"  < ipsec_version.5.xml > ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp.tmp
> mv ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp.tmp ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp
> : ignoring seemingly bogus xmlto exit status
> xmlto man ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp -o ../../OBJ.linux.mips64/programs/proc || true
> /usr/bin/xmlto: line 613:  5007 Segmentation fault      "/usr/bin/xsltproc" --nonet --xinclude --param passivetex.extensions '1' -o "/tmp/xmlto.vUw7Aq/ipsec_version.5.proc" "/tmp/xmlto-xsl.XOSOth" "/«PKGBUILDDIR»/programs/proc/../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp"
> test -z ""  -a -r ../../OBJ.linux.mips64/programs/proc/ipsec_version.5
> ../../mk/manpages.mk:79: recipe for target '../../OBJ.linux.mips64/programs/proc/ipsec_version.5.man' failed
> make[4]: *** [../../OBJ.linux.mips64/programs/proc/ipsec_version.5.man] Error 1
> make[4]: Leaving directory '/«PKGBUILDDIR»/programs/proc'
> 
> The build of the previous version, 3.20-5, which is very similar code, did not have the segfault:
> 
> https://buildd.debian.org/status/fetch.php?pkg=libreswan&arch=mips64el&ver=3.20-5&stamp=1490115466&raw=0
> 
> make[5]: Leaving directory '/«PKGBUILDDIR»/OBJ.linux.mips64/programs/proc'
> sed -e "s:@IPSECVERSION@:3.20:g" -e "/@linux_START@/,/@linux_END@/d" -e "s:@EXAMPLECONFDIR@:/usr/share/doc/libreswan:g" -e "s:@FINALBINDIR@:/usr/lib/ipsec:g" -e "s:@FINALCONFDDIR@:/etc/ipsec.d:g" -e "s:@FINALCONFDIR@:/etc:g" -e "s:@FINALCONFFILE@:/etc/ipsec.conf:g" -e "s:@FINALDOCDIR@:/usr/share/doc/libreswan:g" -e "s:@FINALEXAMPLECONFDIR@:/usr/share/doc/libreswan:g" -e "s:@FINALLIBEXECDIR@:/usr/lib/ipsec:g" -e "s:@FINALRCDIR@:/etc/init.d:g" -e "s:@FINALSBINDIR@:/usr/sbin:g" -e "s:@FINALSYSCONFDIR@:/etc:g" -e "s:@FINALVARDIR@:/var:g" -e "s:@IPSEC_CONF@:/etc/ipsec.conf:g" -e "s:@IPSEC_CONFDDIR@:/etc/ipsec.d:g" -e "s:@IPSEC_NSSDIR@:/var/lib/ipsec/nss:g" -e "s:@IPSEC_DIR@:/usr/lib/ipsec:g" -e "s:@IPSEC_EXECDIR@:/usr/lib/ipsec:g" -e "s:@IPSEC_VARDIR@:/var:g" -e "s:@IPSEC_SBINDIR@:/usr/sbin:g" -e "s:@IPSEC_SECRETS_FILE@:/etc/ipsec.secrets:g" -e "s:@MODPROBEBIN@:modprobe:g" -e "s:@MODPROBEARGS@:--quiet --use-blacklist:g" -e "s:@USE_DEFAULT_CONNS@::g" -e "s:@SD_TYPE@:notify:g" -e "s:@SD_RESTART_TYPE@:"always":g" -e "s:@SD_PLUTO_OPTIONS@:"--leak-detective":g" -e "s:@SD_WATCHDOGSEC@:200:g"  < ipsec_version.5.xml > ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp.tmp
> mv ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp.tmp ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp
> : ignoring seemingly bogus xmlto exit status
> xmlto man ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.tmp -o ../../OBJ.linux.mips64/programs/proc || true
> Note: Writing ipsec_version.5
> test -z ""  -a -r ../../OBJ.linux.mips64/programs/proc/ipsec_version.5
> touch ../../OBJ.linux.mips64/programs/proc/ipsec_version.5.man
> 
> So xmlto seems to fail intermittently on mips64el, even though it
> behaves reliably on all the other debian architectures.
> 
> Sorry that i haven't been able to debug it further.
> 
> Perhaps someone who knows mips64el can debug it better than i can.
> 
> For debian revisions of 3.20, failures happened on:
> 
>   mipsel-manda-02
>   eberlin
>         
> Also for revisions of 3.20, successes happened on:
> 
>   mipsel-sil-01
>   mipsel-manda-03
>   mipsel-manda-01

This is a known issue and it only affects Loongson buildds.
Interestingly mipsel-manda-01 is Loongson and didn't fail there so there
may be a random element involved here. I don't think anyone's tracked
down the underlying issue though.

For the moment, I'll rebuild libreswan again and hope a good buildd is
picked.

James
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJY0lBxAAoJEMfxZ23qLQHvQ+4P/R3Q3WjY6GZ6aiJ69YKzG6i7
u0uzUhPfllTiArz0xZA01iM8PmaNLbmk+6jvnml9/336wa+BtxdRV17J/FNLoXcA
mIWXW6Bkbogq2WauxAYrvvMeudnk9xqhLVgg+KN/wgisH6c/aSOsnODqJ3wjrjDN
WnPZ+XUX194KTZN7c4P7XHW/K5a5HuNPHU1wityNvUwrqDPDqxxWEhs2/vFycffY
goSQYUoOFdBgr2nYLISxcrZsgqJI+5VyhV5TobAbvz+6rTJH+4K/wFSwJ80Y5URZ
fSafw2xTD5kIPYjMAHJfrklG6uiUOEzQCNal2oifczPhcAMUOBwNkjRVB9eT1zy/
Nw/mcU+/TPLRfyVY6pALLv16Hbz52XbAmJVay3szaEPes3f4VEve/6o9cqrI/1rU
XX1LOBaOEPfX1W6EqArmkrvhrOMaOVwbNNhTJK085LWFl1KJDRE6lqzeg+DB9O7G
1AnN6U3fhwIgV98xg06d/xE392TyMf6XP1VI2l/N41nL7Ov0KHDDUPSd1AHKavMU
rRcwGLejtvPLVzaNNhm5uaqQaCCUadyqZFLdIGE0n4a85BvsdPOyairUKVKbG14+
5eevMGYNmZtSpZRIXoj2Fu40yHJTQ1iZ/jg7I38cpMF8uUoBCaSLlkWVWeggXs2b
9im5RPVvbqVydHHGihHd
=n103
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.