Forum Moderators: coopster
[google.com...]
I'm looping through a group of XML files, parsing them and writing to a database (removing all the database stuff didn't change anything, btw). I traced it down to a particular XML file; once I removed that from the list the problem disappeared. That's my work-around for now.
Since I don't have control of the XML files themselves, I'm trying to make sure that the script stays alive even if a wrench gets thrown in (file unnaccessable, bad format, etc). But the "Segmentation fault (core dumped)" message has got me stumped. Don't know what it is, how to catch it, where in the script it's failing or even what the problem with the offending XML file is.
At this point I think I need to troubleshoot a bit more before I can post an intelligent question :) ...but still open to any tips/suggestions/info, especially regarding the error msg.
The 'core dumped' I think just means the program released the memory and exited.
A segmentation fault usually occurs when you try and access a part of memory that is not yours to use, or by deferencing an uninitialised or invalid pointer.
Could you be passing/using a bad handle or overrunning an array somewhere?