Core dump in String lib function
I'm working with a piece of legacy code that puts together a rather large SQL statement to be executed at a remote server. The function that I'm having trouble with is assembling the SQL Statement with the help of sprintf and strcat library functions.
When executed on Linux 2.4.21-32 system, this piece of code executes ok, whereas, on a Linux 2.4.21-20 system, this code core dumps.
Using the disassemble command of gdb, the only difference that I can see between the 2 versions of the function is that on Linux2.3.21-32 the call to sprintf is replaced by __cxa_finalize@plt + <address> and the call to strcat is replaced by __deregister_frame_info@plt + <addr>
My question is, what are these __cxa_finalize and __deregister_frame_info functions?
Many thanks in advance for your advice.