I am trying to initialize Perl interpreter (Perl-5.8.5) from my C program (using perl_run() ) It is crashing (SIGSEGV) in HPUX trusted systems during the initialization. Same program works fine for HPUX non-trusted systems & other operating systems like Linux, AIX & Solaris.

During the initialization, getspnam() function is invoked. The function returns an invalid address in HPUX trusted systems & the program crashes trying to access the memory. Ideally, the function should return NULL pointer in case of failure & the program should be working fine.

Any pointers to debug/fix this issue is appreciated.

Thanks, Adarsh.

The code snippet where the crash happens follows: (File: perl-5.8.5/pp_sys.c)