Perl 5.12.3 C/C++ code crashes in PUSHMARK(SP) ; with segmentation fault on Solaris 5.9
I have a C/C++ code which uses perlcall to invoke perl scripts and was working with Perl version of 5.8.90. Due to some memory leaks/heap corruption in 5.8.90, we planned to use 5.12.3, the latest version of perl.
While using the libperl.so of 5.12.3 version, our program is crashing while calling " PUSHMARK(SP) ;" I tried to debug in dbx but could get only the below information t@32 (l@32) terminated by signal SEGV (no mapping at the faul开发者_运维百科t address)
Please let me know if any body came across this problem. Any pointers to find the root cause would be very helpful.
I'm closing the thread based upon my research.
Ysth - Thanks for the information. Actually, while building my binary, I hadn't copied the new header files from 5.12.3 to correct path. After using the new header files, the problem was resolved.
This is possible if your program is trying to access a memory location not in your program's address space.
The memory accessed either belongs to OS or some other process.
Check your code for this.
精彩评论