I’m trying to implement my own version of the function instrumenter on a 64bit Linux machine to insert calls of the ___rouent function to the user code, which is provided by the -Mprof=func compiler option.
On my particular machine a function call of
void ___rouent64( struct s1* p )
gets inserted, but the delivered structure by the compiler is not generated as usual and causes a segmentation fault. I do not observe this behaviour at a
32bit machine via a ___rouent(…) call. I’ve tested versions PGI 8.0.1 and 7.1.3.
Could it be that the structur is somehow different (not an empty pointer)?
Any ideas how to track this down?
Thanks in advance!