You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
symfony-console: list --format=xml segfaults in McXmlDoc::newNode #296
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.
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