mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mldonkey-bugs] Segfault in


From: ygrek
Subject: Re: [Mldonkey-bugs] Segfault in
Date: Mon, 9 Dec 2013 10:41:02 +0800

On Sun, 08 Dec 2013 13:38:12 +0000
Germain <address@hidden> wrote:

> Reading symbols from /usr/pkg/libexec/mldonkey/mlnet...done.
> (gdb) run
> Starting program: /usr/pkg/libexec/mldonkey/mlnet 
> 2013/12/08 13:11:49 [cO] Starting MLDonkey 3.1.3 ... 
> 2013/12/08 13:11:49 [cO] Language EN, locale ASCII, ulimit for open files 128
> 2013/12/08 13:11:49 [cO] raised ulimit for open files from 128 to 3404
> 2013/12/08 13:11:49 [cO] MLDonkey is working in /home/german/.mldonkey
> 2013/12/08 13:11:50 [Gettext] Loading language resource mlnet_strings.EN_ASCII
> 2013/12/08 13:11:50 [cO] loaded language resource file
> 2013/12/08 13:11:50 [DNS] Resolving [germ] ...
> 2013/12/08 13:11:50 [DNS] Resolving [www.mldonkey.org] ...
> 2013/12/08 13:11:53 [DNS] Resolving [mldonkey.sf.net] ...
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to LWP 1]
> 0x000000000099a93b in alloc_host_entry ()
> (gdb) bt
> #0  0x000000000099a93b in alloc_host_entry ()
> #1  0x000000000099ab1c in unix_gethostbyname ()
> #2  0x0000000000898b1e in camlIp__make_entry_from_name_1176 ()
>     at src/utils/net/ip.ml:173
> [..]
> 
> I can't see the Caml objects in gdb
> 
> When I compiled mldonkey in debug, I get the symbols for it and am able to
> navitage in the Caml code.
> But I don't get to navigate the innermost C functions that crashes.

This function is from OCaml runtime, so in order to debug it one has to build
ocaml itself with debug symbols..
The crash is very strange.
Please show the output of sysinfo in mldonkey.
Also try running this small test :

open Unix

let () =
  let resolve name =
    try
      let he = gethostbyname name in
      Printf.printf "%d %d %s\n%!" (Array.length he.h_aliases) (Array.length 
he.h_addr_list) name
    with Not_found ->
      Printf.printf "- - %s\n%!" name
  in
  List.iter resolve ["germ";"www.mldonkey.org";"mldonkey.sf.net"]

Build:
 ocamlopt unix.cmxa test.ml -o test && ./test

> I have seen a post about similar symptoms in the forum:
> 
> http://mldonkey.sourceforge.net/forums/viewtopic.php?t=5761
> 
> I couldn't register to the forum.
> I just get a blank page on firefox and an `Error 500' on Internet Explorer.

"Register" seems to be working, try once again please.

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]