MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Segfault

 
Post new topic   Reply to topic    MLDonkey Forum Index -> Alternative platforms
View previous topic :: View next topic  
Author Message
McJagger
neophyte


Joined: 21 Dec 2010
Posts: 8

PostPosted: Wed Dec 22, 2010 7:40 am    Post subject: Segfault Reply with quote

Hello.

Since I upgraded to 10.10, mldonkey keeps crashing.


Debug result:
Code:
2010/12/21 19:47:14 [DNS] Resolving [www.mldonkey.org] ...
2010/12/21 19:47:14 [cO] Logging in /home/ante/.mldonkey/mlnet.log
2010/12/21 19:47:16 [dMain] Core started
[New Thread 0xb6b55b70 (LWP 5861)]
[New Thread 0xb6354b70 (LWP 5863)]

Program received signal SIGSEGV, Segmentation fault.
__memmove_ia32 () at ../sysdeps/i386/i686/multiarch/../memmove.S:111
111     ../sysdeps/i386/i686/multiarch/../memmove.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/../memmove.S


Code:
2010/12/21 19:47:14 [DNS] Resolving [www.mldonkey.org] ...
2010/12/21 19:47:14 [cO] Logging in /home/ante/.mldonkey/mlnet.log
2010/12/21 19:47:16 [dMain] Core started
[New Thread 0xb6b55b70 (LWP 5861)]
[New Thread 0xb6354b70 (LWP 5863)]

Program received signal SIGSEGV, Segmentation fault.
__memmove_ia32 () at ../sysdeps/i386/i686/multiarch/../memmove.S:111
111     ../sysdeps/i386/i686/multiarch/../memmove.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/../memmove.S



any ideas?
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Wed Dec 22, 2010 8:27 am    Post subject: Reply with quote

10.10 means ubuntu?
Where did you get mldonkey from - i.e. from package or self-compiled or downloaded binary?
In order to diagnose segfault stack backtrace is needed (see http://mldonkey.sourceforge.net/Bugs for instructions).
Show the output of sysinfo mldonkey command. If it is built from sources - rebuild with --enable-debug and do not strip the binary. Set higher verbosity (just in case) : set verbosity verb.
Run the binary with gdb :
Code:

gdb --args /path/to/mlnet

When it crashes, in gdb console :
Code:

thread apply all bt

and show the output.
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
McJagger
neophyte


Joined: 21 Dec 2010
Posts: 8

PostPosted: Wed Dec 22, 2010 9:07 am    Post subject: Reply with quote

Yes, it's ubuntu.

I downloaded the latest sources from SF and compiled myself. It is compiled with debugging.

Code:
Thread 3 (Thread 0xb64b6b70 (LWP 6721)):
#0  0x0001abbf in ?? ()
#1  0x082eedf1 in MD4Update ()
#2  0x00020000 in ?? ()
#3  0x08310ff4 in ?? ()
#4  0xa03a3111 in ?? ()
#5  0x35978ba5 in ?? ()
#6  0x6d064b70 in ?? ()
#7  0x02e00000 in ?? ()
#8  0x00000000 in ?? ()

Thread 2 (Thread 0xb6cb7b70 (LWP 6719)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb7f77884 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
#2  0x082f58af in hasher_thread (arg=0x0) at src/utils/lib/stubs_c.c:862
#3  0xb7f72cc9 in start_thread (arg=0xb6cb7b70) at pthread_create.c:304
#4  0xb7ee069e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7e0fb30 (LWP 6716)):
#0  0x082ef079 in MD4Transform ()
---Type <return> to continue, or q <return> to quit---
#1  0x00000000 in ?? ()



Code:
Eval command: sysinfo


   --Buildinfo--
Version:    MLNet Multi-Network p2p client version 3.0.6
Networks:    Global Shares Direct Connect Fasttrack FileTP BitTorrent Donkey (noSUI)
Ocaml version:    3.11.2 - C compiler version: 4.4.5
Built on:    Linux i686 2.6.35-22-generic-pae (little endian) with glibc 2.12.1
Configure args:     '--enable-option-checking=fatal' '--enable-debug'
Features:     threads zlib-1.2.3.4 bzip2-1.0.5 no-gd iconv(active) no-magic no-upnp no-natpmp no-check-bounds

   --Runinfo--
MLDonkey user:       admin (PW Protected) - uptime: 3m 27s - running as ante:ante
Enabled nets:     Donkey Overnet BitTorrent FileTP
Server usage:    enabled
Geoip:       enabled, GeoLite data created by MaxMind, available from http://maxmind.com/
IP blocking:    local: 0 ranges - web: 199875 ranges
System info:    Linux serv 2.6.35-22-generic-pae #33-Ubuntu SMP Sun Sep 19 22:14:14 UTC 2010 i686
        language: EN - locale: UTF-8 - UTC offset: +0100
        max_string_length: 16777211 - word_size: 32 - max_array_length: 4194303 - max_int: 1073741823
        max file descriptors: 1024 - max useable file size: 2^63-1 bits (do the maths ;-p)

   --Portinfo--
Network   |  Port|Type
----------+------+-------------------
BitTorrent|  6882|client_port TCP
BitTorrent|  6881|tracker_port TCP
Core      |  4080|http_port
Core      |  4000|telnet_port
Core      |  4001|gui_port
Donkey    |  9521|client_port TCP
Donkey    |  9525|client_port UDP
Donkey    |  6372|overnet_port TCP+UDP

   --Diskinfo--
Directory                  |Type                         |    used|    free|%free|Filesystem
---------------------------+-----------------------------+--------+--------+-----+----------
/home/ante/.mldonkey       |core/ini files               |  48.26G| 862.87G|  94%|ext2/3
temp                       |temp/downloading             | 559.90G| 127.77G|  18%|ext2/3
/share/stuff/incoming/files|shared (incoming_directories)| 559.90G| 127.77G|  18%|ext2/3
/share/stuff/incoming/files|shared (incoming_files)      | 559.90G| 127.78G|  18%|ext2/3
shared                     |shared (all_files)           |  48.26G| 862.87G|  94%|ext2/3
mlnet_tmp                  |$MLDONKEY_TEMP               |  48.26G| 862.87G|  94%|ext2/3
Back to top
View user's profile Send private message
McJagger
neophyte


Joined: 21 Dec 2010
Posts: 8

PostPosted: Wed Dec 22, 2010 9:20 am    Post subject: Reply with quote

strace

Code:
read(56, "b7737000-b7738000 rw-p 00016000 "..., 1024) = 1024
write(49, "b7737000-b7738000 rw-p 00016000 "..., 1024b7737000-b7738000 rw-p 00016000 09:00 50335466   /lib/libpthread-2.12.1.so
b7738000-b773a000 rw-p 00000000 00:00 0
b773a000-b773c000 r-xp 00000000 09:00 50335454   /lib/libdl-2.12.1.so
b773c000-b773d000 r--p 00001000 09:00 50335454   /lib/libdl-2.12.1.so
b773d000-b773e000 rw-p 00002000 09:00 50335454   /lib/libdl-2.12.1.so
b773e000-b7762000 r-xp 00000000 09:00 50335463   /lib/libm-2.12.1.so
b7762000-b7763000 r--p 00023000 09:00 50335463   /lib/libm-2.12.1.so
b7763000-b7764000 rw-p 00024000 09:00 50335463   /lib/libm-2.12.1.so
b7764000-b7765000 rw-p 00000000 00:00 0
b7765000-b7775000 r-xp 00000000 09:00 50331652   /lib/libbz2.so.1.0.4
b7775000-b7776000 r--p 0000f000 09:00 50331652   /lib/libbz2.so.1.0.4
b7776000-b7777000 rw-p 00010000 09:00 50331652   /lib/libbz2.so.1.0.4
b7777000-b778a000 r-xp 00000000 09:00 50331891   /lib/libz.so.1.2.3.4
b778a000-b778b000 r--p 00012000 09:00 50331891   /lib/libz.so.1.2.3.4
b778b000-b778c000 rw-p 00013000 09:00 50331891   /lib/libz.so.1.2.3.4
b778e000-b7790000 r-xp 0000000) = 1024
read(56, "0 09:00 5645220    /usr/lib/gcon"..., 1024) = 547
write(49, "0 09:00 5645220    /usr/lib/gcon"..., 5470 09:00 5645220    /usr/lib/gconv/CP1252.so
b7790000-b7791000 r--p 00001000 09:00 5645220    /usr/lib/gconv/CP1252.so
b7791000-b7792000 rw-p 00002000 09:00 5645220    /usr/lib/gconv/CP1252.so
b7792000-b7794000 rw-p 00000000 00:00 0
b7794000-b7795000 r-xp 00000000 00:00 0          [vdso]
b7795000-b77b1000 r-xp 00000000 09:00 50335449   /lib/ld-2.12.1.so
b77b1000-b77b2000 r--p 0001b000 09:00 50335449   /lib/ld-2.12.1.so
b77b2000-b77b3000 rw-p 0001c000 09:00 50335449   /lib/ld-2.12.1.so
bfc4c000-bfc6d000 rw-p 00000000 00:00 0          [stack]
) = 547
read(56, "", 1024)                      = 0
close(56)                               = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(6736, 6736, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
Aborted
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Wed Dec 22, 2010 3:41 pm    Post subject: Reply with quote

strace output looks wrong - use strace -f -ttT to trace children process too.
Did you do anything special before crash? Can you send me your binary?
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
McJagger
neophyte


Joined: 21 Dec 2010
Posts: 8

PostPosted: Wed Dec 22, 2010 5:38 pm    Post subject: Reply with quote

Code:
[pid  7328] 18:34:09.978541 read(80, "", 4841) = 0 <0>
[pid  7328] 18:34:09.978562 close(80)   = 0 <0>
[pid  7328] 18:34:09.978594 read(135, "\343\23\0\0\0P\341\24}\311F\226Up4\17\244\301\30\343\363\313\0\0", 5379) = 24 <0>
[pid  7328] 18:34:09.978632 read(164, "\305\r\0\0\0`\1\0\0\0\0\0\0\0\0\0\0\0", 6043) = 18 <0>
[pid  7328] 18:34:09.978664 read(89, "", 6898) = 0 <0>
[pid  7328] 18:34:09.978684 close(89)   = 0 <0>
[pid  7328] 18:34:09.978710 read(101, "", 8048) = 0 <0>
[pid  7328] 18:34:09.978731 close(101)  = 0 <0>
[pid  7328] 18:34:09.978757 read(133, "\305\r\0\0\0`\5\0\0\0\0\0\0\0\0\0\0\0", 9657) = 18 <0>
[pid  7328] 18:34:09.978787 read(171, "\305\r\0\0\0`\227\3\0\0\0\0\0\0\0\0\0\0", 12057) = 18 <0>
[pid  7328] 18:34:09.978818 read(102, "", 16057) = 0 <0>
[pid  7328] 18:34:09.978838 close(102)  = 0 <0>
[pid  7328] 18:34:09.978865 read(134, "\226\34qs\234\236\1\2376\1\220\r\217\366\362W\4\v\16\200`\212%\220\21\324\273\22\247-pd"..., 16384) = 10159 <0>
[pid  7328] 18:34:09.979130 _llseek(19, 51200, [51200], SEEK_SET) = 0 <0>
[pid  7328] 18:34:09.979163 write(19, "\4{\343\345\312e\2072\3115\226\5\257p\314$\213\230\301\252\243@\24%W\2712\27\234\31z\217"..., 10240) = 10240 <0>
[pid  7328] 18:34:09.979231 read(105, "\377\301\31\nF\20\16\247\264\357Yt8\266\10\217\ns?\31\f\3\274\270\2718:=\264{%\270"..., 16384) = 16384 <0>
[pid  7328] 18:34:09.979298 write(181, "\343f\0\0\0\1\20MSL\255\23\16\254\33\266\211H\365Pwo\276\272\37S\0001%\10\0\0"..., 107) = 107 <0>
[pid  7328] 18:34:09.979340 write(180, "\343f\0\0\0\1\20MSL\255\23\16\254\33\266\211H\365Pwo\276\272\37S\0001%\10\0\0"..., 107) = 107 <0>
[pid  7328] 18:34:09.979379 write(46, "\343f\0\0\0\1\20MSL\255\23\16\254\33\266\211H\365Pwo\276\272\37S\0001%\10\0\0"..., 107) = 107 <0>
[pid  7328] 18:34:09.979433 write(172, "\343f\0\0\0\1\20MSL\255\23\16\254\33\266\211H\365Pwo\276\272\37S\0001%\10\0\0"..., 107) = 107 <0>
[pid  7328] 18:34:09.979472 write(173, "\343f\0\0\0\1\20MSL\255\23\16\254\33\266\211H\365Pwo\276\272\37S\0001%\10\0\0"..., 107) = 107 <0>
[pid  7328] 18:34:09.979515 time(NULL)  = 1293039249 <0>
[pid  7328] 18:34:09.979554 time(NULL)  = 1293039249 <0>
[pid  7328] 18:34:09.979577 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1931, ...}) = 0 <0>
[pid  7328] 18:34:09.979642 write(4, "2010/12/22 18:34:09 [cUp] Detect"..., 86) = 86 <0>
[pid  7328] 18:34:09.979695 _llseek(183, 1436108800, [1436108800], SEEK_SET) = 0 <0>
[pid  7328] 18:34:09.979718 read(183,  <unfinished>
[pid  7326] 18:34:10.047208 <read> "\304\306\361\340|\340\202\320C\237+\360\360\v\177\377\360\20-\v\306\1\t[*\333\34\340~\227\341\320"..., 10240) = 10240 <12>
[pid  7326] 18:34:10.047347 _llseek(183, 1436119040, [1436119040], SEEK_SET) = 0 <0>
[pid  7326] 18:34:10.047427 read(183, "q\t\20\26\267\377+\271\353{\30016\242\220\334;a\320)\223\322\250=\337}W\300\312\242\362\342"..., 10240) = 10240 <0>
[pid  7326] 18:34:10.072685 gettimeofday({1293039250, 72710}, NULL) = 0 <0>
[pid  7326] 18:34:10.079874 gettimeofday({1293039250, 79902}, NULL) = 0 <0>
[pid  7326] 18:34:10.079973 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 47 <0>
[pid  7326] 18:34:10.080015 fcntl64(47, F_GETFD) = 0 <0>
[pid  7326] 18:34:10.080035 fcntl64(47, F_SETFD, FD_CLOEXEC) = 0 <0>
[pid  7326] 18:34:10.080054 fcntl64(47, F_GETFL) = 0x2 (flags O_RDWR) <0>
[pid  7326] 18:34:10.080073 fcntl64(47, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0>
[pid  7326] 18:34:10.080096 setsockopt(47, SOL_SOCKET, SO_KEEPALIVE, [0], 4) = 0 <0>
[pid  7326] 18:34:10.080120 fcntl64(47, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) <0>
[pid  7326] 18:34:10.080138 fcntl64(47, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0>
[pid  7326] 18:34:10.080156 gettimeofday({1293039250, 80162}, NULL) = 0 <0>
[pid  7326] 18:34:10.080181 connect(47, {sa_family=AF_INET, sin_port=htons(4662), sin_addr=inet_addr("95.160.227.115")}, 16) = -1 EINPROGRESS (Operation now in progress) <0>
[pid  7326] 18:34:10.080245 setsockopt(47, SOL_IP, IP_TOS, [8], 4) = 0 <0>
[pid  7326] 18:34:10.080270 setsockopt(47, SOL_IP, IP_TOS, [8], 4) = 0 <0>
[pid  7326] 18:34:10.080336 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 49 <0>
[pid  7326] 18:34:10.080364 fcntl64(49, F_GETFD) = 0 <0>
[pid  7326] 18:34:10.080382 fcntl64(49, F_SETFD, FD_CLOEXEC) = 0 <0>
[pid  7326] 18:34:10.080400 fcntl64(49, F_GETFL) = 0x2 (flags O_RDWR) <0>
[pid  7326] 18:34:10.080418 fcntl64(49, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0>
[pid  7326] 18:34:10.080440 setsockopt(49, SOL_SOCKET, SO_KEEPALIVE, [0], 4) = 0 <0>
[pid  7326] 18:34:10.080460 fcntl64(49, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) <0>
[pid  7326] 18:34:10.080478 fcntl64(49, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0>
[pid  7326] 18:34:10.080496 gettimeofday({1293039250, 80502}, NULL) = 0 <0>
[pid  7326] 18:34:10.080519 connect(49, {sa_family=AF_INET, sin_port=htons(46877), sin_addr=inet_addr("94.251.187.73")}, 16) = -1 EINPROGRESS (Operation now in progress) <0>
[pid  7328] 18:34:10.080580 <read> "q\t\20\26\267\377+\271\353{\30016\242\220\334;a\320)\223\322\250=\337}W\300\312\242\362\342"..., 10240) = 10240 <0>
[pid  7328] 18:34:10.080610 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 7328 detached
[pid  7326] 18:34:10.096569 setsockopt(49, SOL_IP, IP_TOS, [8], 4 <unfinished>
[pid  7327] 18:34:10.096622 +++ killed by SIGSEGV +++
18:34:10.098739 +++ killed by SIGSEGV +++
Segmentation fault


Where should I send you the bin?
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Wed Dec 22, 2010 9:33 pm    Post subject: Reply with quote

Hypothesis : bug in implementation of md4 exposed by some newer gcc/gas/ld/whatever. To check this - build the md4sum utility and feed it some files :
Code:

gcc -v -O6 src/utils/lib/md4_i686.s src/utils/lib/md4sum.c -o md4sum
find . -maxdepth 1 -type f | xargs -n 1 ./md4sum

BTW what are the values for MD4ARCH and MD4COMP in config/Makefile.config?
If it crashes - try building with other md4_i*.s implementations and also try with md4.c

If md4sum doesn't crash - then the problem is probably elsewhere - send your mlnet binary to ygrek at autistici dot org.
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
McJagger
neophyte


Joined: 21 Dec 2010
Posts: 8

PostPosted: Thu Dec 23, 2010 7:59 am    Post subject: Reply with quote

Code:
ante@serv:~/mldonkey-3.0.6$ find . -maxdepth 1 -type f | xargs -n 1 ./md4sum
67226301484114646621182387346203138114101
16652787016418521162372463822234655203
1501952522542491998513910203112318411206214
8219714142234123013319926124189149476699
151121145424912711205961771442924175224159
2462381261082507494191186188601661237132237
148188743251761564260132212831207568164
111160771139262448814661148212922622526
14211871917118215139019212720024217726203
1712078250211123424569235104212088251180


binary sent.
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 4001
Location: Germany

PostPosted: Thu Dec 23, 2010 8:18 am    Post subject: Reply with quote

Please recompile MLDonkey adding "--enable-force-ocaml" to MLDonkey configure options.
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
McJagger
neophyte


Joined: 21 Dec 2010
Posts: 8

PostPosted: Thu Dec 23, 2010 9:05 am    Post subject: Reply with quote

I have, did not help Sad
Back to top
View user's profile Send private message
McJagger
neophyte


Joined: 21 Dec 2010
Posts: 8

PostPosted: Mon Dec 27, 2010 2:19 pm    Post subject: Reply with quote

After some more testing, I don't think that it's the bin itself, as it also crashes on precompiled bins like the ubuntu mldonkey-server bin and some old mldonkey-2.9.1 and mldonkey-3.0.0 bins that worked for me before on an older installation.

I do have a raid configuration on the computer, but moving the .mldonkey and the mldonkey directories to a "normal" hdd on the same computer did not help.

Any ideas what else there could be? Which additional programs and libs does mldonkey use that could cause such a problem?
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Thu Dec 30, 2010 8:45 am    Post subject: Reply with quote

Hm, so the problem is triggered by some new version of system lib..
Install libc6-dbg package to have better backtrace. Try running with valgrind - valgrind --log-file=log mlnet
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
McJagger
neophyte


Joined: 21 Dec 2010
Posts: 8

PostPosted: Sat Jan 08, 2011 1:08 pm    Post subject: Reply with quote

I had it running now for a few days after I deleted all files from the incoming directory, but it crashes now again... Even deleting all temp and incoming files does not help.

strace:

Code:
[pid  9212] 14:04:10.331865 poll(0x92f9db0, 0, 5) = 0 (Timeout) <0>
[pid  9212] 14:04:10.336989 gettimeofday({1294491850, 337010}, NULL) = 0 <0>
[pid  9212] 14:04:10.337068 write(93, "\343\21\0\0\0T`R\275\353\16a?d3Ba\361 \27\210\311", 22) = 22 <0>
[pid  9212] 14:04:10.337174 gettimeofday({1294491850, 337195}, NULL) = 0 <0>
[pid  9212] 14:04:10.337258 poll([{fd=99, events=POLLIN|POLLOUT}, {fd=98, events=POLLIN|POLLOUT}, {fd=97, events=POLLIN}, {fd=96, events=POLLIN}, {fd=93, events=POLLIN}, {fd=90, events=POLLIN}, {fd=89, events=POLLIN}, {fd=88, events=POLLIN}, {fd=87, events=POLLIN}, {fd=85, events=POLLIN}, {fd=86, events=POLLIN|POLLOUT}, {fd=84, events=POLLIN}, {fd=83, events=POLLIN}, {fd=79, events=POLLIN}, {fd=77, events=POLLIN}, {fd=76, events=POLLIN}, {fd=75, events=POLLIN|POLLOUT}, {fd=71, events=POLLIN|POLLOUT}, {fd=68, events=POLLIN}, {fd=74, events=POLLIN}, {fd=73, events=POLLIN|POLLOUT}, {fd=72, events=POLLIN|POLLOUT}, {fd=64, events=POLLIN}, {fd=63, events=POLLIN}, {fd=62, events=POLLIN}, {fd=61, events=POLLIN}, {fd=60, events=POLLIN}, {fd=59, events=POLLIN}, {fd=58, events=POLLIN}, {fd=57, events=POLLIN}, {fd=56, events=POLLIN}, {fd=66, events=POLLIN|POLLOUT}, ...], 43, 63) = 0 (Timeout) <0>
[pid  9212] 14:04:10.400626 poll(0x92f9db0, 0, 5) = 0 (Timeout) <0>
[pid  9212] 14:04:10.405750 gettimeofday({1294491850, 405771}, NULL) = 0 <0>
[pid  9212] 14:04:10.405830 gettimeofday({1294491850, 405850}, NULL) = 0 <0>
[pid  9212] 14:04:10.405913 poll([{fd=95, events=POLLIN|POLLOUT}, {fd=94, events=POLLIN|POLLOUT}, {fd=92, events=POLLIN|POLLOUT}, {fd=91, events=POLLIN}, {fd=82, events=POLLIN|POLLOUT}, {fd=81, events=POLLIN|POLLOUT}, {fd=80, events=POLLIN|POLLOUT}, {fd=78, events=POLLIN|POLLOUT}, {fd=70, events=POLLIN}, {fd=69, events=POLLIN|POLLOUT}, {fd=67, events=POLLIN|POLLOUT}, {fd=66, events=POLLIN|POLLOUT}, {fd=56, events=POLLIN}, {fd=57, events=POLLIN}, {fd=58, events=POLLIN}, {fd=59, events=POLLIN}, {fd=60, events=POLLIN}, {fd=61, events=POLLIN}, {fd=62, events=POLLIN}, {fd=63, events=POLLIN}, {fd=64, events=POLLIN}, {fd=72, events=POLLIN|POLLOUT}, {fd=73, events=POLLIN|POLLOUT}, {fd=74, events=POLLIN}, {fd=68, events=POLLIN}, {fd=71, events=POLLIN|POLLOUT}, {fd=75, events=POLLIN|POLLOUT}, {fd=76, events=POLLIN}, {fd=77, events=POLLIN}, {fd=79, events=POLLIN}, {fd=83, events=POLLIN}, {fd=84, events=POLLIN}, ...], 43, 99) = 1 ([...]) <0>
[pid  9212] 14:04:10.487554 poll(0x92f9db0, 0, 5) = 0 (Timeout) <0>
[pid  9212] 14:04:10.492685 gettimeofday({1294491850, 492707}, NULL) = 0 <0>
[pid  9212] 14:04:10.492771 read(97, "\343O\0\0\0Yi\236&\217iP\250Y\244\7p\303\366rn\1<\0Fanboys."..., 16384) = 84 <0>
[pid  9212] 14:04:10.492897 gettimeofday({1294491850, 492918}, NULL) = 0 <0>
[pid  9212] 14:04:10.492984 poll([{fd=99, events=POLLIN|POLLOUT}, {fd=98, events=POLLIN|POLLOUT}, {fd=97, events=POLLIN}, {fd=96, events=POLLIN}, {fd=93, events=POLLIN}, {fd=90, events=POLLIN}, {fd=89, events=POLLIN}, {fd=88, events=POLLIN}, {fd=87, events=POLLIN}, {fd=85, events=POLLIN}, {fd=86, events=POLLIN|POLLOUT}, {fd=84, events=POLLIN}, {fd=83, events=POLLIN}, {fd=79, events=POLLIN}, {fd=77, events=POLLIN}, {fd=76, events=POLLIN}, {fd=75, events=POLLIN|POLLOUT}, {fd=71, events=POLLIN|POLLOUT}, {fd=68, events=POLLIN}, {fd=74, events=POLLIN}, {fd=73, events=POLLIN|POLLOUT}, {fd=72, events=POLLIN|POLLOUT}, {fd=64, events=POLLIN}, {fd=63, events=POLLIN}, {fd=62, events=POLLIN}, {fd=61, events=POLLIN}, {fd=60, events=POLLIN}, {fd=59, events=POLLIN}, {fd=58, events=POLLIN}, {fd=57, events=POLLIN}, {fd=56, events=POLLIN}, {fd=66, events=POLLIN|POLLOUT}, ...], 43, 12) = 0 (Timeout) <0>
[pid  9212] 14:04:10.505343 poll(0x92f9db0, 0, 5) = 0 (Timeout) <0>
[pid  9212] 14:04:10.510468 gettimeofday({1294491850, 510488}, NULL) = 0 <0>
[pid  9212] 14:04:10.510550 gettimeofday({1294491850, 510570}, NULL) = 0 <0>
[pid  9212] 14:04:10.510633 poll([{fd=95, events=POLLIN|POLLOUT}, {fd=94, events=POLLIN|POLLOUT}, {fd=92, events=POLLIN|POLLOUT}, {fd=91, events=POLLIN}, {fd=82, events=POLLIN|POLLOUT}, {fd=81, events=POLLIN|POLLOUT}, {fd=80, events=POLLIN|POLLOUT}, {fd=78, events=POLLIN|POLLOUT}, {fd=70, events=POLLIN}, {fd=69, events=POLLIN|POLLOUT}, {fd=67, events=POLLIN|POLLOUT}, {fd=66, events=POLLIN|POLLOUT}, {fd=56, events=POLLIN}, {fd=57, events=POLLIN}, {fd=58, events=POLLIN}, {fd=59, events=POLLIN}, {fd=60, events=POLLIN}, {fd=61, events=POLLIN}, {fd=62, events=POLLIN}, {fd=63, events=POLLIN}, {fd=64, events=POLLIN}, {fd=72, events=POLLIN|POLLOUT}, {fd=73, events=POLLIN|POLLOUT}, {fd=74, events=POLLIN}, {fd=68, events=POLLIN}, {fd=71, events=POLLIN|POLLOUT}, {fd=75, events=POLLIN|POLLOUT}, {fd=76, events=POLLIN}, {fd=77, events=POLLIN}, {fd=79, events=POLLIN}, {fd=83, events=POLLIN}, {fd=84, events=POLLIN}, ...], 43, 99) = 1 ([...]) <0>
[pid  9212] 14:04:10.537326 poll(0x92f9db0, 0, 5) = 0 (Timeout) <0>
[pid  9212] 14:04:10.542451 gettimeofday({1294491850, 542472}, NULL) = 0 <0>
[pid  9212] 14:04:10.542531 read(96, "\343J\0\0\0Y\307h\247\244q\216\270\235\273\324H\17kQ\250u7\0Killshot"..., 16384) = 103 <0>
[pid  9212] 14:04:10.542716 gettimeofday({1294491850, 542737}, NULL) = 0 <0>
[pid  9212] 14:04:10.542802 poll([{fd=99, events=POLLIN|POLLOUT}, {fd=98, events=POLLIN|POLLOUT}, {fd=97, events=POLLIN}, {fd=96, events=POLLIN|POLLOUT}, {fd=93, events=POLLIN}, {fd=90, events=POLLIN}, {fd=89, events=POLLIN}, {fd=88, events=POLLIN}, {fd=87, events=POLLIN}, {fd=85, events=POLLIN}, {fd=86, events=POLLIN|POLLOUT}, {fd=84, events=POLLIN}, {fd=83, events=POLLIN}, {fd=79, events=POLLIN}, {fd=77, events=POLLIN}, {fd=76, events=POLLIN}, {fd=75, events=POLLIN|POLLOUT}, {fd=71, events=POLLIN|POLLOUT}, {fd=68, events=POLLIN}, {fd=74, events=POLLIN}, {fd=73, events=POLLIN|POLLOUT}, {fd=72, events=POLLIN|POLLOUT}, {fd=64, events=POLLIN}, {fd=63, events=POLLIN}, {fd=62, events=POLLIN}, {fd=61, events=POLLIN}, {fd=60, events=POLLIN}, {fd=59, events=POLLIN}, {fd=58, events=POLLIN}, {fd=57, events=POLLIN}, {fd=56, events=POLLIN}, {fd=66, events=POLLIN|POLLOUT}, ...], 43, 67) = 1 ([{fd=96, revents=POLLOUT}]) <0>
[pid  9212] 14:04:10.543393 poll(0x92f9db0, 0, 5) = 0 (Timeout) <0>
[pid  9212] 14:04:10.548518 gettimeofday({1294491850, 548539}, NULL) = 0 <0>
[pid  9212] 14:04:10.548598 write(96, "\343\21\0\0\0T\307h\247\244q\216\270\235\273\324H\17kQ\250u", 22) = 22 <0>
[pid  9212] 14:04:10.548706 gettimeofday({1294491850, 548727}, NULL) = 0 <0>
[pid  9212] 14:04:10.548790 poll([{fd=95, events=POLLIN|POLLOUT}, {fd=94, events=POLLIN|POLLOUT}, {fd=92, events=POLLIN|POLLOUT}, {fd=91, events=POLLIN}, {fd=82, events=POLLIN|POLLOUT}, {fd=81, events=POLLIN|POLLOUT}, {fd=80, events=POLLIN|POLLOUT}, {fd=78, events=POLLIN|POLLOUT}, {fd=70, events=POLLIN}, {fd=69, events=POLLIN|POLLOUT}, {fd=67, events=POLLIN|POLLOUT}, {fd=66, events=POLLIN|POLLOUT}, {fd=56, events=POLLIN}, {fd=57, events=POLLIN}, {fd=58, events=POLLIN}, {fd=59, events=POLLIN}, {fd=60, events=POLLIN}, {fd=61, events=POLLIN}, {fd=62, events=POLLIN}, {fd=63, events=POLLIN}, {fd=64, events=POLLIN}, {fd=72, events=POLLIN|POLLOUT}, {fd=73, events=POLLIN|POLLOUT}, {fd=74, events=POLLIN}, {fd=68, events=POLLIN}, {fd=71, events=POLLIN|POLLOUT}, {fd=75, events=POLLIN|POLLOUT}, {fd=76, events=POLLIN}, {fd=77, events=POLLIN}, {fd=79, events=POLLIN}, {fd=83, events=POLLIN}, {fd=84, events=POLLIN}, ...], 43, 61) = 1 ([...]) <0>
[pid  9212] 14:04:10.568821 poll(0x92f9db0, 0, 5) = 0 (Timeout) <0>
[pid  9212] 14:04:10.573944 gettimeofday({1294491850, 573965}, NULL) = 0 <0>
[pid  9212] 14:04:10.574022 read(90, "\3438\0\0\0Y\307h\247\244q\216\270\235\273\324H\17kQ\250u%\0killshot"..., 16384) = 195 <0>
[pid  9212] 14:04:10.574279 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid  9212] 14:04:10.574489 rt_sigaction(SIGSEGV, {SIG_DFL, [], 0}, NULL, 8) = 0 <0>
[pid  9212] 14:04:10.574601 sigreturn() = ? (mask now []) <0>
[pid  9212] 14:04:10.574705 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid  9213] 14:04:10.578479 +++ killed by SIGSEGV +++


GDB:


Code:
2011/01/08 14:06:11 [cO] Starting MLDonkey 3.0.6 ...
2011/01/08 14:06:11 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2011/01/08 14:06:11 [cO] MLDonkey is working in /home/ante/.mldonkey
2011/01/08 14:06:11 [Gettext] Loading language resource mlnet_strings.en_US.UTF-8
2011/01/08 14:06:11 [cO] loaded language resource file
2011/01/08 14:06:11 [cO] PID file /home/ante/.mldonkey/mlnet.pid exists.
2011/01/08 14:06:11 [cO] Checking whether PID 9212 is still used...
2011/01/08 14:06:11 [cO] Removing stalled file mlnet.pid...
2011/01/08 14:06:11 [cO] Removing stalled file /home/ante/.mldonkey/config_files_space.tmp...
2011/01/08 14:06:11 [DNS] Resolving [serv] ...
2011/01/08 14:06:11 [DNS] Resolving [www.mldonkey.org] ...
2011/01/08 14:06:11 [dMain] Libmagic file-type recognition database present
2011/01/08 14:06:11 [cO] Logging in /home/ante/.mldonkey/mlnet.log
2011/01/08 14:06:14 [dMain] Core started
[New Thread 0xb6c6cb70 (LWP 9220)]

Program received signal SIGSEGV, Segmentation fault.
0x08115f19 in camlDonkeyProtoClient__write_1819 ()
(gdb) thread apply all bt

Thread 2 (Thread 0xb6c6cb70 (LWP 9220)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb7f5b884 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
#2  0x082f2f4f in hasher_thread (arg=0x0) at src/utils/lib/stubs_c.c:862
#3  0xb7f56cc9 in start_thread (arg=0xb6c6cb70) at pthread_create.c:304
#4  0xb7ec469e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7df26c0 (LWP 9217)):
#0  0x08115f19 in camlDonkeyProtoClient__write_1819 ()
#1  0x00000000 in ?? ()
(gdb)
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Wed Jan 12, 2011 9:09 am    Post subject: Reply with quote

I've installed ubuntu 10.10 in qemu and run mldonkey 3.0.6 there without any problems (downloading from BT and EDK).
Quote:
--Buildinfo--
Version: MLNet Multi-Network p2p client version 3.0.6
Networks: Global Shares Direct Connect Fasttrack FileTP BitTorrent Donkey (noSUI)
Ocaml version: 3.11.2 - C compiler version: 4.4.5
Built on: Linux i686 2.6.35-22-generic (little endian) with glibc 2.12.1
Configure args: '--enable-option-checking=fatal' '--enable-debug'
Features: threads zlib-1.2.3.4 bzip2-1.0.5 no-gd iconv(active) no-magic no-upnp no-natpmp no-check-bounds

--Runinfo--
MLDonkey user: admin (Warning: empty Password) - uptime: 17h 19m 11s - running as user:user
Enabled nets: Donkey Overnet BitTorrent FileTP
Server usage: enabled
Geoip: enabled, GeoLite data created by MaxMind, available from http://maxmind.com/
IP blocking: local: 0 ranges - web: 199876 ranges
System info: Linux ubuntu-i686 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686
language: EN - locale: UTF-8 - UTC offset: +0000
max_string_length: 16777211 - word_size: 32 - max_array_length: 4194303 - max_int: 1073741823
max file descriptors: 1024 - max useable file size: 2^63-1 bits (do the maths ;-p)

--Portinfo--
Network | Port|Type
----------+------+-------------------
BitTorrent| 6882|client_port TCP
BitTorrent| 6881|tracker_port TCP
Core | 4080|http_port
Core | 4000|telnet_port
Core | 4001|gui_port
Donkey | 6065|client_port TCP
Donkey | 6069|client_port UDP
Donkey | 15774|overnet_port TCP+UDP

--Diskinfo--
Directory |Type | used| free|%free|Filesystem
--------------------+-----------------------------+--------+--------+-----+----------
/home/user/.mldonkey|core/ini files | 2.84G| 6.54G| 69%|ext2/3
temp |temp/downloading | 2.84G| 6.54G| 69%|ext2/3
incoming/directories|shared (incoming_directories)| 2.84G| 6.54G| 69%|ext2/3
incoming/files |shared (incoming_files) | 2.84G| 6.54G| 69%|ext2/3
shared |shared (all_files) | 2.84G| 6.54G| 69%|ext2/3
mlnet_tmp |$MLDONKEY_TEMP | 2.84G| 6.54G| 69%|ext2/3


Also the binary you sent me runs fine..
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Alternative platforms All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo