Problem with profile build on Linux ia-64
Gopal Mor <[email protected]> Wed, 2 Jun 2004 22:52:28 -0700 (PDT)
| Newsgroups | gmane.linux.redhat.ia64.general |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
I have build the profile version of our application on ia-64. But when the application runs, it immediately dumps core with segmentation fault.
I tried the same with a small "hello world" application. And the same behavour gets repeated.
The below program, test1.cxx, was used
#include <stdio.h>
main()
{
printf("Hello World\n") ;
}
The command used for build
g++ -g -pg test1.cxx
When I run the program....
$./a.out
Segmentation fault (core dumped)
When the core was observed.....
$ gdb a.out core
GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
Copyright 2001 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 "ia64-redhat-linux"...
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done.
Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3
Reading symbols from /lib/libm.so.6.1...done.
Loaded symbols for /lib/libm.so.6.1
Reading symbols from /lib/libc.so.6.1...done.
Loaded symbols for /lib/libc.so.6.1
Reading symbols from /lib/ld-linux-ia64.so.2...done.
Loaded symbols for /lib/ld-linux-ia64.so.2
#0 __mcount (frompc=16140901064497673984, selfpc=4611686018427390928)
at mcount.c:96
96 mcount.c: No such file or directory.
in mcount.c
(gdb) where
#0 __mcount (frompc=16140901064497673984, selfpc=4611686018427390928)
at mcount.c:96
#1 0x200000000033e5d0 in mcount () at soinit.c:56
#2 0x4000000000000bd0 in main () at test1.cxx:4
Current language: auto; currently c
(gdb)
Details of my Linux bix are as follow
$uname -a
Linux Suraj 2.4.9-18smp #1 SMP Fri Nov 8 10:58:00 IST 2002 ia64 unown
$guname
Distribution: Red Hat Linux
Operating System: Linux
Distribution Version: Red Hat Linux release 7.2 (Enigma)
Operating System Version: #1 SMP Fri Nov 8 10:58:00 IST 2002
Operating System Release: 2.4.9-18smp
Processor Type: ia64
Host Name: Suraj
User Name: raj
X Display Name: 13.144.235.221:0.0
System Status: 6:38am up 1 day, 49 min, 6 users, load average: 0.00, 0.00, 0.00
$g++ --version
2.96
Am I making some mistake? OR my Linux ia-64 box is not uptodate ?
Any help rendered will be highly appreciated.
Thanks in advance.
Gopal
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
ia64-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ia64-list