Skip to content

Instantly share code, notes, and snippets.

@TrooperT
Created October 28, 2013 03:30
Show Gist options
  • Select an option

  • Save TrooperT/7191058 to your computer and use it in GitHub Desktop.

Select an option

Save TrooperT/7191058 to your computer and use it in GitHub Desktop.
output from: lldb used nwools xgminer-osx and added -g -O0 and compiled with that and flags were NOT stripped (middle finger to homebrew)
Last login: Sun Oct 27 23:05:41 on ttys003
Ragnarok:bin owner$ lldb bfgminer
Current executable set to 'bfgminer' (x86_64).
(lldb) run
Process 44482 launched: '/Users/owner/xgminer-osx/output/bin/bfgminer' (x86_64)
[2013-10-27 23:16:42] Timers: Using gettimeofday
[2013-10-27 23:16:42] Global quota greatest common denominator set to 1
[2013-10-27 23:16:42] setrlimit: Soft fd limit not being changed from 1024 (FD_SETSIZE=1024; hard limit=unlimited)
[2013-10-27 23:16:42] Started bfgminer 3.4.0
[2013-10-27 23:16:42] Loaded configuration file /Users/owner/.bfgminer/bfgminer.conf
[2013-10-27 23:16:43] ft232r_scan: Found 05ac:8007 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 05ac:8006 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 05ac:8006 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 05ac:8007 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 8087:0024 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 0424:2513 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 05ac:8509 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 05ac:0252 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 05ac:8242 - not a ft232r
[2013-10-27 23:16:43] ft232r_scan: Found 03eb:204b - not a ft232r
[2013-10-27 23:16:43] Acquired exclusive advisory lock on /dev/cu.usbmodem1411
[2013-10-27 23:16:43] bigpic: /dev/cu.usbmodem1411: 1, BF1 150c111a
[2013-10-27 23:16:44] Found BPM 0 at /dev/cu.usbmodem1411
[2013-10-27 23:16:44] BPM 0: Init: baud=115200
[2013-10-27 23:16:45] Not a ZTEX device 05ac:8007
[2013-10-27 23:16:45] Not a ZTEX device 05ac:8006
[2013-10-27 23:16:45] Not a ZTEX device 05ac:8006
[2013-10-27 23:16:45] Not a ZTEX device 05ac:8007
[2013-10-27 23:16:45] Not a ZTEX device 8087:0024
[2013-10-27 23:16:45] Not a ZTEX device 0424:2513
[2013-10-27 23:16:45] Not a ZTEX device 05ac:8509
[2013-10-27 23:16:45] Not a ZTEX device 05ac:0252
[2013-10-27 23:16:45] Not a ZTEX device 05ac:8242
[2013-10-27 23:16:45] Not a ZTEX device 03eb:204b
[2013-10-27 23:16:45] BPM 0 : Set temperature config: target=89 cutoff=95
[2013-10-27 23:16:45] Probing for an alive pool
[2013-10-27 23:16:45] Popping work to stage thread
[2013-10-27 23:16:45] Testing pool http://stratum.btcguild.com:3333
[2013-10-27 23:16:45] HTTP request failed: Recv failure: Connection reset by peer
[2013-10-27 23:16:45] Failed to connect in json_rpc_call
[2013-10-27 23:16:45] HTTP request failed: Empty reply from server
[2013-10-27 23:16:45] Failed to connect in json_rpc_call
[2013-10-27 23:16:45] initiate_stratum with sockbuf=0x0
[2013-10-27 23:16:45] Failed to get sessionid in initiate_stratum
[2013-10-27 23:16:45] initiate_stratum with sockbuf=0x10201f200
[2013-10-27 23:16:45] Failed to get sessionid in initiate_stratum
[2013-10-27 23:16:45] Pool 0 stratum bdifficulty set to 2.000000
[2013-10-27 23:16:45] Received stratum notify from pool 0 with job_id=59830
[2013-10-27 23:16:45] Stratum authorisation success for pool 0
[2013-10-27 23:16:45] Pool 0 http://stratum.btcguild.com:3333 alive
[2013-10-27 23:16:46] Waking up thread 0
[2013-10-27 23:16:46] BPM 0: init
[2013-10-27 23:16:46] 0 gpu miner threads started
[2013-10-27 23:16:46] Creating extra submit work thread
[2013-10-27 23:16:46] Acquired exclusive advisory lock on /dev/cu.usbmodem1411
[2013-10-27 23:16:46] Selecting pool 0 for work
[2013-10-27 23:16:46] BPM 0: Opened /dev/cu.usbmodem1411
[2013-10-27 23:16:46] Popping ping in miner thread
[2013-10-27 23:16:46] Generated stratum header 00000002bf2abd30173af14fc4ab39be93d000ee471285a083c430460000000300000000f7d285cf14d6a86c3f2b7e86ba84f4140711c1be3d50bb36b42e8064c0239da2526dd70f190afc8500000000
[2013-10-27 23:16:46] Work job_id 59830 nonce2 00000000
[2013-10-27 23:16:46] BPM 0: Popping work from get queue to get work
[2013-10-27 23:16:46] Generated target 000000007fff8000000000000000000000000000000000000000000000000000
[2013-10-27 23:16:46] Generated stratum work
[2013-10-27 23:16:46] Pushing work from pool 0 to hash queue
[2013-10-27 23:16:46] Network difficulty changed to 391M ( 2.80Ph/s)
[2013-10-27 23:16:46] New block: ...173af14fbf2abd30 diff 391M ( 2.80Ph/s)
[2013-10-27 23:16:46] BPM 0: Got work from get queue to get work for thread 0
[2013-10-27 23:16:46] Selecting pool 0 for work
[2013-10-27 23:16:46] Generated stratum header 00000002bf2abd30173af14fc4ab39be93d000ee471285a083c4304600000003000000003b5a33100049ebbed7447e841bdbef6d0f727a37e4329555d99c52f56a3e3863526dd70f190afc8500000000
[2013-10-27 23:16:46] Work job_id 59830 nonce2 01000000
[2013-10-27 23:16:46] Generated target 000000007fff8000000000000000000000000000000000000000000000000000
[2013-10-27 23:16:46] Generated stratum work
[2013-10-27 23:16:46] Pushing work from pool 0 to hash queue
[2013-10-27 23:16:46] Selecting pool 0 for work
[2013-10-27 23:16:46] Generated stratum header 00000002bf2abd30173af14fc4ab39be93d000ee471285a083c43046000000030000000038e4d3a157a0a8a3a1198a63144088c811f3eb2bcbfffe1e278d4d416c32965b526dd70f190afc8500000000
[2013-10-27 23:16:46] Work job_id 59830 nonce2 02000000
[2013-10-27 23:16:46] Generated target 000000007fff8000000000000000000000000000000000000000000000000000
[2013-10-27 23:16:46] Generated stratum work
[2013-10-27 23:16:46] Pushing work from pool 0 to hash queue
[2013-10-27 23:16:46] BPM 0: Work Task sent
[2013-10-27 23:16:46] BPM 0: Work Task accepted
[2013-10-27 23:16:46] BPM 0: Nonces sent back: 16
[2013-10-27 23:16:46] BPM 0: Popping work from get queue to get work
[2013-10-27 23:16:46] BPM 0: Got work from get queue to get work for thread 0
[2013-10-27 23:16:46] Selecting pool 0 for work
[2013-10-27 23:16:46] Generated stratum header 00000002bf2abd30173af14fc4ab39be93d000ee471285a083c4304600000003000000008ce43dfc9cf6b923c629ea289252869296b91c1c7c4465ad3d6c8bffdfa506be526dd710190afc8500000000
[2013-10-27 23:16:46] Work job_id 59830 nonce2 03000000
[2013-10-27 23:16:46] Generated target 000000007fff8000000000000000000000000000000000000000000000000000
[2013-10-27 23:16:46] Generated stratum work
[2013-10-27 23:16:46] Pushing work from pool 0 to hash queue
[2013-10-27 23:16:46] BPM 0: Work Task sent
[2013-10-27 23:16:48] BPM 0: Work Task accepted
[2013-10-27 23:16:48] BPM 0: Nonces sent back: 1
[2013-10-27 23:16:48] BPM 0: Len: 7 Cmd: S State: D Switched: 1 Nonce: df83fe5d
[2013-10-27 23:16:48] BPM 0: invalid nonce (5dfe83df) - HW error
[2013-10-27 23:16:48] [thread 0: 3170893824 hashes, 1553912.9 khash/sec]
[2013-10-27 23:16:48] BPM 0: Popping work from get queue to get work
[2013-10-27 23:16:48] Selecting pool 0 for work
[2013-10-27 23:16:48] BPM 0: Got work from get queue to get work for thread 0
[2013-10-27 23:16:48] Generated stratum header 00000002bf2abd30173af14fc4ab39be93d000ee471285a083c43046000000030000000010c71854c636a4dc52accd66806b21afd6ca4ee7ae183ef5508b439167622606526dd711190afc8500000000
[2013-10-27 23:16:48] Work job_id 59830 nonce2 04000000
[2013-10-27 23:16:48] Generated target 000000007fff8000000000000000000000000000000000000000000000000000
[2013-10-27 23:16:48] Generated stratum work
[2013-10-27 23:16:48] Pushing work from pool 0 to hash queue
[2013-10-27 23:16:48] BPM 0: Work Task sent
[2013-10-27 23:16:49] BPM 0: Work Task accepted
[2013-10-27 23:16:49] BPM 0: Nonces sent back: 2
[2013-10-27 23:16:49] BPM 0: Len: 14 Cmd: S State: D Switched: 1 Nonce: 51171ce3
[2013-10-27 23:16:49] Proof: 00000000fbc7cba0eacaaf906485f5bc2bbb827509811b99ff7161c3860ea763
Target: 000000007fff8000000000000000000000000000000000000000000000000000
TrgVal? no (false positive; hash > target)
[2013-10-27 23:16:49] New best share: 1
[2013-10-27 23:16:49] BPM 0: Len: 14 Cmd: S State: D Switched: 1 Nonce: df82808e
[2013-10-27 23:16:49] BPM 0: invalid nonce (8e8082df) - HW error
[2013-10-27 23:16:49] [thread 0: 3170893824 hashes, 2464002.7 khash/sec]
Process 44482 stopped
* thread #4: tid = 0x2650d, 0x0000000000000000, name = 'miner_BPM0, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x0000000000000000
error: memory read failed for 0x0
(lldb) bt
* thread #4: tid = 0x2650d, 0x0000000000000000, name = 'miner_BPM0, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x0000000000000000
frame #1: 0x000000010003a84d bfgminer`miner_thread + 557
frame #2: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #3: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #4: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
(lldb) thr backtrace all
thread #1: tid = 0x264c5, 0x00007fff96eed716 libsystem_kernel.dylib`__psynch_cvwait + 10, queue = 'com.apple.main-thread
frame #0: 0x00007fff96eed716 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff8c645c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
frame #2: 0x000000010001ca3e bfgminer`main + 16110
frame #3: 0x00007fff900e85fd libdyld.dylib`start + 1
thread #2: tid = 0x264df, 0x00007fff96ee9a1a libsystem_kernel.dylib`mach_msg_trap + 10, name = 'org.libusb.device-detach
frame #0: 0x00007fff96ee9a1a libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fff96ee8d18 libsystem_kernel.dylib`mach_msg + 64
frame #2: 0x00007fff8c7d6315 CoreFoundation`__CFRunLoopServiceMachPort + 181
frame #3: 0x00007fff8c7d5939 CoreFoundation`__CFRunLoopRun + 1161
frame #4: 0x00007fff8c7d5275 CoreFoundation`CFRunLoopRunSpecific + 309
frame #5: 0x00007fff8c88a9d1 CoreFoundation`CFRunLoopRun + 97
frame #6: 0x00000001001681d1 libusb-1.0.0.dylib`event_thread_main + 305
frame #7: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #8: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #9: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
thread #3: tid = 0x264e0, 0x00007fff96eee662 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager
frame #0: 0x00007fff96eee662 libsystem_kernel.dylib`kevent64 + 10
frame #1: 0x00007fff9245443d libdispatch.dylib`_dispatch_mgr_invoke + 239
frame #2: 0x00007fff92454152 libdispatch.dylib`_dispatch_mgr_thread + 52
thread #5: tid = 0x26505, 0x00007fff96eed716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'stage
frame #0: 0x00007fff96eed716 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff8c645c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
frame #2: 0x000000010003f3cb bfgminer`tq_pop + 155
frame #3: 0x000000010001de27 bfgminer`stage_thread + 183
frame #4: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #5: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #6: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
thread #6: tid = 0x26508, 0x00007fff96eed9aa libsystem_kernel.dylib`select$DARWIN_EXTSN + 10, name = 'stratum0
frame #0: 0x00007fff96eed9aa libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #1: 0x000000010002c14a bfgminer`stratum_thread + 554
frame #2: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #3: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #4: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
* thread #4: tid = 0x2650d, 0x0000000000000000, name = 'miner_BPM0, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x0000000000000000
frame #1: 0x000000010003a84d bfgminer`miner_thread + 557
frame #2: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #3: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #4: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
thread #7: tid = 0x2650e, 0x00007fff96eed9aa libsystem_kernel.dylib`select$DARWIN_EXTSN + 10, name = 'submit_work
frame #0: 0x00007fff96eed9aa libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #1: 0x000000010001e7bc bfgminer`submit_work_thread + 1804
frame #2: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #3: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #4: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
thread #8: tid = 0x2650f, 0x00007fff96eeda3a libsystem_kernel.dylib`__semwait_signal + 10, name = 'watchpool
frame #0: 0x00007fff96eeda3a libsystem_kernel.dylib`__semwait_signal + 10
frame #1: 0x00007fff8c353e60 libsystem_c.dylib`nanosleep + 200
frame #2: 0x000000010003f992 bfgminer`_cgsleep_us_r_nanosleep + 402
frame #3: 0x000000010003fdd2 bfgminer`cgsleep_ms_r + 50
frame #4: 0x000000010003fe08 bfgminer`cgsleep_ms + 40
frame #5: 0x000000010002114e bfgminer`watchpool_thread + 910
frame #6: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #8: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
thread #9: tid = 0x26510, 0x00007fff96eeda3a libsystem_kernel.dylib`__semwait_signal + 10, name = 'watchdog
frame #0: 0x00007fff96eeda3a libsystem_kernel.dylib`__semwait_signal + 10
frame #1: 0x00007fff8c353e60 libsystem_c.dylib`nanosleep + 200
frame #2: 0x00007fff8c353cbf libsystem_c.dylib`sleep + 42
frame #3: 0x00000001000211c8 bfgminer`watchdog_thread + 104
frame #4: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #5: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #6: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
thread #10: tid = 0x26511, 0x00007fff96eed716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'reinit_gpu
frame #0: 0x00007fff96eed716 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff8c645c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
frame #2: 0x000000010003f3cb bfgminer`tq_pop + 155
frame #3: 0x000000010006059b bfgminer`reinit_gpu + 91
frame #4: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #5: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #6: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
thread #11: tid = 0x26512, 0x00007fff96eeda3a libsystem_kernel.dylib`__semwait_signal + 10, name = 'rpc
frame #0: 0x00007fff96eeda3a libsystem_kernel.dylib`__semwait_signal + 10
frame #1: 0x00007fff8c353e60 libsystem_c.dylib`nanosleep + 200
frame #2: 0x000000010003f992 bfgminer`_cgsleep_us_r_nanosleep + 402
frame #3: 0x000000010003fdd2 bfgminer`cgsleep_ms_r + 50
frame #4: 0x000000010003fe08 bfgminer`cgsleep_ms + 40
frame #5: 0x000000010004f155 bfgminer`api + 501
frame #6: 0x0000000100021812 bfgminer`api_thread + 82
frame #7: 0x00007fff8c643899 libsystem_pthread.dylib`_pthread_body + 138
frame #8: 0x00007fff8c64372a libsystem_pthread.dylib`_pthread_start + 137
frame #9: 0x00007fff8c647fc9 libsystem_pthread.dylib`thread_start + 13
(lldb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment