Skip to content

symfony-console: list --format=xml segfaults in McXmlDoc::newNode #296

Closed

Description

@blacktrs

Summary

examples/symfony-console compiled with main (5e4d6fb8, manticore 0.15.0): list --format=xml dies with SIGSEGV; the same command under Zend prints the full XML. All other output formats checked (default text, --raw, --format=md, --help, --version, quiet/verbose/ansi flags, 25 invocations) are byte-identical to Zend.

Reproduce

cp -R examples/symfony-console /tmp/console && cd /tmp/console
manticore build
./bin/demo list --format=xml; echo rc=$?                  # rc=139, empty stdout
php -d auto_prepend_file=vendor/autoload.php src/app.php list --format=xml    # 299 lines of XML

Also on the v0.14.0 release compiler (rc=139), so not a regression.

Native stack (lldb)

EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff9)
frame #0: McXmlDoc::newNode + 1208

Symfony\Component\Console\Descriptor\XmlDescriptor builds its output with DOMDocument (createElement, appendChild, setAttribute, createTextNode, saveXML). McXmlDoc is the prelude's DOM implementation. A 10-line DOMDocument program with the same call pattern (nested createElement/appendChild, createElement($name, $value), formatOutput, saveXML) round-trips correctly, so the trigger is something XmlDescriptor does that the small program does not (candidates: importNode, DOMXPath, appendChild of a node created in another document, cloneNode, attributes on nodes inside foreach). Next step: instrument XmlDescriptor in a copy of the app to find the first call that crashes, then reduce.

Activity

  1. added
    bug
    crash
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcrash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions