open
https://gitlab.synchro.net/main/sbbs/-/issues/768
```
Core was generated by `/sbbs/exec/sbbs w! d'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f46e0bc458e in mqtt_client_on (mqtt=0x7f46e0923d20 <mqtt>, on=true, sock=23, client=0x7f45f57e1a98, update=false) at mqtt.c:780
780 client_t* client = node->data;
```
Not much of a backtrace
```
(gdb) bt
#0 0x00007f46e0bc458e in mqtt_client_on (mqtt=0x7f46e0923d20 <mqtt>, on=true, sock=23, client=0x7f45f57e1a98, update=false)
at mqtt.c:780
#1 0x00007f46e08ee4a6 in client_on (sock=23, client=0x7f45f57e1a98, update=false) at websrvr.c:775
#2 0x00007f46e0904b39 in http_session_thread (arg=0x0) at websrvr.c:6778
#3 0x00007f46e06dfac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#4 0x00007f46e0771850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
```
I did notice that my dashboard wasn't updating so figured that mqtt stopped for some reason. I just recycled the terminal and it restarted.
Here's a bt full in case it's any use.
```
(gdb) bt full
#0 0x00007f46e0bc458e in mqtt_client_on (mqtt=0x7f46e0923d20 <mqtt>, on=true, sock=23, client=0x7f45f57e1a98, update=false)
at mqtt.c:780
client = 0x7f4698024260
node = 0xb10e9025526b2b45
str = "20240804T215655-0500\tHTTPS\t0\t<unknown user>\tE+kR%\220\016\261\065.160\t<no name>\t44836\t66\000\000\063\066\t11\000E\177\000\000\366\352\377\340F\177\000\000\000\020\200\000\000\000\000\000\000\000\000\000z.\000\000\000\020\200\000\000\000\000\000\003\000\000\000F\177\000\000\000\031\376\364E\177\000\000\n", '\000' <repeats 11 times>, "E\177\000\000@&~\365E\177\000\001\340\271\r\330F\177", '\000' <repeats 19 times>, "\213\060\321\332ԅ\212E+kR%\220\016\261\260"...
list = 0x7f46d81916c0
client_count = 22
buf = 0x7f45f47e1000 ""
result = 0
#1 0x00007f46e08ee4a6 in client_on (sock=23, client=0x7f45f57e1a98, update=false) at websrvr.c:775
No locals.
#2 0x00007f46e0904b39 in http_session_thread (arg=0x0) at websrvr.c:6778
socket = 23
redirp = 0x0
session = {socket = 23, addr = {addr = {sa_family = 2, sa_data = "\343N\244\\\364\204\000\000\000\000\000\000\000"},
in = {sin_family = 2, sin_port = 20195, sin_addr = {s_addr = 2230607012},
sin_zero = "\000\000\000\000\000\000\000"}, in6 = {sin6_family = 2, sin6_port = 20195,
sin6_flowinfo = 2230607012, sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 12 times>, "\023\365\340\001",
__u6_addr16 = {0, 0, 0, 0, 0, 0, 62739, 480}, __u6_addr32 = {0, 0, 0, 31520019}}}, sin6_scope_id = 0}, un = {
sun_family = 2,
sun_path = "\343N\244\\\364\204", '\000' <repeats 12 times>, "\023\365\340\001", '\000' <repeats 85 times>},
store = {ss_family = 2,
__ss_padding = "\343N\244\\\364\204", '\000' <repeats 12 times>, "\023\365\340\001", '\000' <repeats 95 times>,
__ss_align = 0}}, addr_len = 16, req = {method = 0, virtual_path = '\000' <repeats 4096 times>,
physical_path = '\000' <repeats 4096 times>, expect_go_ahead = false, if_modified_since = 0, keep_alive = false,
ars = '\000' <repeats 255 times>, auth = {type = AUTHENTICATION_UNKNOWN, username = '\000' <repeats 25 times>,
password = '\000' <repeats 40 times>, digest_uri = 0x0, realm = 0x0, nonce = 0x0, algorithm = ALGORITHM_UNKNOWN,
qop_value = QOP_NONE, cnonce = 0x0, nonce_count = 0x0, digest = '\000' <repeats 15 times>, stale = false},
host = '\000' <repeats 127 times>, vhost = '\000' <repeats 127 times>, send_location = 0, send_content = false,
upgrading = false, location_to_send = 0x0, vary_list = 0x0, mime_type = 0x0, headers = 0x0,
status = '\000' <repeats 1024 times>, post_data = 0x0, post_map = 0x0, post_len = 0, dynamic = 0,
xjs_handler = '\000' <repeats 4096 times>, ld = 0x0, request_line = '\000' <repeats 1024 times>,
orig_request_line = '\000' <repeats 1024 times>, finished = false, read_chunked = false, write_chunked = false,
range_start = 0, range_end = 0, accept_ranges = false, if_range = 0, path_info_index = false,
query_str = '\000' <repeats 1024 times>, extra_path_info = '\000' <repeats 1024 times>, cgi_env = 0x0,
dynamic_heads = 0x0, got_extra_path = false, fp = 0x0, cleanup_file = {0x0, 0x0}, sent_headers = false,
prev_write = false, manual_length = false, error_dir = 0x0, cgi_dir = 0x0, auth_list = 0x0, realm = 0x0,
digest_realm = 0x0, fastcgi_socket = 0x0}, host_ip = "164.92.244.132", '\000' <repeats 31 times>,
host_name = "164.92.244.132", '\000' <repeats 113 times>, http_ver = 0, send_failed = false, finished = false,
parsed_vpath = PARSED_VPATH_NONE, libnum = 0, file = {{idx = {{{to = 0, from = 0, subj = 0}, {votes = 0, remsg = 0},
{size = 0, size_ext = 0}}, attr = 0, offset = 0, number = 0, time = 0}, file_idx = {{idx = {{{to = 0,
from = 0, subj = 0}, {votes = 0, remsg = 0}, {size = 0, size_ext = 0}}, attr = 0, offset = 0,
number = 0, time = 0}, {idx_ = {{{to = 0, from = 0, subj = 0}, {votes = 0, remsg = 0}, {size = 0,
size_ext = 0}}, attr = 0, offset = 0, number = 0, time = 0}, name = '\000' <repeats 64 times>,
hash = {flags = 0 '\000', data = {crc16 = 0, crc32 = 0, md5 = '\000' <repeats 15 times>,
--Type <RET> for more, q to quit, c to continue without paging--
sha1 = '\000' <repeats 19 times>}}}}}}, hdr = {msghdr_id = "\000\000\000", type = 0, version = 0,
length = 0, attr = 0, auxattr = 0, netattr = 0, when_written = {time = 0, zone = 0}, when_imported = {time = 0,
zone = 0}, number = 0, thread_back = 0, thread_next = 0, thread_first = 0, delivery_attempts = 0, votes = 0,
thread_id = 0, {{priority = 0 '\000'}, {times_downloaded = 0, last_downloaded = 0}}, offset = 0,
total_dfields = 0}, to = 0x0, to_ext = 0x0, to_list = 0x0, from = 0x0, from_ext = 0x0, from_org = 0x0,
from_ip = 0x0, from_host = 0x0, from_prot = 0x0, from_port = 0x0, author = 0x0, author_org = 0x0, replyto = 0x0,
replyto_ext = 0x0, replyto_list = 0x0, cc_list = 0x0, id = 0x0, reply_id = 0x0, forward_path = 0x0,
reverse_path = 0x0, path = 0x0, newsgroups = 0x0, ftn_pid = 0x0, ftn_tid = 0x0, ftn_area = 0x0, ftn_flags = 0x0,
ftn_charset = 0x0, ftn_bbsid = 0x0, ftn_msgid = 0x0, ftn_reply = 0x0, {summary = 0x0, desc = 0x0}, {subj = 0x0,
name = 0x0}, {text = 0x0, extdesc = 0x0}, {tail = 0x0, auxdata = 0x0}, tags = 0x0, editor = 0x0,
mime_version = 0x0, content_type = 0x0, content_encoding = 0x0, text_charset = 0x0, text_subtype = 0x0,
to_agent = 0, from_agent = 0, replyto_agent = 0, to_net = {type = 0, addr = 0x0}, from_net = {type = 0,
addr = 0x0}, replyto_net = {type = 0, addr = 0x0}, total_hfields = 0, hfield = 0x0, hfield_dat = 0x0,
dfield = 0x0, idx_offset = 0, forwarded = false, expiration = 0, cost = 0, flags = 0, user_voted = 0, upvotes = 0,
downvotes = 0, total_votes = 0, dir = 0, size = 0, time = 0, columns = 0 '\000'}, user = {number = 0, uls = 0,
dls = 0, posts = 0, emails = 0, fbacks = 0, etoday = 0, ptoday = 0, timeon = 0, textra = 0, logons = 0,
ttoday = 0, tlast = 0, ltoday = 0, xedit = 0, shell = 0, alias = "<unknown user>", '\000' <repeats 11 times>,
name = '\000' <repeats 25 times>, handle = "\000\000\000\000\000\000\000\000",
lang = "\000\000\000\000\000\000\000\000", comp = '\000' <repeats 60 times>, note = '\000' <repeats 30 times>,
address = '\000' <repeats 30 times>, location = '\000' <repeats 30 times>,
zipcode = "\000\000\000\000\000\000\000\000\000\000", pass = '\000' <repeats 40 times>,
birth = "\000\000\000\000\000\000\000\000", phone = '\000' <repeats 12 times>,
modem = "\000\000\000\000\000\000\000\000", netmail = '\000' <repeats 60 times>,
tmpext = '\000' <repeats 15 times>, comment = '\000' <repeats 60 times>, cursub = '\000' <repeats 32 times>,
curdir = '\000' <repeats 32 times>, curxtrn = '\000' <repeats 16 times>, ipaddr = '\000' <repeats 45 times>,
level = 0 '\000', sex = 0 '\000', prot = 0 '\000', leech = 0 '\000', rows = 0, cols = 0, misc = 0, qwk = 0,
chat = 0, mail = 0, flags1 = 0, flags2 = 0, flags3 = 0, flags4 = 0, exempt = 0, rest = 0, min = 0, cdt = 0,
freecdt = 0, ulb = 0, dlb = 0, dlcps = 0, firston = 0, laston = 0, expire = 0, pwmod = 0, ns_time = 0,
logontime = 0}, last_user_num = 0, logon_time = 0, username = "<unknown user>", '\000' <repeats 11 times>,
last_js_user_num = 0, redir_req = '\000' <repeats 1024 times>, js_runtime = 0x0, js_cx = 0x0, js_glob = 0x0,
js_query = 0x0, js_header = 0x0, js_cookie = 0x0, js_request = 0x0, js_callback = {events = 0x0, rq_head = 0x0,
rq_tail = 0x0, listeners = 0x0, terminated = 0x7f46e091eb99 <terminate_js>, parent_cb = 0x0, counter = 0,
limit = 864000, yield_interval = 10000, gc_interval = 100, gc_attempts = 0, offline_counter = 0, next_eid = 0,
auto_terminate = 1, keepGoing = 0, bg = false, events_supported = false}, subscan = 0x0, outbuf = {
pStart = 0x7f46d80fd0a0 "P\b", pHead = 0x7f46d80fd0a0 "P\b", pTail = 0x7f46d80fd0a0 "P\b",
pEnd = 0x7f46d813d0a0 "", size = 262144, empty_event = 0x7f46d8165e60, data_event = 0x7f46d81e3350,
highwater_event = 0x7f46d80268b0, highwater_mark = 1436, mutex = {__data = {__lock = 0, __count = 0, __owner = 0,
__nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}},
__size = '\000' <repeats 39 times>, __align = 0}}, output_thread_terminated = 0x7f46d81c7350,
outbuf_write_initialized = 1, outbuf_write = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0,
__kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}},
__size = '\000' <repeats 39 times>, __align = 0}, client = {size = 472,
addr = "164.92.244.132", '\000' <repeats 113 times>, host = "<no name>", '\000' <repeats 246 times>, port = 58190,
time = 1722826618, protocol = "HTTPS", '\000' <repeats 26 times>,
user = "<unknown user>", '\000' <repeats 17 times>, usernum = 0}, struct_filled = {__data = {__lock = 0,
__count = 0, __owner = 0, __nusers = 0, __kind = -1, __spins = 0, __elision = 0, __list = {__prev = 0x0,
__next = 0x0}}, __size = '\000' <repeats 16 times>, "\377\377\377\377", '\000' <repeats 19 times>,
__align = 0}, is_tls = true, tls_sess = 11898, tls_pending = false, peeked_valid = false, peeked = 0 '\000'}
--Type <RET> for more, q to quit, c to continue without paging--
loop_count = 0
login_attempts = 0
init_error = false
client_count = 56
clients_remain = 0
trash = {added = 0, expires = 0, prot = '\000' <repeats 31 times>, user = '\000' <repeats 63 times>,
reason = '\000' <repeats 127 times>}
host_name = "<no name>", '\000' <repeats 118 times>
attempted = {addr = {addr = {sa_family = 0, sa_data = '\000' <repeats 13 times>}, in = {sin_family = 0, sin_port = 0,
sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, in6 = {sin6_family = 0, sin6_port = 0,
sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0,
0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}, un = {sun_family = 0,
sun_path = '\000' <repeats 107 times>}, store = {ss_family = 0, __ss_padding = '\000' <repeats 117 times>,
__ss_align = 0}}, count = 0, dupes = 0, first = 0, time = 0, prot = '\000' <repeats 31 times>,
user = '\000' <repeats 127 times>, pass = '\000' <repeats 127 times>}
banned = 0
#3 0x00007f46e06dfac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
ret = <optimized out>
pd = <optimized out>
out = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139942331950960, -689329415099097632, 139938448156224, 2, 139942389741520,
139942331951312, 640892617613794784, 640287777673993696}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0,
0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
#4 0x00007f46e0771850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
No locals.
(gdb)
```
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)