Michael Roth <mdr...@linux.vnet.ibm.com> writes: > Currently, when parsing a stream of tokens we make a copy of the token > list at the beginning of each level of recursion so that we do not > modify the original list in cases where we need to fall back to an > earlier state. > > In the worst case, we will only read 1 or 2 tokens off the list before > recursing again, which means an upper bound of roughly N^2 token allocations. > > For a "reasonably" sized QMP request (in this a QMP representation of > cirrus_vga's device state, generated via QIDL, being passed in via > qom-set), this caused my 16GB's of memory to be exhausted before any > noticeable progress was made by the parser. The command is here for > reference, and can be issued against upstream QMP to reproduce (failure > occurs before any qmp command routing/execution): > > http://pastebin.com/mJrZ3Ctg
Commit messages are forever, pastebins aren't. What about preserving your test case for eternity under tests/? [...]