Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove the redundant uat_wg sync variable, comment on why es_wg is used #156

Closed
wants to merge 1 commit into from

Conversation

jpoirier
Copy link
Collaborator

No description provided.

@cyoung
Copy link
Owner

cyoung commented Dec 26, 2015

I'm able to crash gen_gdl90 just by flipping UAT on and off from the web interface with the latest dongle_handling_mod from your fork:

2015/12/26 22:49:46 Entered UAT read() ...
2015/12/26 22:49:46 wrote settings.
2015/12/26 22:49:47 count == 0, doing cleanup if necessary...
2015/12/26 22:49:47 Entered UAT shutdown() ...
2015/12/26 22:49:47 UAT shutdown(): closing device ...
2015/12/26 22:49:47 UAT device is closed...
2015/12/26 22:49:48 wrote settings.
2015/12/26 22:49:48 ===== UAT Device name: Generic RTL2832U OEM =====
Found Rafael Micro R820T tuner
2015/12/26 22:49:48     GetTunerType: RTLSDR_TUNER_R820T
2015/12/26 22:49:48     SetTunerGainMode Successful
2015/12/26 22:49:48     SetTunerGain Successful
Exact sample rate is: 2083334.141630 Hz
[R82XX] PLL not locked!
2015/12/26 22:49:48     SetSampleRate - rate: 2083334
2015/12/26 22:49:48     GetSampleRate: 2083334
2015/12/26 22:49:48     GetXtalFreq - Rtl: 28800000, Tuner: 28800000
2015/12/26 22:49:48     SetXtalFreq - Center freq: 28800000, Tuner freq: 28800000
2015/12/26 22:49:48     SetCenterFreq 978MHz Successful
2015/12/26 22:49:48     GetCenterFreq: 978000000
2015/12/26 22:49:48     Setting Bandwidth: 1000000
2015/12/26 22:49:48     SetTunerBw 1000000 Successful
2015/12/26 22:49:48     ResetBuffer Successful
2015/12/26 22:49:48     GetFreqCorrection: 0
2015/12/26 22:49:48     SetFreqCorrection 0 Successful
2015/12/26 22:49:48 Entered UAT read() ...
2015/12/26 22:49:49 wrote settings.
gen_gdl90: pthread_mutex_lock.c:80: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed.
SIGABRT: abort
PC=0x76cf2f50 m=7
signal arrived during cgo execution

goroutine 82 [syscall, locked to thread]:
runtime.cgocall(0xc370, 0x10bbd710, 0x0)
    /root/go/src/runtime/cgocall.go:120 +0x11c fp=0x10bbd6e8 sp=0x10bbd6d0
github.com/jpoirier/gortlsdr._Cfunc_rtlsdr_read_sync(0x72300780, 0x10db8000, 0x40000, 0x10eaaf50, 0x0)
    github.com/jpoirier/gortlsdr/_obj/_cgo_gotypes.go:349 +0x34 fp=0x10bbd70c sp=0x10bbd6e8
github.com/jpoirier/gortlsdr.(*Context).ReadSync(0x72300780, 0x10db8000, 0x40000, 0x40000, 0x40000, 0x0, 0x0, 0x0)
    /root/go_path/src/github.com/jpoirier/gortlsdr/rtlsdr.go:545 +0x78 fp=0x10bbd74c sp=0x10bbd70c
main.(*UAT).read(0x10762188)
    /tmp/stratux/main/sdr.go:94 +0x218 fp=0x10bbd7d4 sp=0x10bbd74c
runtime.goexit()
    /root/go/src/runtime/asm_arm.s:1036 +0x4 fp=0x10bbd7d4 sp=0x10bbd7d4
created by main.sdrWatcher
    /tmp/stratux/main/sdr.go:349 +0xae4

goroutine 1 [syscall]:
syscall.Syscall(0x3, 0x0, 0x10bc2000, 0x1000, 0xbf6a, 0x2, 0x0)
    /root/go/src/syscall/asm_linux_arm.s:17 +0x8
