Re: Trouble with getbyhostname()
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 09:18:59 +0100
Paul Pluzhnikov wrote:
Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx> writes:
Most likeley gethostbyname is not the cuplrit but something you called
before that.
Something OP called, which corrupted heap.
There are a couple of packages that can assist you in discovering who
this is, e.g. electric fence.
Valgrind is almost certainly a better suggestion than efence.
It certainly is a good tool, but it depends upon the size and runtime of the program.
EFence allows your program to run at almost normal speed (at the expense of a huge virtual address space) while "programs run significantly more slowly under Valgrind" (http://www.valgrind.org/info/about.html) as valgrind interprets your program.
It's a kind of space vs time tradeoff.
--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
.
- References:
- Trouble with getbyhostname()
- From: sam . barker0
- Re: Trouble with getbyhostname()
- From: Josef Moellers
- Re: Trouble with getbyhostname()
- From: Paul Pluzhnikov
- Trouble with getbyhostname()
- Prev by Date: Re: g++ -D compiler options
- Next by Date: Re: Alternative to glade?
- Previous by thread: Re: Trouble with getbyhostname()
- Next by thread: Re: TUTORIALS ON COMPUTER PROGRAMMING
- Index(es):
Relevant Pages
|