question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XML parser entity limit reached while handling large PDB.

See original GitHub issue

Hi,

I’m currently trying to apply a 500MB PDB file to a 38MB exe (yes I’m well aware its massive) I’m running into issues with the XML parser object limit. (System memory isn’t an issue, the system has 32GB ram and I’m running ghidra with a 8GB ram limit, of which around 4.5GB is being used.

Problem parsing or applying PDB information: org.xml.sax.SAXParseException; lineNumber: 14565172; columnNumber: 328; JAXP00010004: The accumulated size of entities is "50,000,001" that exceeded the "50,000,000" limit set by "FEATURE_SECURE_PROCESSING".

I can give the stack output etc if that helps.

I gather this is something to do with the XML library to prevent denial of service attacks or similar. I have tried disabling FEATURE_SECURE_PROCESSING in the XmlUtilities class by calling the setFeature method with false but to no avail.

It gave me the error while applying symbols, and yet it seems to have continued applying functions. Does anyone have any ideas? Thanks in advance.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ghizardcommented, Sep 23, 2020

Work-around, as suggested above, works.

0reactions
ghizardcommented, Aug 14, 2020

I ran a couple of more times, to find out that the key variable for me is: VMARGS=-Djdk.xml.totalEntitySizeLimit=50000000 where I adjusted the 50000000 (default) to a larger value.

VMARGS=-DtotalEntitySizeLimit=some_limit by itself, it did not help. VMARGS=-DentityExpansionLimit=some_limit did not seem to be needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

XML parser limits exceeded even though the message size is ...
I am using a Binary Transform action to transform a message on the IBM ... I get an error indicating the XML parser...
Read more >
Node request entity too large body-parser limit set
This is what I get and it is not in the list if I check apt list --installed service nginx status ○ nginx.service...
Read more >
Entry Attributes - RCSB PDB Data API
The molecular entities represented in this fitting description. em_3d_fitting_list.pdb_entry_id, The PDB code for the entry used in fitting.
Read more >
Biopython Tutorial and Cookbook
Note that when dealing with very large FASTA or FASTQ files, the overhead ... The next step would be to parse the XML...
Read more >
System Message Guide for Cisco IOS XE Cupertino 17.7.x
During operation, the system software sends these messages to the console ... of records in the output queue has exceeded the system limit....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found