Hi Luke-Jr,
bfgminer crashes every day, when my internet connection gets a forced disconnect by the provider (the 24h disconnect is normal and is used to assign me a new ip-address. Comes from the "if you want a static ip-address, then pay more" philosophy).
I have a pc in lan, router with builtin dsl-modem, nat. The router reconnects automatically if the provider drops the connection.
This is the crash
user@i2600k:~/Bitcoin/bfgminer-3.1.4/bfgminer$ gdb bfgminer core
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/user/Bitcoin/bfgminer-3.1.4/bfgminer/bfgminer...done.
[New LWP 15788]
[New LWP 15784]
[New LWP 15775]
[New LWP 15778]
[New LWP 15787]
[New LWP 15786]
[New LWP 15757]
[New LWP 15782]
[New LWP 15776]
[New LWP 15774]
[New LWP 15789]
[New LWP 15758]
[New LWP 15780]
[New LWP 15785]
[New LWP 15777]
[New LWP 15779]
[New LWP 15781]
[New LWP 15773]
[New LWP 15783]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./bfgminer -c btc.conf'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000414c94 in clear_stratum_shares (pool=0x210e9d0) at miner.c:6959
6959 if (sshare->work->pool == pool && work->thr_id < my_mining_threads) {
(gdb) bt
#0 0x0000000000414c94 in clear_stratum_shares (pool=0x210e9d0) at miner.c:6959
#1 0x000000000041dea8 in stratum_thread (userdata=0x210e9d0) at miner.c:7196
#2 0x00007f09ba506e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007f09b92c6ccd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x0000000000000000 in ?? ()
(gdb) frame 0
#0 0x0000000000414c94 in clear_stratum_shares (pool=0x210e9d0) at miner.c:6959
6959 if (sshare->work->pool == pool && work->thr_id < my_mining_threads) {
(gdb) list
6954 thr_cleared[i] = 0;
6955 }
6956
6957 mutex_lock(&sshare_lock);
6958 HASH_ITER(hh, stratum_shares, sshare, tmpshare) {
6959 if (sshare->work->pool == pool && work->thr_id < my_mining_threads) {
6960 HASH_DEL(stratum_shares, sshare);
6961
6962 work = sshare->work;
6963 sharelog("disconnect", work);
(gdb) info locals
my_mining_threads = 16
sshare = 0x7f098000e2d0
tmpshare = 0x0
work =
cgpu =
diff_cleared =
thr_diff_cleared = 0x7f096bffea80
cleared =
thr_cleared = 0x7f096bffea30
(gdb)