Also, I should have requested core/main.elf instead of main.bin.
where did the "TLUARES1.DMP" name come from?
Thanks for all your help. Yes, the files come from the same SX50 build that was running when the crash happened. Here's the main.elf file from that build:
http://www.adrive.com/public/tvG7fW/main.elfI added the T in "TLUARES1.DMP" with the file browser so it wouldn't be overwritten. Then I restarted the camera and script to continue the test. So at least one mystery is solved (sorry, I forgot about doing that.)
When the script is running, the camera is saving pictures very rapidly and the script is writing the log file at the same time. I print out the time that the print(...) statement takes, and it's usually 20 msec. Sometimes, though, it's much longer, 1000 msec or more even. So it's possible writing the dump files could overload the file system since it's already at maximum capacity.
I wonder if this has anything to do with the error.I don't recall ever triggering the error with logging off, but it would be hard to tell what stopped the script without the log. I wonder how Lua handles a print(...) statement when it takes 1000 msec or more to return, and if that would cause a problem.
I've attached the script log that was being written when the camera crashed. Interestingly, the last picture file number in the log was the last picture written to disk before the crash. Usually, the log misses a few at the end with a camera crash because the log file is never closed. It looks like writing the .DMP file must have flushed the print log.
@Phil, the script log is attached, but it crashed before it printed the lres value.