[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gprof error on Linux
From: |
Sudipta Sinha |
Subject: |
Gprof error on Linux |
Date: |
Sun, 22 Sep 2002 03:27:44 -0400 (EDT) |
I tried the following to profile my application on Linux2.4
* changed CFLAGS in the Makefile to include '-pg -g'
* make clean
* make
* ran my application
Gave me an error at start up
ti_viewer Line:17068 Illegal Instruction ( weird !! i am compiling and
running on the same machine - 2.4.18-10smp )
gcc -v
>> gcc version 2.96
the point where my program was crashing was a call to a function which was
taking a Function pointer as parameter.
viewer.hpp:extern void GoViewer(void (*displayfunc)())
Do you know why this might be happening ?
---------
I tried one more thing -
* modified the Makefile to compile only some of the src files using -pg -g
, ( compiled the file viewer.hpp without it )
* this time the binary ran fine
* However when i tried to shut down my program - its said
_mcleanup: gmon.out permission denied
and the gmon.out file was not created !!
[ I had write permission on the directory ]
[ I am exitting normally using exit(0) ]
Do you know how to fix these problems ?
Thanks,
Sudipta
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Gprof error on Linux,
Sudipta Sinha <=