Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl 5.12.3 C/C++ code crashes in PUSHMARK(SP) ; with segmentation fault on Solaris 5.9

Tags:

c++

c

perl

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 fault address)

Please let me know if any body came across this problem. Any pointers to find the root cause would be very helpful.

like image 238
yogishaj Avatar asked Apr 28 '11 06:04

yogishaj


1 Answers

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.

like image 147
yogishaj Avatar answered Oct 27 '22 05:10

yogishaj