Operating System - Linux
1752363 Members
5820 Online
108787 Solutions
New Discussion юеВ

Re: Error compiling pro*c thru make in HP-UX

 
SOLVED
Go to solution
hpuserhk
Frequent Advisor

Re: Error compiling pro*c thru make in HP-UX

but is this error related to insufficent memory or some bug:
Memory fault(coredump)
Dennis Handly
Acclaimed Contributor

Re: Error compiling pro*c thru make in HP-UX

>but is this error related to insufficent memory or some bug:

If you don't check the return value from malloc, you can get signal 11. (Whether that is insufficient memory or a bug, I'll leave it up to you. :-) Otherwise signal 11 is a bug. But using the debugger will tell you that without guessing.

Also please read the following about how to assign points. You have gotten lots of answers to many questions. You can assign points to every answer.
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
hpuserhk
Frequent Advisor

Re: Error compiling pro*c thru make in HP-UX

gdb was already installed ,when i run gdb tapin.exe core
give following msg:
Program terminated with signal 11, Segmentation fault.

warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...#0 0xc01f7198 in __ldfcvt_r+0x2ec0 ()
from /usr/lib/libc.2
(gdb)
(gdb)
(gdb)
(gdb)
Dennis Handly
Acclaimed Contributor

Re: Error compiling pro*c thru make in HP-UX

#0 0xc01f7198 in __ldfcvt_r+0x2ec0 ()

Now you need to use some debugging commands.

The first is "bt" for back trace.
ldfcvt seems to be a conversion function for floating point, possibly for printf?

Then you can use the "frame #" command to go to frame # and print out locals.
hpuserhk
Frequent Advisor

Re: Error compiling pro*c thru make in HP-UX

Hello,

Thanks for your help
Actually i used printf in the programm
for debugging and was able to resolve the problem

Dennis Handly
Acclaimed Contributor

Re: Error compiling pro*c thru make in HP-UX

>Thanks for your help... and was able to resolve the problem

If you have gotten your answers, you should read my previous reply about:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33