From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,a9f5cebb4f2fecb4,start X-Google-Attributes: gid111c93,public From: Linda M Rosenband Subject: problem using profiling library Date: 2000/06/05 Message-ID: <393BF9C4.40BE86FA@hotmail.com>#1/1 X-Deja-AN: 631396497 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@medtronic.com X-Trace: gazette.corp.medtronic.com 960231830 18789 144.15.79.40 (5 Jun 2000 19:03:50 GMT) Organization: Medtronic Inc. Mime-Version: 1.0 NNTP-Posting-Date: 5 Jun 2000 19:03:50 GMT Newsgroups: comp.os.linux.alpha Hello: I've been trying to optimize some c++ code on an Alpha running Redhat Linux 6.2. I am using the standard g++ compiler, and the code runs fine without profiling. Unfortunately, when I try to add profiling, the program dumps core quite quickly, and all gdb tells me is that it is running into heuristic fence-posts (Here are the error messages): gdb lsim core GNU gdb 19991004 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "alpha-redhat-linux"... warning: "/home/linda/simulator/core": ambiguous core format, 2 handlers match Core was generated by `./lsim - -f mesh/inv.mesh_1mm params/mesh_1mm.param'. Program terminated with signal 11, Segmentation fault. warning: Hit heuristic-fence-post without finding warning: enclosing function for address 0x2000001fd18 This warning occurs if you are debugging a function without any symbols (for example, in a stripped executable). In that case, you may wish to increase the size of the search with the `set heuristic-fence-post' command. Otherwise, you told GDB there was a function where there isn't one, or (more likely) you have encountered a bug in GDB. #0 0x2000001fd18 in ?? () (gdb) info stack #0 0x2000001fd18 in ?? () warning: Hit heuristic-fence-post without finding warning: enclosing function for address 0x56040000000 Does anyone have any ideas? Has anyone been able to use profiling successfully on the Alpha? Thanks. Linda Rosenband lindarosenband@hotmail.com