HI!
I want to profile a simple hello world application(then a much bigger
application) using "gprof". I compiled the simple application with '-pg' option
and executed, I get the segmentation fault. When I do a gdb of the same
application, this is what I get,
(gdb) r
Starting program: /a.out
Program received signal SIGSEGV, Segmentation fault.
mcount_internal (frompc=0, selfpc=0) at mcount.c:81
81 frompc -= p->lowpc;
(gdb) bt
#0 mcount_internal (frompc=0, selfpc=0) at mcount.c:81
#1 0x4003abec in __libc_start_main (main=0, argc=0, ubp_av=0x0,
init=<value optimized out>, fini=0x8580 <__libc_csu_fini>,
rtld_fini=0xbee0ced5, stack_end=0xbee0ce04) at libc-start.c:222
#2 0x00008448 in _start ()
(gdb)
Can someone help me identify, what coud be the problem here? The application
works fine, when not compiled with -pg option.
regards
-Nitin
New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source