syscall.read(0x0, 0x10bc2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /root/go/src/syscall/zsyscall_linux_arm.go:783 +0x78
syscall.Read(0x0, 0x10bc2000, 0x1000, 0x1000, 0xd, 0x0, 0x0)
    /root/go/src/syscall/syscall_unix.go:160 +0x4c
os.(*File).read(0x107620e8, 0x10bc2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /root/go/src/os/file_unix.go:211 +0x54
os.(*File).Read(0x107620e8, 0x10bc2000, 0x1000, 0x1000, 0x2, 0x0, 0x0)
    /root/go/src/os/file.go:95 +0x7c
bufio.(*Reader).fill(0x10753f44)
    /root/go/src/bufio/bufio.go:97 +0x1c4
bufio.(*Reader).ReadSlice(0x10753f44, 0x3a40a, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:328 +0x264
bufio.(*Reader).ReadBytes(0x10753f44, 0x2fb30a, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:406 +0x7c
bufio.(*Reader).ReadString(0x10753f44, 0x10753f0a, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:446 +0x44
main.main()
    /tmp/stratux/main/gen_gdl90.go:1270 +0xb6c

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /root/go/src/runtime/asm_arm.s:1036 +0x4

goroutine 19 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x523e40)
    /root/go_path/src/github.com/golang/glog/glog.go:882 +0x60
created by github.com/golang/glog.init.1
    /root/go_path/src/github.com/golang/glog/glog.go:410 +0x2cc

goroutine 20 [runnable]:
syscall.Syscall(0x4, 0x3, 0x10ec4000, 0x3e, 0x3e, 0x0, 0x0)
    /root/go/src/syscall/asm_linux_arm.s:17 +0x8
syscall.write(0x3, 0x10ec4000, 0x3e, 0xc0, 0xc0, 0x0, 0x0)
    /root/go/src/syscall/zsyscall_linux_arm.go:1064 +0x78
syscall.Write(0x3, 0x10ec4000, 0x3e, 0xc0, 0x1077607c, 0x0, 0x0)
    /root/go/src/syscall/syscall_unix.go:176 +0x4c
os.(*File).write(0x10762498, 0x10ec4000, 0x3e, 0xc0, 0x0, 0x0, 0x0)
    /root/go/src/os/file_unix.go:232 +0x78
os.(*File).Write(0x10762498, 0x10ec4000, 0x3e, 0xc0, 0xc0, 0x0, 0x0)
    /root/go/src/os/file.go:139 +0x7c
io.(*multiWriter).Write(0x10772d00, 0x10ec4000, 0x3e, 0xc0, 0x37acf3cd, 0x0, 0x0)
    /root/go/src/io/multi.go:43 +0xc4
log.(*Logger).Output(0x10776060, 0x2, 0x10d28c30, 0x2a, 0x0, 0x0)
    /root/go/src/log/log.go:166 +0x330
log.Println(0x10735f5c, 0x1, 0x1)
    /root/go/src/log/log.go:295 +0x5c
main.sdrWatcher()
    /tmp/stratux/main/sdr.go:288 +0x150
created by main.sdrInit
    /tmp/stratux/main/sdr.go:410 +0x24

goroutine 21 [chan receive]:
main.uatReader()
    /tmp/stratux/main/sdr.go:226 +0xe0
created by main.sdrInit
    /tmp/stratux/main/sdr.go:411 +0x38

goroutine 22 [chan receive]:
_/tmp/stratux/godump978.ProcessDataFromChannel()
    /tmp/stratux/godump978/godump978.go:59 +0x40
created by main.sdrInit
    /tmp/stratux/main/sdr.go:413 +0x50

goroutine 34 [sleep]:
time.Sleep(0x3b9aca00, 0x0)
    /root/go/src/runtime/time.go:59 +0x104
main.esListen()
    /tmp/stratux/main/traffic.go:397 +0x48
created by main.initTraffic
    /tmp/stratux/main/traffic.go:556 +0xe8

goroutine 23 [chan receive]:
main.pollRY835AI()
    /tmp/stratux/main/ry835ai.go:607 +0x58
created by main.initRY835AI
    /tmp/stratux/main/ry835ai.go:630 +0x8c

goroutine 24 [select]:
main.heartBeatSender()
    /tmp/stratux/main/gen_gdl90.go:553 +0x1a4
created by main.main
    /tmp/stratux/main/gen_gdl90.go:1238 +0x7ec

goroutine 25 [IO wait]:
net.runtime_pollWait(0x74828058, 0x72, 0x10772000)
    /root/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0x10b9c0f8, 0x72, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).WaitRead(0x10b9c0f8, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).accept(0x10b9c0c0, 0x0, 0x748280f0, 0x10c58220)
    /root/go/src/net/fd_unix.go:408 +0x21c
net.(*TCPListener).AcceptTCP(0x10baa028, 0x1071fe88, 0x0, 0x0)
    /root/go/src/net/tcpsock_posix.go:254 +0x4c
net/http.tcpKeepAliveListener.Accept(0x10baa028, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/http/server.go:2135 +0x3c
net/http.(*Server).Serve(0x10b9c080, 0x748280d0, 0x10baa028, 0x0, 0x0)
    /root/go/src/net/http/server.go:1887 +0x88
net/http.(*Server).ListenAndServe(0x10b9c080, 0x0, 0x0)
    /root/go/src/net/http/server.go:1877 +0x124
net/http.ListenAndServe(0x38bbdc, 0x3, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/http/server.go:1967 +0x90
main.managementInterface()
    /tmp/stratux/main/managementinterface.go:283 +0x3e0
created by main.main
    /tmp/stratux/main/gen_gdl90.go:1240 +0x800

goroutine 50 [chan receive]:
main.(*uibroadcaster).writer(0x10ba4000)
    /tmp/stratux/main/uibroadcast.go:37 +0x48
created by main.NewUIBroadcaster
    /tmp/stratux/main/uibroadcast.go:21 +0x13c

goroutine 51 [chan receive]:
main.(*uibroadcaster).writer(0x10ba4020)
    /tmp/stratux/main/uibroadcast.go:37 +0x48
created by main.NewUIBroadcaster
    /tmp/stratux/main/uibroadcast.go:21 +0x13c

goroutine 26 [chan receive]:
main.monitorDHCPLeases()
    /tmp/stratux/main/network.go:244 +0x60
created by main.initNetwork
    /tmp/stratux/main/network.go:348 +0x124

goroutine 27 [select]:
main.messageQueueSender()
    /tmp/stratux/main/network.go:193 +0x518
created by main.initNetwork
    /tmp/stratux/main/network.go:349 +0x138

goroutine 28 [IO wait]:
net.runtime_pollWait(0x74827d10, 0x72, 0x10772000)
    /root/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0x10b9c738, 0x72, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).WaitRead(0x10b9c738, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).readFrom(0x10b9c700, 0x10bd8000, 0x5dc, 0x5dc, 0x0, 0x0, 0x0, 0x748c0018, 0x10772000)
    /root/go/src/net/fd_unix.go:259 +0x20c
net.(*IPConn).ReadFromIP(0x10baa090, 0x10bd8000, 0x5dc, 0x5dc, 0x3a323, 0x1, 0x0, 0x0)
    /root/go/src/net/iprawsock_posix.go:75 +0xec
net.(*IPConn).ReadFrom(0x10baa090, 0x10bd8000, 0x5dc, 0x5dc, 0x2fb3c0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/iprawsock_posix.go:109 +0xe4
golang.org/x/net/icmp.(*PacketConn).ReadFrom(0x10ba60e0, 0x10bd8000, 0x5dc, 0x5dc, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go_path/src/golang.org/x/net/icmp/endpoint.go:59 +0xfc
main.sleepMonitor()
    /tmp/stratux/main/network.go:294 +0x1c0
created by main.initNetwork
    /tmp/stratux/main/network.go:350 +0x14c

goroutine 29 [chan receive]:
main.printStats()
    /tmp/stratux/main/gen_gdl90.go:1066 +0x8c
created by main.main
    /tmp/stratux/main/gen_gdl90.go:1246 +0x818

goroutine 30 [chan receive]:
main.cpuTempMonitor()
    /tmp/stratux/main/gen_gdl90.go:645 +0x4c
created by main.main
    /tmp/stratux/main/gen_gdl90.go:1249 +0x82c

goroutine 52 [chan receive]:
main.icmpEchoSender(0x10ba60e0)
    /tmp/stratux/main/network.go:253 +0x70
created by main.sleepMonitor
    /tmp/stratux/main/network.go:290 +0x134

goroutine 6 [IO wait]:
net.runtime_pollWait(0x74827c98, 0x72, 0x10772000)
    /root/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0x10b9c7f8, 0x72, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).WaitRead(0x10b9c7f8, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).Read(0x10b9c7c0, 0x10bfa000, 0x1000, 0x1000, 0x0, 0x748c0018, 0x10772000)
    /root/go/src/net/fd_unix.go:232 +0x1c4
net.(*conn).Read(0x10baa0a0, 0x10bfa000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /root/go/src/net/net.go:172 +0xc8
net/http.(*liveSwitchReader).Read(0x10bae0e4, 0x10bfa000, 0x1000, 0x1000, 0xef4, 0x0, 0x0)
    /root/go/src/net/http/server.go:219 +0x9c
io.(*LimitedReader).Read(0x10ba6180, 0x10bfa000, 0x1000, 0x1000, 0x19c7a8, 0x0, 0x0)
    /root/go/src/io/io.go:427 +0x104
bufio.(*Reader).fill(0x10bb6fc0)
    /root/go/src/bufio/bufio.go:97 +0x1c4
bufio.(*Reader).Peek(0x10bb6fc0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:132 +0xcc
net/http.(*conn).readRequest(0x10bae0c0, 0x0, 0x0, 0x0)
    /root/go/src/net/http/server.go:629 +0x34c
net/http.(*conn).serve(0x10bae0c0)
    /root/go/src/net/http/server.go:1319 +0x724
created by net/http.(*Server).Serve
    /root/go/src/net/http/server.go:1910 +0x360

goroutine 55 [IO wait]:
net.runtime_pollWait(0x74827c20, 0x72, 0x10772000)
    /root/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0x10b9a0b8, 0x72, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).WaitRead(0x10b9a0b8, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).Read(0x10b9a080, 0x10bcc000, 0x1000, 0x1000, 0x0, 0x748c0018, 0x10772000)
    /root/go/src/net/fd_unix.go:232 +0x1c4
net.(*conn).Read(0x107b4008, 0x10bcc000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /root/go/src/net/net.go:172 +0xc8
net/http.(*liveSwitchReader).Read(0x10c44024, 0x10bcc000, 0x1000, 0x1000, 0x10c64280, 0x0, 0x0)
    /root/go/src/net/http/server.go:219 +0x9c
io.(*LimitedReader).Read(0x10710200, 0x10bcc000, 0x1000, 0x1000, 0x5bedc, 0x0, 0x0)
    /root/go/src/io/io.go:427 +0x104
bufio.(*Reader).fill(0x107760c0)
    /root/go/src/bufio/bufio.go:97 +0x1c4
bufio.(*Reader).ReadSlice(0x107760c0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:328 +0x264
bufio.(*Reader).ReadLine(0x107760c0, 0x0, 0x0, 0x0, 0x37d800, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:357 +0x60
net/textproto.(*Reader).readLineSlice(0x10c423e0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:55 +0x58
net/textproto.(*Reader).ReadLine(0x10c423e0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:36 +0x34
net/http.ReadRequest(0x107760c0, 0x10c6a770, 0x0, 0x0)
    /root/go/src/net/http/request.go:653 +0x80
net/http.(*conn).readRequest(0x10c44000, 0x0, 0x0, 0x0)
    /root/go/src/net/http/server.go:633 +0x3a8
net/http.(*conn).serve(0x10c44000)
    /root/go/src/net/http/server.go:1319 +0x724
created by net/http.(*Server).Serve
    /root/go/src/net/http/server.go:1910 +0x360

goroutine 56 [IO wait]:
net.runtime_pollWait(0x74827ba8, 0x72, 0x10772000)
    /root/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0x10b9a0f8, 0x72, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).WaitRead(0x10b9a0f8, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).Read(0x10b9a0c0, 0x10bfb000, 0x1000, 0x1000, 0x0, 0x748c0018, 0x10772000)
    /root/go/src/net/fd_unix.go:232 +0x1c4
net.(*conn).Read(0x107b4018, 0x10bfb000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /root/go/src/net/net.go:172 +0xc8
net/http.(*liveSwitchReader).Read(0x10c44084, 0x10bfb000, 0x1000, 0x1000, 0x10c66300, 0x0, 0x0)
    /root/go/src/net/http/server.go:219 +0x9c
io.(*LimitedReader).Read(0x10710270, 0x10bfb000, 0x1000, 0x1000, 0x5bedc, 0x0, 0x0)
    /root/go/src/io/io.go:427 +0x104
bufio.(*Reader).fill(0x107760f0)
    /root/go/src/bufio/bufio.go:97 +0x1c4
bufio.(*Reader).ReadSlice(0x107760f0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:328 +0x264
bufio.(*Reader).ReadLine(0x107760f0, 0x0, 0x0, 0x0, 0x37d800, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:357 +0x60
net/textproto.(*Reader).readLineSlice(0x10c46020, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:55 +0x58
net/textproto.(*Reader).ReadLine(0x10c46020, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:36 +0x34
net/http.ReadRequest(0x107760f0, 0x10764f50, 0x0, 0x0)
    /root/go/src/net/http/request.go:653 +0x80
net/http.(*conn).readRequest(0x10c44060, 0x0, 0x0, 0x0)
    /root/go/src/net/http/server.go:633 +0x3a8
net/http.(*conn).serve(0x10c44060)
    /root/go/src/net/http/server.go:1319 +0x724
created by net/http.(*Server).Serve
    /root/go/src/net/http/server.go:1910 +0x360

goroutine 57 [IO wait]:
net.runtime_pollWait(0x74827b30, 0x72, 0x10772000)
    /root/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0x10b9a138, 0x72, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).WaitRead(0x10b9a138, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).Read(0x10b9a100, 0x10c48000, 0x1000, 0x1000, 0x0, 0x748c0018, 0x10772000)
    /root/go/src/net/fd_unix.go:232 +0x1c4
net.(*conn).Read(0x107b4028, 0x10c48000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /root/go/src/net/net.go:172 +0xc8
net/http.(*liveSwitchReader).Read(0x10c440e4, 0x10c48000, 0x1000, 0x1000, 0x10c0c300, 0x0, 0x0)
    /root/go/src/net/http/server.go:219 +0x9c
io.(*LimitedReader).Read(0x107102e0, 0x10c48000, 0x1000, 0x1000, 0x5bedc, 0x0, 0x0)
    /root/go/src/io/io.go:427 +0x104
bufio.(*Reader).fill(0x10776120)
    /root/go/src/bufio/bufio.go:97 +0x1c4
bufio.(*Reader).ReadSlice(0x10776120, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:328 +0x264
bufio.(*Reader).ReadLine(0x10776120, 0x0, 0x0, 0x0, 0x37d800, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:357 +0x60
net/textproto.(*Reader).readLineSlice(0x10c42700, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:55 +0x58
net/textproto.(*Reader).ReadLine(0x10c42700, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:36 +0x34
net/http.ReadRequest(0x10776120, 0x10c6a7e0, 0x0, 0x0)
    /root/go/src/net/http/request.go:653 +0x80
net/http.(*conn).readRequest(0x10c440c0, 0x0, 0x0, 0x0)
    /root/go/src/net/http/server.go:633 +0x3a8
net/http.(*conn).serve(0x10c440c0)
    /root/go/src/net/http/server.go:1319 +0x724
created by net/http.(*Server).Serve
    /root/go/src/net/http/server.go:1910 +0x360

goroutine 58 [IO wait]:
net.runtime_pollWait(0x74827ab8, 0x72, 0x10772000)
    /root/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0x10b9a178, 0x72, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).WaitRead(0x10b9a178, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).Read(0x10b9a140, 0x10c4a000, 0x1000, 0x1000, 0x0, 0x748c0018, 0x10772000)
    /root/go/src/net/fd_unix.go:232 +0x1c4
net.(*conn).Read(0x107b4038, 0x10c4a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /root/go/src/net/net.go:172 +0xc8
net/http.(*liveSwitchReader).Read(0x10c44144, 0x10c4a000, 0x1000, 0x1000, 0x1078e580, 0x0, 0x0)
    /root/go/src/net/http/server.go:219 +0x9c
io.(*LimitedReader).Read(0x10710350, 0x10c4a000, 0x1000, 0x1000, 0x5bedc, 0x0, 0x0)
    /root/go/src/io/io.go:427 +0x104
bufio.(*Reader).fill(0x10776150)
    /root/go/src/bufio/bufio.go:97 +0x1c4
bufio.(*Reader).ReadSlice(0x10776150, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:328 +0x264
bufio.(*Reader).ReadLine(0x10776150, 0x0, 0x0, 0x0, 0x37d800, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:357 +0x60
net/textproto.(*Reader).readLineSlice(0x10c46060, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:55 +0x58
net/textproto.(*Reader).ReadLine(0x10c46060, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:36 +0x34
net/http.ReadRequest(0x10776150, 0x10bd28c0, 0x0, 0x0)
    /root/go/src/net/http/request.go:653 +0x80
net/http.(*conn).readRequest(0x10c44120, 0x0, 0x0, 0x0)
    /root/go/src/net/http/server.go:633 +0x3a8
net/http.(*conn).serve(0x10c44120)
    /root/go/src/net/http/server.go:1319 +0x724
created by net/http.(*Server).Serve
    /root/go/src/net/http/server.go:1910 +0x360

goroutine 59 [IO wait]:
net.runtime_pollWait(0x74827a40, 0x72, 0x10772000)
    /root/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0x10b9a1b8, 0x72, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:73 +0x34
net.(*pollDesc).WaitRead(0x10b9a1b8, 0x0, 0x0)
    /root/go/src/net/fd_poll_runtime.go:78 +0x30
net.(*netFD).Read(0x10b9a180, 0x10c4c000, 0x1000, 0x1000, 0x0, 0x748c0018, 0x10772000)
    /root/go/src/net/fd_unix.go:232 +0x1c4
net.(*conn).Read(0x107b4048, 0x10c4c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /root/go/src/net/net.go:172 +0xc8
net/http.(*liveSwitchReader).Read(0x10c441a4, 0x10c4c000, 0x1000, 0x1000, 0x1078e600, 0x0, 0x0)
    /root/go/src/net/http/server.go:219 +0x9c
io.(*LimitedReader).Read(0x107103c0, 0x10c4c000, 0x1000, 0x1000, 0x5bedc, 0x0, 0x0)
    /root/go/src/io/io.go:427 +0x104
bufio.(*Reader).fill(0x10776180)
    /root/go/src/bufio/bufio.go:97 +0x1c4
bufio.(*Reader).ReadSlice(0x10776180, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:328 +0x264
bufio.(*Reader).ReadLine(0x10776180, 0x0, 0x0, 0x0, 0x37d800, 0x0, 0x0)
    /root/go/src/bufio/bufio.go:357 +0x60
net/textproto.(*Reader).readLineSlice(0x10bd1ac0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:55 +0x58
net/textproto.(*Reader).ReadLine(0x10bd1ac0, 0x0, 0x0, 0x0, 0x0)
    /root/go/src/net/textproto/reader.go:36 +0x34
net/http.ReadRequest(0x10776180, 0x10bd2a10, 0x0, 0x0)
    /root/go/src/net/http/request.go:653 +0x80
net/http.(*conn).readRequest(0x10c44180, 0x0, 0x0, 0x0)
    /root/go/src/net/http/server.go:633 +0x3a8
net/http.(*conn).serve(0x10c44180)
    /root/go/src/net/http/server.go:1319 +0x724
created by net/http.(*Server).Serve
    /root/go/src/net/http/server.go:1910 +0x360

goroutine 7 [runnable]:
syscall.Syscall(0x3, 0x19, 0x10c8656f, 0xa91, 0x8, 0x0, 0x0)
    /root/go/src/syscall/asm_linux_arm.s:17 +0x8
syscall.read(0x19, 0x10c8656f, 0xa91, 0xa91, 0x8, 0x0, 0x0)
    /root/go/src/syscall/zsyscall_linux_arm.go:783 +0x78
syscall.Read(0x19, 0x10c8656f, 0xa91, 0xa91, 0x8, 0x0, 0x0)
    /root/go/src/syscall/syscall_unix.go:160 +0x4c
os.(*File).read(0x10babd80, 0x10c8656f, 0xa91, 0xa91, 0x8, 0x0, 0x0)
    /root/go/src/os/file_unix.go:211 +0x54
os.(*File).Read(0x10babd80, 0x10c8656f, 0xa91, 0xa91, 0x8, 0x0, 0x0)
    /root/go/src/os/file.go:95 +0x7c
github.com/tarm/serial.(*Port).Read(0x10babd88, 0x10c8656f, 0xa91, 0xa91, 0x0, 0x0, 0x0)
    /root/go_path/src/github.com/tarm/serial/serial_posix.go:129 +0x50
bufio.(*Scanner).Scan(0x10bdcf98, 0x26)
    /root/go/src/bufio/scan.go:180 +0x378
main.gpsSerialReader()
    /tmp/stratux/main/ry835ai.go:421 +0x16c
created by main.pollRY835AI
    /tmp/stratux/main/ry835ai.go:612 +0xac

goroutine 9 [runnable]:
syscall.Syscall(0x36, 0x1a, 0x707, 0x10722e80, 0x2, 0x0, 0x0)
    /root/go/src/syscall/asm_linux_arm.s:17 +0x8
github.com/kidoman/embd/host/generic.(*i2cBus).ReadFromReg(0x10c6cba0, 0x3fad4568, 0x10722ed0, 0x2, 0x2, 0x0, 0x0)
    /root/go_path/src/github.com/kidoman/embd/host/generic/i2cbus.go:183 +0x1dc
github.com/kidoman/embd/host/generic.(*i2cBus).ReadWordFromReg(0x10c6cba0, 0x4568, 0x1072fe3e, 0x0, 0x0)
    /root/go_path/src/github.com/kidoman/embd/host/generic/i2cbus.go:200 +0x80
_/tmp/stratux/mpu6050.(*MPU6050).readGyro(0x1078e800, 0x0, 0x0, 0x0, 0x0, 0x0)
    /tmp/stratux/mpu6050/mpu6050.go:120 +0x128
_/tmp/stratux/mpu6050.(*MPU6050).measureGyro(0x1078e800, 0x0, 0x0)
    /tmp/stratux/mpu6050/mpu6050.go:203 +0x28
_/tmp/stratux/mpu6050.(*MPU6050).Run.func1(0x1078e800)
    /tmp/stratux/mpu6050/mpu6050.go:253 +0x11c
created by _/tmp/stratux/mpu6050.(*MPU6050).Run
    /tmp/stratux/mpu6050/mpu6050.go:263 +0x2c

goroutine 10 [chan receive]:
main.attitudeReaderSender()
    /tmp/stratux/main/ry835ai.go:540 +0x6c
created by main.initAHRS
    /tmp/stratux/main/ry835ai.go:598 +0x1cc

goroutine 11 [chan receive]:
main.tempAndPressureReader()
    /tmp/stratux/main/ry835ai.go:474 +0x78
created by main.initAHRS
    /tmp/stratux/main/ry835ai.go:599 +0x1e0

goroutine 12 [syscall, locked to thread]:
github.com/jpoirier/gortlsdr._Cfunc_rtlsdr_read_sync(0x76a7ddc8, 0x10e02000, 0x40000, 0x10d27e40, 0x0)
    github.com/jpoirier/gortlsdr/_obj/_cgo_gotypes.go:349 +0x34
github.com/jpoirier/gortlsdr.(*Context).ReadSync(0x76a7ddc8, 0x10e02000, 0x40000, 0x40000, 0x40000, 0x0, 0x0, 0x0)
    /root/go_path/src/github.com/jpoirier/gortlsdr/rtlsdr.go:545 +0x78
main.(*UAT).read(0x10dfe020)
    /tmp/stratux/main/sdr.go:94 +0x218
created by main.sdrWatcher
    /tmp/stratux/main/sdr.go:349 +0xae4

goroutine 13 [syscall, locked to thread]:
github.com/jpoirier/gortlsdr._Cfunc_rtlsdr_read_sync(0x76a7e2b8, 0x10f6a000, 0x40000, 0x10ec7710, 0x0)
    github.com/jpoirier/gortlsdr/_obj/_cgo_gotypes.go:349 +0x34
github.com/jpoirier/gortlsdr.(*Context).ReadSync(0x76a7e2b8, 0x10f6a000, 0x40000, 0x40000, 0x40000, 0x0, 0x0, 0x0)
    /root/go_path/src/github.com/jpoirier/gortlsdr/rtlsdr.go:545 +0x78
main.(*UAT).read(0x10dfe2d8)
    /tmp/stratux/main/sdr.go:94 +0x218
created by main.sdrWatcher
    /tmp/stratux/main/sdr.go:349 +0xae4

goroutine 63 [syscall, locked to thread]:
github.com/jpoirier/gortlsdr._Cfunc_rtlsdr_read_sync(0x72200760, 0x10ec8000, 0x40000, 0x10e50890, 0x0)
    github.com/jpoirier/gortlsdr/_obj/_cgo_gotypes.go:349 +0x34
github.com/jpoirier/gortlsdr.(*Context).ReadSync(0x72200760, 0x10ec8000, 0x40000, 0x40000, 0x40000, 0x0, 0x0, 0x0)
    /root/go_path/src/github.com/jpoirier/gortlsdr/rtlsdr.go:545 +0x78
main.(*UAT).read(0x1070a668)
    /tmp/stratux/main/sdr.go:94 +0x218
created by main.sdrWatcher
    /tmp/stratux/main/sdr.go:349 +0xae4

goroutine 67 [runnable, locked to thread]:
github.com/jpoirier/gortlsdr._Cfunc_rtlsdr_read_sync(0x72200760, 0x10e52000, 0x40000, 0x10eabc30, 0x0)
    github.com/jpoirier/gortlsdr/_obj/_cgo_gotypes.go:349 +0x34
github.com/jpoirier/gortlsdr.(*Context).ReadSync(0x72200760, 0x10e52000, 0x40000, 0x40000, 0x40000, 0x0, 0x0, 0x0)
    /root/go_path/src/github.com/jpoirier/gortlsdr/rtlsdr.go:545 +0x78
main.(*UAT).read(0x107625b8)
    /tmp/stratux/main/sdr.go:94 +0x218
created by main.sdrWatcher
    /tmp/stratux/main/sdr.go:349 +0xae4

trap    0x6
error   0x0
oldmask 0x0
r0      0x0
r1      0x9f0
r2      0x6
r3      0x0
r4      0x76dff094
r5      0x73eff460
r6      0x0
r7      0x10c
r8      0x1
r9      0x50
r10     0x40000
fp      0x7
ip      0x73eff920
sp      0x73efebc0
lr      0x76cf2f24
pc      0x76cf2f50
cpsr    0x20000010
fault   0x0

@cyoung
Copy link
Owner

cyoung commented Dec 26, 2015

Can't reproduce it with the latest master.

@jpoirier jpoirier closed this Dec 28, 2015
@jpoirier jpoirier deleted the dongle_handling_mod branch December 28, 2015 19:30
@cyoung
Copy link
Owner

cyoung commented Dec 28, 2015

Were you able to reproduce it?? Related to removal of the uat_wg or something else?

@jpoirier
Copy link
Collaborator Author

No but it really doesn't hurt anything just leaving the sync primitive in.
Just cancel the pull request.

On Mon, Dec 28, 2015 at 1:43 PM, cyoung notifications@github.com wrote:

Were you able to reproduce it?? Related to removal of the uat_wg or
something else?


Reply to this email directly or view it on GitHub
#156 (comment).

@jpoirier
Copy link
Collaborator Author

Oops, was cleaning up some branches and it seems one them contained the
pull request.

On Mon, Dec 28, 2015 at 2:30 PM, Joseph Poirier jdpoirier@gmail.com wrote:

No but it really doesn't hurt anything just leaving the sync primitive in.
Just cancel the pull request.

On Mon, Dec 28, 2015 at 1:43 PM, cyoung notifications@github.com wrote:

Were you able to reproduce it?? Related to removal of the uat_wg or
something else?


Reply to this email directly or view it on GitHub
#156 (comment).

@pmaag pmaag mentioned this pull request Aug 22, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants