hoytech / strfry

a nostr relay
GNU General Public License v3.0
489 stars 96 forks source link

strfry stream segfaults #46

Open Giszmo opened 1 year ago

Giszmo commented 1 year ago

I have a flaky internet connection and the process ended like this after hundreds of reconnect attempts:

2023-06-11 10:59:12.972 (52195.498s) [main thread     ]INFO| Attempting to connect to wss://relay.damus.io
2023-06-11 10:59:12.972 (52195.498s) [main thread     ]INFO| Websocket connection error
2023-06-11 10:59:17.972 (52200.498s) [main thread     ]INFO| Attempting to connect to wss://relay.damus.io
2023-06-11 10:59:17.973 (52200.498s) [main thread     ]INFO| Websocket connection error
2023-06-11 10:59:22.973 (52205.498s) [main thread     ]INFO| Attempting to connect to wss://relay.damus.io
Segmentation fault
hoytech commented 1 year ago

I think I may have an idea about this, I will try to reproduce.

If you can get this to happen consistently, a backtrace would help a lot. If you run gdb strfry and then at the gdb prompt run stream wss://relay.damus.io. Then if it segfaults run bt and paste the output.

Thanks!

Giszmo commented 1 year ago

It happened once. I'll let you know if I figure out how to reproduce it.