OS-8665

Update libxml2 to 2.13.8

Status:
Resolved
Created:
2025-06-02T09:15:29.701-0400
Updated:
2025-06-12T16:23:14.568-0400

Description

Because of libxml’s odd behavior in the face of `configure`, and that back in the JPC days some customer apps were linked to platform libxml2, it was stuck on 2.7.6. Recent events in curl have forced the unraveling of the sweater that started with zlib, and continues on to here, since 2.7.6 appears to dump core with an upgraded zlib.

Also, recent events in illumos-gate suggest we should update to this one, as it’s the last until some binary-compatibility gets broken (again?). See 16085 and 17441 .

Comments (4)

Carlos Neira commented on 2025-06-03T11:06:30.779-0400:

Running this platform image: https://kebe.com/~danmcd/webrevs/platform-20250602T150132Z.tgz and some basic tests for xmllint, it shows that is working as expected.

[root@dev ~]# uname -a
SunOS dev 5.11 joyent_20250602T150132Z i86pc i386 i86pc
[root@dev ~]# xmllint --valid --encode utf-8 /etc/zones/4fe29d08-f270-443c-b533-53d094178971.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
    DO NOT EDIT THIS FILE.  Use zonecfg(8) instead.
-->
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<zone name="4fe29d08-f270-443c-b533-53d094178971" zonepath="/zones/4fe29d08-f270-443c-b533-53d094178971" autoboot="true" brand="joyent" ip-type="exclusive" limitpriv="default" debugid="3">
  <attr name="vm-version" type="string" value="1"/>
  <attr name="create-timestamp" type="string" value="2025-05-21T17:23:26.912Z"/>
  <attr name="dataset-uuid" type="string" value="41bd4100-eb86-409a-85b0-e649aadf6f62"/>
  <rctl name="zone.cpu-shares">
    <rctl-value priv="privileged" limit="100" action="none"/>
  </rctl>
  <rctl name="zone.max-lwps">
    <rctl-value priv="privileged" limit="2000" action="deny"/>
  </rctl>
  <rctl name="zone.max-msg-ids">
    <rctl-value priv="privileged" limit="4096" action="deny"/>
  </rctl>
  <rctl name="zone.max-sem-ids">
    <rctl-value priv="privileged" limit="4096" action="deny"/>
  </rctl>
  <rctl name="zone.max-shm-ids">
    <rctl-value priv="privileged" limit="4096" action="deny"/>
  </rctl>
  <rctl name="zone.max-shm-memory">
    <rctl-value priv="privileged" limit="1073741824" action="deny"/>
  </rctl>
  <rctl name="zone.zfs-io-priority">
    <rctl-value priv="privileged" limit="100" action="none"/>
  </rctl>
  <rctl name="zone.max-physical-memory">
    <rctl-value priv="privileged" limit="1073741824" action="deny"/>
  </rctl>
  <rctl name="zone.max-locked-memory">
    <rctl-value priv="privileged" limit="1073741824" action="deny"/>
  </rctl>
  <rctl name="zone.max-swap">
    <rctl-value priv="privileged" limit="1073741824" action="deny"/>
  </rctl>
  <attr name="billing-id" type="string" value="00000000-0000-0000-0000-000000000000"/>
  <attr name="owner-uuid" type="string" value="00000000-0000-0000-0000-000000000000"/>
  <attr name="tmpfs" type="string" value="1024"/>
  <attr name="dns-domain" type="string" value="local"/>
  <attr name="resolvers" type="string" value="8.8.8.8,8.8.4.4"/>
  <attr name="alias" type="string" value="c2NyZWVuLXRlc3Q="/>
  <network physical="net0" mac-addr="c2:8b:34:8d:c3:92" global-nic="admin">
    <net-attr name="ip" value="dhcp"/>
    <net-attr name="ips" value="dhcp"/>
    <net-attr name="primary" value="true"/>
  </network>
</zone>
[root@dev ~]# xmllint --noout --valid --encode utf-8 /etc/zones/4fe29d08-f270-443c-b533-53d094178971.xml
[root@dev ~]# echo $?
0
[root@dev ~]# xmllint --noout --valid --encode utf-8 /etc/zones/4fe29d08-f270-443c-b533-53d0941789712.xml
warning: failed to load external entity "/etc/zones/4fe29d08-f270-443c-b533-53d0941789712.xml"
[root@dev ~]# echo $?
4
[root@dev ~]# xmllint -version
xmllint: using libxml version 21308
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Schemas Schematron Modules Debug
[root@dev ~]#

Dan McDonald commented on 2025-06-04T17:22:39.284-0400:

This has been running on both my has-production-resources NUC:

[root@nuc ~]# find /zones/*/cores  -type f
[root@nuc ~]# uptime
21:20:03    up 2 day(s),  5:10,  1 user,  load average: 0.02, 0.02, 0.02
[root@nuc ~]# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP    
   0 global           running    /                              joyent   shared
   1 170e57f0-4ffe-4fad-af11-c235d04ee16d running    /zones/170e57f0-4ffe-4fad-af11-c235d04ee16d bhyve    excl  
   5 7d5f8a32-ed89-4d90-837a-ffb26428e8f1 running    /zones/7d5f8a32-ed89-4d90-837a-ffb26428e8f1 kvm      excl  
   3 d00f8241-409b-4b1c-8de6-546d4c16410f running    /zones/d00f8241-409b-4b1c-8de6-546d4c16410f joyent   excl  
   2 833586e6-8b37-4e24-b496-06dcf172a74f running    /zones/833586e6-8b37-4e24-b496-06dcf172a74f lx       excl  
   4 c5fc4aa5-3fac-455f-a95e-b685be69a78f running    /zones/c5fc4aa5-3fac-455f-a95e-b685be69a78f joyent   excl  
[root@nuc ~]# vmadm list
UUID                                  TYPE  RAM      STATE             ALIAS
833586e6-8b37-4e24-b496-06dcf172a74f  LX    256      running           lx-test
170e57f0-4ffe-4fad-af11-c235d04ee16d  BHYV  8192     running           ubuntu-22
7d5f8a32-ed89-4d90-837a-ffb26428e8f1  KVM   8192     running           freebsd
c5fc4aa5-3fac-455f-a95e-b685be69a78f  OS    16384    running           nuc-build-2024
d00f8241-409b-4b1c-8de6-546d4c16410f  OS    16384    running           nuc-build
[root@nuc ~]# svcs -xvZ
[root@nuc ~]# 

and the headnode for Kebecloud

[root@moe (kebecloud) ~]# find /zones/*/cores  -type f
[root@moe (kebecloud) ~]# uptime
21:20:07    up 1 day(s), 17:09,  1 user,  load average: 0.51, 0.51, 0.51
[root@moe (kebecloud) ~]# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP    
   0 global           running    /                              joyent   shared
   5 53e4377b-ad29-4102-9ae2-398ef1436009 running    /zones/53e4377b-ad29-4102-9ae2-398ef1436009 joyent-minimal excl  
  16 1dea84fb-5099-486d-b2e6-2b56fc4769ff running    /zones/1dea84fb-5099-486d-b2e6-2b56fc4769ff joyent-minimal excl  
   3 9d483f52-318b-4641-b3ea-74b29d95071c running    /zones/9d483f52-318b-4641-b3ea-74b29d95071c joyent-minimal excl  
   2 f8db0911-ec8f-4e18-b1f8-cc4d3e4b559a running    /zones/f8db0911-ec8f-4e18-b1f8-cc4d3e4b559a joyent-minimal excl  
  11 b84e7f8e-6524-49d3-b5ae-1119202e5a92 running    /zones/b84e7f8e-6524-49d3-b5ae-1119202e5a92 joyent-minimal excl  
   7 ed7dd09d-3154-4407-9c6e-2822c49a00b5 running    /zones/ed7dd09d-3154-4407-9c6e-2822c49a00b5 joyent-minimal excl  
  10 7ae6ab24-ca52-438e-9e04-43e1bdc2bcb6 running    /zones/7ae6ab24-ca52-438e-9e04-43e1bdc2bcb6 joyent-minimal excl  
   4 98b68acb-51de-4a70-8439-cf5bd4ea1883 running    /zones/98b68acb-51de-4a70-8439-cf5bd4ea1883 joyent-minimal excl  
  12 e6962108-b150-4a87-ab29-e9dd8419e89e running    /zones/e6962108-b150-4a87-ab29-e9dd8419e89e joyent-minimal excl  
   6 2509a041-d30e-4271-9638-e03ee9664332 running    /zones/2509a041-d30e-4271-9638-e03ee9664332 joyent-minimal excl  
   1 c8091cc4-b053-451a-9fdf-a52500c8687d running    /zones/c8091cc4-b053-451a-9fdf-a52500c8687d joyent-minimal excl  
   9 8403d2c1-f6af-4e14-9ad2-d443e861ec27 running    /zones/8403d2c1-f6af-4e14-9ad2-d443e861ec27 joyent-minimal excl  
  13 f9844328-98d8-4dbd-b770-bd7845d25c17 running    /zones/f9844328-98d8-4dbd-b770-bd7845d25c17 joyent-minimal excl  
   8 b9628bab-181c-4701-83e3-cb0b988b73bd running    /zones/b9628bab-181c-4701-83e3-cb0b988b73bd joyent-minimal excl  
  14 6e3af517-0360-46df-bd54-c75830760bd8 running    /zones/6e3af517-0360-46df-bd54-c75830760bd8 joyent-minimal excl  
  23 2ead9de5-d79f-4e27-b0d7-9bee1992fbc2 running    /zones/2ead9de5-d79f-4e27-b0d7-9bee1992fbc2 joyent-minimal excl  
  24 d8846c27-2755-4514-84fc-adde29713610 running    /zones/d8846c27-2755-4514-84fc-adde29713610 joyent-minimal excl  
  21 bdd3c089-444a-43de-9f0f-ad92dbece8de running    /zones/bdd3c089-444a-43de-9f0f-ad92dbece8de joyent-minimal excl  
  18 fdf11b6c-3cf1-44d9-9400-71da1999073b running    /zones/fdf11b6c-3cf1-44d9-9400-71da1999073b joyent-minimal excl  
  17 a568998c-fb98-4cc0-82a0-e1fda7a89c28 running    /zones/a568998c-fb98-4cc0-82a0-e1fda7a89c28 joyent-minimal excl  
  19 401efdde-8f32-41c1-bac9-a57153d1656c running    /zones/401efdde-8f32-41c1-bac9-a57153d1656c joyent-minimal excl  
  15 b80c58d0-d5dc-44d1-a808-81169b5981b6 running    /zones/b80c58d0-d5dc-44d1-a808-81169b5981b6 joyent-minimal excl  
  25 ed7f6559-4358-4b98-afb4-0d5774a8e8bc running    /zones/ed7f6559-4358-4b98-afb4-0d5774a8e8bc joyent-minimal excl  
  22 c988403b-4a90-4a8a-b698-728af4f8802f running    /zones/c988403b-4a90-4a8a-b698-728af4f8802f joyent-minimal excl  
  26 b52721a9-cbb8-4ac8-956a-4aec118b603a running    /zones/b52721a9-cbb8-4ac8-956a-4aec118b603a joyent-minimal excl  
  20 9ca350ed-5c7c-4ae6-9d24-a5b81fa476f0 running    /zones/9ca350ed-5c7c-4ae6-9d24-a5b81fa476f0 joyent-minimal excl  
[root@moe (kebecloud) ~]# vmadm list
UUID                                  TYPE  RAM      STATE             ALIAS
53e4377b-ad29-4102-9ae2-398ef1436009  OS    128      running           assets0
8403d2c1-f6af-4e14-9ad2-d443e861ec27  OS    256      running           napi0
1dea84fb-5099-486d-b2e6-2b56fc4769ff  OS    512      running           sapi0
2ead9de5-d79f-4e27-b0d7-9bee1992fbc2  OS    512      running           dhcpd0
b80c58d0-d5dc-44d1-a808-81169b5981b6  OS    768      running           portolan0
b9628bab-181c-4701-83e3-cb0b988b73bd  OS    768      running           imgapi0
2509a041-d30e-4271-9638-e03ee9664332  OS    1024     running           sdc0
401efdde-8f32-41c1-bac9-a57153d1656c  OS    1024     running           cloudapi0
6e3af517-0360-46df-bd54-c75830760bd8  OS    1024     running           cnapi0
9ca350ed-5c7c-4ae6-9d24-a5b81fa476f0  OS    1024     running           cmon0
9d483f52-318b-4641-b3ea-74b29d95071c  OS    1024     running           binder0
b52721a9-cbb8-4ac8-956a-4aec118b603a  OS    1024     running           cns0
bdd3c089-444a-43de-9f0f-ad92dbece8de  OS    1024     running           vmapi0
c8091cc4-b053-451a-9fdf-a52500c8687d  OS    1024     running           papi0
d8846c27-2755-4514-84fc-adde29713610  OS    1024     running           fwapi0
e6962108-b150-4a87-ab29-e9dd8419e89e  OS    1024     running           amon0
ed7dd09d-3154-4407-9c6e-2822c49a00b5  OS    1024     running           amonredis0
ed7f6559-4358-4b98-afb4-0d5774a8e8bc  OS    1024     running           logarchiver0
fdf11b6c-3cf1-44d9-9400-71da1999073b  OS    1024     running           mahi0
a568998c-fb98-4cc0-82a0-e1fda7a89c28  OS    2048     running           adminui0
f8db0911-ec8f-4e18-b1f8-cc4d3e4b559a  OS    2048     running           manatee0
f9844328-98d8-4dbd-b770-bd7845d25c17  OS    2048     running           rabbitmq0
c988403b-4a90-4a8a-b698-728af4f8802f  OS    4096     running           docker0
7ae6ab24-ca52-438e-9e04-43e1bdc2bcb6  OS    8192     running           ufds0
98b68acb-51de-4a70-8439-cf5bd4ea1883  OS    8192     running           workflow0
b84e7f8e-6524-49d3-b5ae-1119202e5a92  OS    8192     running           moray0
[root@moe (kebecloud) ~]# sdcadm health -q ; fmadm faulty
[root@moe (kebecloud) ~]# 

without incident on either.

Dan McDonald commented on 2025-06-06T14:18:10.544-0400:

Landed alongside OS-8369 .

Dan McDonald commented on 2025-06-12T16:22:57.198-0400:

NOTE: The commit message for this got the version wrong.

Related Links