Re: Trouble with getbyhostname()



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.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.



Relevant Pages

  • Re: Trouble with getbyhostname()
    ... this is, e.g. electric fence. ... Valgrind is almost certainly a better suggestion than efence. ... EFence allows your program to run at almost normal speed while "programs run significantly more slowly under Valgrind" as valgrind interprets your program. ...
    (comp.os.linux.development.apps)
  • Re: Suspicious _init() in core dump
    ... AFAICT glibc1 predates ELF and linuxthreads, ... The reason I believe that is that there is no debug info for either ... When did you last run your exe with valgrind? ... In order to understand recursion you must first understand recursion. ...
    (comp.os.linux.development.apps)
  • Re: newbie exploring better ways
    ... recursion entailed. ... Griff's suggestion is one of the cleanest solutions to this problem ... LOOP version (and if there's a clean LOOP solution I trust Ken to find ... plus a reverse, a DO with a REVERSE at the end has no side effects, ...
    (comp.lang.lisp)
  • Re: How to find memory leaks -- linux 64 bit
    ... > the exact version of valgrind that I was trying to compile). ... result of a memory leak. ... VG is rather weak in detecting stack corruption. ... In order to understand recursion you must first understand recursion. ...
    (comp.os.linux.development.apps)
  • Re: why no palloc() ("permanent alloc")?
    ... he's happy with letting the system free them when the process exits. ... But valgrind doesn't know this. ... void *reachable; ... In order to understand recursion you must first understand recursion. ...
    (comp.unix.programmer)