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

socket.c: SEGV in bbs_node_readline #21

Open
InterLinked1 opened this issue Oct 8, 2023 · 0 comments
Open

socket.c: SEGV in bbs_node_readline #21

InterLinked1 opened this issue Oct 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@InterLinked1
Copy link
Owner

[2023-10-08 22:46:26.199]   DEBUG[1833151]: socket.c:906 __bbs_tcp_listener: Accepting new TELNET connection from 218.150.111.190
[2023-10-08 22:46:26.199]   DEBUG[1833151]: socket.c:907 __bbs_tcp_listener: accepted fd = 54
[2023-10-08 22:46:26.199]   DEBUG[1833151]: node.c:275 __bbs_node_request: Allocated new node with ID 3
[2023-10-08 22:46:26.200]   DEBUG[1833151]: net_telnet.c:69 telnet_send_command: Sent Telnet command: IAC WILL ECHO
[2023-10-08 22:46:26.200]   DEBUG[1833151]: net_telnet.c:69 telnet_send_command: Sent Telnet command: IAC DO NAWS
[2023-10-08 22:46:26.400]   DEBUG[1861098]: thread.c:95 thread_register: Thread 1861098 spawned from handler               started by thread 1833151 at socket.c:916 __bbs_tcp_listener()
[2023-10-08 22:46:26.401]   DEBUG[1861098]: node.c:1401 bbs_node_begin: Running BBS for node 3
[2023-10-08 22:46:26.401]    AUTH[1861098]: node.c:1402 bbs_node_begin: New TELNET connection to node 3 from 218.150.111.190:43329
[2023-10-08 22:46:26.401]   DEBUG[1861098]: node.c:389 bbs_node_safe_sleep: Sleeping on node 3 for 300 ms
[2023-10-08 22:46:26.402]   DEBUG[1861099]: thread.c:95 thread_register: Thread 1861099 spawned from pty_master            started by thread 1861098 at pty.c:241 bbs_pty_allocate()
[2023-10-08 22:46:27.153]   DEBUG[1861098]: socket.c:2462 bbs_node_wait_key: Waiting 75000 ms for any input
[2023-10-08 22:46:27.153]   DEBUG[1861098]: term.c:116 bbs_node_set_input: Node 3 (fd 58): input now unbuffered, echo disabled
[2023-10-08 22:46:28.303] WARNING[1861094]: socket.c:1497 bbs_node_read: Node 4 has no active slave fd
[2023-10-08 22:46:28.316]   DEBUG[1861098]: socket.c:1951 bbs_node_flush_input: Flushed 3 bytes
Segmentation fault (core dumped)

Thread 1 (Thread 0x7fa2f27f46c0 (LWP 1861094)):
#0  __memchr_avx2 () at ../sysdeps/x86_64/multiarch/memchr-avx2.S:224
#1  0x0000562acfeaa45d in bbs_node_readline (node=node@entry=0x7fa2f8004be0, ms=ms@entry=60000, buf=<optimized out>, buf@entry=0x7fa2f27f3990 "\377\373\037\377\372\037", len=len@entry=64) at socket.c:1772
        bytes = 18446744073709551615
        res = <optimized out>
        left = <optimized out>
        bytes_read = <optimized out>
        startbuf = 0x7fa2f27f3990 "\377\373\037\377\372\037"
        term = <optimized out>
        nterm = 0x7fa2f27f3996 ""
        keep_trying = <optimized out>
        __func__ = "bbs_node_readline"
#2  0x0000562acfe9d6f2 in authenticate (node=node@entry=0x7fa2f8004be0) at node.c:1086
        attempts = 1
        username = "\377\373\037\377\372\037\000P\000\030\377\360telnet\000\000\000\000\000\000\340K\000\370\242\177\000\000\001\005\354\317*V\000\0008@\354\317*V\000\0000;\177\362\242\177\000\000\237m;\036\243\177\000"
        password = '\000' <repeats 63 times>
        __func__ = "authenticate"
#3  0x0000562acfe9f708 in node_intro (node=<optimized out>) at node.c:1224
        timebuf = "Sun Oct  8 2023 10:46 pm UTC"
        __func__ = "node_intro"
        __func__ = "node_handler_term"
        node = 0x7fa2f8004be0
#4  node_handler_term (node=0x7fa2f8004be0) at node.c:1371
        __func__ = "node_handler_term"
        node = 0x7fa2f8004be0
#5  bbs_node_handler (varg=varg@entry=0x7fa2f8004be0) at node.c:1425
        node = 0x7fa2f8004be0
#6  0x0000562acfeb07c7 in thread_run (data=<optimized out>) at thread.c:357
        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {140338061571952, 5789364465541002948, 1, 140337922250224, 140337922172976, 140337821466624, 5789364465413076676, 236315176599500484}, __mask_was_saved = 0}}, __pad = {0x7fa>
        __cancel_routine = 0x562acfeb0a80 <thread_unregister>
        __cancel_arg = 0x7fa2f27f46c0
        __not_first_call = <optimized out>
        ret = <optimized out>
        a = {start_routine = <optimized out>, data = <optimized out>, name = 0x7fa2f80115f0 "handler", ' ' <repeats 15 times>, "started by thread 1833151 at socket.c:916 __bbs_tcp_listener()", detached = <optimized out>}
@InterLinked1 InterLinked1 added the bug Something isn't working label Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant