~emersion/soju#93: 
Panic in loadHistoryLatestID

Aug 26 13:20:53 kyouko soju[2925582]: 2020/08/26 13:20:53 downstream "XXX:49508": new connection
Aug 26 13:20:54 kyouko soju[2925582]: 2020/08/26 13:20:54 downstream "XXX:49508": registration complete for user "emersion"
Aug 26 13:21:15 kyouko soju[2925582]: 2020/08/26 13:21:15 downstream "XXX:49508": failed to close connection: tls: use of closed connection
Aug 26 13:21:17 kyouko soju[2925582]: 2020/08/26 13:21:17 downstream "XXX:49510": new connection
Aug 26 13:21:18 kyouko soju[2925582]: 2020/08/26 13:21:18 downstream "XXX:49510": registration complete for user "emersion"
Aug 26 13:21:18 kyouko soju[2925582]: panic: runtime error: invalid memory address or nil pointer dereference
Aug 26 13:21:18 kyouko soju[2925582]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x775e1b]
Aug 26 13:21:18 kyouko soju[2925582]: goroutine 11 [running]:
Aug 26 13:21:18 kyouko soju[2925582]: git.sr.ht/~emersion/soju.loadHistoryLatestID(0x0, 0xc000018333, 0xa, 0xc0005f6390, 0x2d, 0xfa0, 0x0, 0xc0000cf798, 0x923cab, 0x3, ...)
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/logger.go:383 +0x56b
Aug 26 13:21:18 kyouko soju[2925582]: git.sr.ht/~emersion/soju.(*downstreamConn).sendNetworkHistory(0xc000130700, 0xc0000807e0)
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/downstream.go:887 +0x20e
Aug 26 13:21:18 kyouko soju[2925582]: git.sr.ht/~emersion/soju.(*downstreamConn).welcome.func2(0xc0000807e0)
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/downstream.go:850 +0x313
Aug 26 13:21:18 kyouko soju[2925582]: git.sr.ht/~emersion/soju.(*user).forEachNetwork(0xc0000c4120, 0xc0000cfaf0)
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/user.go:270 +0x52
Aug 26 13:21:18 kyouko soju[2925582]: git.sr.ht/~emersion/soju.(*downstreamConn).forEachNetwork(0xc000130700, 0xc0000cfaf0)
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/downstream.go:139 +0x5d
Aug 26 13:21:18 kyouko soju[2925582]: git.sr.ht/~emersion/soju.(*downstreamConn).welcome(0xc000130700, 0xc0000cfc90, 0x1)
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/downstream.go:846 +0x75c
Aug 26 13:21:18 kyouko soju[2925582]: git.sr.ht/~emersion/soju.(*user).run(0xc0000c4120)
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/user.go:386 +0x10cc
Aug 26 13:21:18 kyouko soju[2925582]: git.sr.ht/~emersion/soju.(*Server).addUserLocked.func1(0xc0000c4120, 0xc0000c4090)
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/server.go:120 +0x2f
Aug 26 13:21:18 kyouko soju[2925582]: created by git.sr.ht/~emersion/soju.(*Server).addUserLocked
Aug 26 13:21:18 kyouko soju[2925582]:         /home/simon/src/soju/server.go:119 +0x1cf
Status
RESOLVED FIXED
Submitter
~emersion
Assigned to
No-one
Submitted
2 months ago
Updated
2 months ago
Labels
bug

~emersion REPORTED FIXED 2 months ago

Fixed in 480d771a676e.

Register here or Log in to comment, or comment via email.