aMule Forum
English => aMule Help => Topic started by: hopelessone on February 19, 2008, 09:20:38 AM
-
Hi,
i get a bunch of these...!!
2008-02-19 16:11:43: ClientCreditsList.cpp(381): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
etc....(lots)
and these:
2008-02-19 16:18:42: Logger.cpp(269): Error: Failed to create a temporary file name (error 24: Too many open files)
2008-02-19 16:18:42: Logger.cpp(269): Error: can't open user configuration file.
i use aMuled latest from Festor Packages
If i increase my limits in /etc/security/limits.conf
User soft nofile 2048
User hard nofile 2048
aMuled crashes after 1Minute !!
amule.conf file:
MaxDownload=0
MaxUpload=1053
SlotAllocation=20
...
Port=4662
UDPPort=4672
..
MaxSourcesPerFile=300
MaxConnections=1024
So im stuck as half the files i added in aMuleGUI wern't there...i added about 300-400 in about an hour...
2008-02-19 16:02:00: DownloadQueue.cpp(175): Found 940 part files
-
What's the output of ulimit -n ?
-
firebox@firebox-desktop:~$ ulimit -n
1024
firebox@firebox-desktop:~$ ls /proc/$(pidof amuled)/fd|wc -l
1024
firebox@firebox-desktop:~$
-
Well, increase your opened file limit by executing e.g. "ulimit -n 2048" as root and your problems should be gone.
-
i'll give that a try...
:)
whats the difference between this and they way i did it in my first post?
If i increase my limits in /etc/security/limits.conf
User soft nofile 2048
User hard nofile 2048
aMuled crashes after 1Minute !!
-
nope gives me:
2008-02-19 21:35:04: ClientCreditsList.cpp(381): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
2008-02-19 21:35:06: ClientCreditsList.cpp(381): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
-
Could you please check the ulimit and the file descriptors in the moment aMuled crashes? What values do they have?
-
Check the what what with the what?
How so?
-
Actually, doing "ulimit -n 2048" as root will simply change the limit for the root user. ;)
You'll either have to specify the limit in /etc/security or /etc/security/limits.conf , or in whatever startup script your distro provides that is run during boot (such as /etc/conf.d/local.start when using Gentoo).
Check this page: http://gentoo-wiki.com/SECURITY_Limit_User_Processes
Check with "ulimit -n" before running aMule to see if you've actually set the value for that user.
-
i'm gonna kill myself...
in the the first post in this thread...
i said...........
If i increase my limits in /etc/security/limits.conf
User soft nofile 2048
User hard nofile 2048
aMuled crashes after 1Minute !! <<---- Still Does...
what's that you say? have a beer instead of killing myself?...OK...
-
firebox@firebox-desktop:~$ ulimit -n
1024
firebox@firebox-desktop:~$ ls /proc/$(pidof amuled)/fd|wc -l
1024
firebox@firebox-desktop:~$
Clearly you did something wrong. ;)
-
ok ...i have to put the limits back...oh man...
If i increase my limits in /etc/security/limits.conf
User soft nofile 2048
User hard nofile 2048
aMuled crashes after 1Minute !! <<---- Still Does...
so i have to log out and reset it back to 1024...
i will log out and post a new one...one second...please..
-
firebox@firebox-desktop:~$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 8188
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 2048
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 8188
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
and watch aMuled crash in 1 minute......
-
Can you post a backtrace?
-
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217763648 (LWP 12135)]
0x080707e9 in ?? ()
(gdb) bt
#0 0x080707e9 in ?? ()
#1 0x08072276 in ?? ()
#2 0x080724e3 in ?? ()
#3 0xb79bc51a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#4 0xb79bc5c7 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#5 0x08072810 in ?? ()
#6 0xb76c2450 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#7 0x08070551 in ?? ()
(gdb) bt full
#0 0x080707e9 in ?? ()
No symbol table info available.
#1 0x08072276 in ?? ()
No symbol table info available.
#2 0x080724e3 in ?? ()
No symbol table info available.
#3 0xb79bc51a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#4 0xb79bc5c7 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5 0x08072810 in ?? ()
No symbol table info available.
#6 0xb76c2450 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#7 0x08070551 in ?? ()
No symbol table info available.
(gdb) bt fullthread apply all bt
No symbol table is loaded. Use the "file" command.
-
wxWidgets 2.8.7
-
Do you want me to do this....?
$ ./configure --enable-mem_tracing --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --with-opengl --enable-gtk2 --enable-unicode --enable-largefile --prefix=/home/myuser/usr/local/wxWidgets-2.8.7/ && make && make install
And compile aMule like this:
$ ./configure --enable-ccache --with-denoise-level=3 --enable-debug --disable-optimize --enable-verbose --enable-geoip --enable-cas --enable-wxcas --enable-amule-gui --enable-webserver --enable-amulecmd --enable-amule-daemon --with-wx-config=/home/myuser/usr/local/wxWidgets-2.8.7/bin/wx-config --prefix=/home/myuser/usr/local/amule && LD_LIBRARY_PATH=/home/myuser/usr/local/wxWidgets-2.8.7/lib/ make && LD_LIBRARY_PATH=/home/myuser/usr/local/wxWidgets-2.8.7/lib/ make install
And run aMule(d) like this:
LD_LIBRARY_PATH=/home/myuser/usr/local/wxWidgets-2.8.7/lib/:/home/myuser/usr/local/libupnp/lib/ LANG=en_US.UTF-8 /home/myuser/usr/local/amule/bin/amule
and then re-post? as aMuled keeps crashing within 1 minute...
:)
-
Please do.
-
it's 11.30pm in Korea...see ya tomorrow mate..(with a fuller backtrace of course!!)
;) Nite..
-
*** glibc detected *** /home/firebox/usr/local/amule/bin/amuled: double free or corruption (!prev): 0x08d84680 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7714975]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb77183e0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb78e0d81]
/usr/lib/libcrypto++.so.6(_ZN8CryptoPP7X917RNGD0Ev+0xea)[0xb7e45aea]
/home/firebox/usr/local/amule/bin/amuled(_ZN8CryptoPP10member_ptrINS_21RandomNumberGeneratorEED1Ev+0x25)[0x80ba92b]
/home/firebox/usr/local/amule/bin/amuled[0x80bd859]
/home/firebox/usr/local/amule/bin/amuled[0x80b6f0a]
/home/firebox/usr/local/amule/bin/amuled[0x8090cd1]
/home/firebox/usr/local/amule/bin/amuled[0x8091062]
/home/firebox/usr/local/amule/bin/amuled[0x80cc1d9]
/home/firebox/usr/local/amule/bin/amuled[0x80d8c45]
/home/firebox/usr/local/amule/bin/amuled[0x812bc1f]
/home/firebox/usr/local/amule/bin/amuled[0x80d0762]
/home/firebox/usr/local/amule/bin/amuled[0x80da174]
/home/firebox/usr/local/wxWidgets-2.8.7/lib/libwx_baseud-2.8.so.0(_ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_+0x43)[0xb79acd5f]
/home/firebox/usr/local/wxWidgets-2.8.7/lib/libwx_baseud-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0xe0)[0xb7a6c59e]
/home/firebox/usr/local/wxWidgets-2.8.7/lib/libwx_baseud-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0xd8)[0xb7a6e3ba]
/home/firebox/usr/local/wxWidgets-2.8.7/lib/libwx_baseud-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x13c)[0xb7a6e520]
/home/firebox/usr/local/wxWidgets-2.8.7/lib/libwx_baseud-2.8.so.0(_ZN12wxEvtHandler20ProcessPendingEventsEv+0xfc)[0xb7a6ce76]
/home/firebox/usr/local/wxWidgets-2.8.7/lib/libwx_baseud-2.8.so.0(_ZN12wxAppConsole20ProcessPendingEventsEv+0xc9)[0xb79ade71]
/home/firebox/usr/local/amule/bin/amuled[0x8075a04]
/home/firebox/usr/local/wxWidgets-2.8.7/lib/libwx_baseud-2.8.so.0(_Z7wxEntryRiPPw+0xa8)[0xb79f5aa6]
/home/firebox/usr/local/wxWidgets-2.8.7/lib/libwx_baseud-2.8.so.0(_Z7wxEntryRiPPc+0x37)[0xb79f5b71]
/home/firebox/usr/local/amule/bin/amuled[0x8075cc4]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb76bf450]
/home/firebox/usr/local/amule/bin/amuled(_ZN8CryptoPP22BufferedTransformation3GetEPhj+0x69)[0x80730d1]
======= Memory map: ========
08048000-0841b000 r-xp 00000000 08:21 2392074 /home/firebox/usr/local/amule/bin/amuled
0841b000-0841d000 rw-p 003d3000 08:21 2392074 /home/firebox/usr/local/amule/bin/amuled
0841d000-08d94000 rw-p 0841d000 00:00 0 [heap]
b5d65000-b5d66000 ---p b5d65000 00:00 0
b5d66000-b6566000 rw-p b5d66000 00:00 0
b6566000-b6567000 ---p b6566000 00:00 0
b6567000-b6d67000 rw-p b6567000 00:00 0
b6d67000-b6d68000 ---p b6d67000 00:00 0
b6d68000-b7568000 rw-p b6d68000 00:00 0
b7568000-b7648000 r--p 00000000 08:21 4228276 /usr/lib/locale/en_US.utf8/LC_COLLATE
b7648000-b7651000 r-xp 00000000 08:21 2031638 /lib/tls/i686/cmov/libnss_files-2.7.so
b7651000-b7653000 rw-p 00008000 08:21 2031638 /lib/tls/i686/cmov/libnss_files-2.7.so
b765e000-b765f000 rw-p b765e000 00:00 0
b765f000-b7660000 r--p 00000000 08:21 4228282 /usr/lib/locale/en_US.utf8/LC_NUMERIC
b7660000-b7661000 r--p 00000000 08:21 4228285 /usr/lib/locale/en_US.utf8/LC_TIME
b7661000-b7662000 r--p 00000000 08:21 4228280 /usr/lib/locale/en_US.utf8/LC_MONETARY
b7662000-b7663000 r--p 00000000 08:21 4243498 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7663000-b7664000 r--p 00000000 08:21 4228283 /usr/lib/locale/en_US.utf8/LC_PAPER
b7664000-b76a3000 r--p 00000000 08:21 4228277 /usr/lib/locale/en_US.utf8/LC_CTYPE
b76a3000-b76a5000 rw-p b76a3000 00:00 0
b76a5000-b76a7000 r-xp 00000000 08:21 2031632 /lib/tls/i686/cmov/libdl-2.7.so
b76a7000-b76a9000 rw-p 00001000 08:21 2031632 /lib/tls/i686/cmov/libdl-2.7.so
b76a9000-b77f2000 r-xp 00000000 08:21 2031629 /lib/tls/i686/cmov/libc-2.7.so
b77f2000-b77f3000 r--p 00149000 08:21 2031629 /lib/tls/i686/cmov/libc-2.7.so
b77f3000-b77f5000 rw-p 0014a000 08:21 2031629 /lib/tls/i686/cmov/libc-2.7.so
b
Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb) bt
No stack.
(gdb) bt full
No stack.
(gdb) thread apply all bt
(gdb)
-
hopelessone:
1) You know, noone ever reads the first post of a thread ;)
2) Crypto++ version?
-
libcrypto++6 >> 5.5-3
:)
-
hopelessone, try doing "export MALLOC_CHECK_=2" before running gdb
-
OK,
firebox@firebox-desktop:~$ export MALLOC_CHECK_=2
firebox@firebox-desktop:~$ LD_LIBRARY_PATH=/home/firebox/usr/local/wxWidgets-2.8.7/lib/:/home/firebox/usr/local/libupnp/lib/ LANG=en_US.UTF-8 gdb /home/firebox/usr/local/amule/bin/amuled
...etc..
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
...etc...
Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb) bt
No stack. <<-- same for the rest
1. I added 1 stick of memory a day or so before this happened but is working ok.
2. Re-install OS?
[Edit: it also crashes if i remove all files from Temp]
-
googling: glibc detected double free or corruption (!prev)
Comes up with either :
1. Permissions problem (which i did see a aMule log that said: impossible to save .... (something) directory... (something)
2. Or it is clearing the memory twice..
what Permissions does amule use need/check ? as the /Temp and /Incoming folders are stored on a separate Hard Drive...
thanks..
installed festors package and gave me the following:
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMuled SVN using wxGTK2 v2.8.4 (Snapshot: Fri Jan 25 07:01:56 CET 2008)
Running on: Linux 2.6.24-5-generic i686
[2] ?? in amuled [0x807a39f]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0xb79d7456]
[4] ?? in [0xb7f7c420]
[5] ?? in amuled [0x8070bc1]
[6] ?? in amuled [0x80721e5]
[7] ?? in amuled [0x80724f5]
[8] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0xb796651a]
[9] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0xb79665c7]
[10] ?? in amuled [0x8072566]
[11] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0xb766c450]
[12] CryptoPP::BufferedTransformation::Get(unsigned char*, unsigned int) in amuled[0x8070891]
-
Fixed it by:
1. Resetting limits back to the default 1024 <<--aMuled still crashes if you have this higher and hits connections hits above 1024
2. Reinstalling Festors package
3. Deleting lots of files...