Skip to content

core-dump on ubuntu20.04 #503

Closed
Closed

Description

@0x127001

version

* commit 8ec6b8569430166ec63268e780ee613c37910a2e (HEAD -> master, origin/master, origin/HEAD)
| Author: Jason Gauci <[email protected]>
| Date:   Tue Jan 11 07:57:38 2022 -0600

env

$ uname -a
Linux han-NUC11ATKC4 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

status

$ sudo systemctl status et.service
● et.service
     Loaded: not-found (Reason: Unit et.service not found.)
     Active: failed (Result: core-dump) since Sat 2022-03-19 19:21:57 CST; 1h 4min ago
   Main PID: 5028 (code=dumped, signal=ABRT)

Mar 19 15:46:19 han-NUC11ATKC4 systemd[1]: Started Eternal Terminal.
Mar 19 19:21:57 han-NUC11ATKC4 systemd[1]: Stopping Eternal Terminal...
Mar 19 19:21:57 han-NUC11ATKC4 systemd[1]: et.service: Main process exited, code=dumped, status=6/ABRT
Mar 19 19:21:57 han-NUC11ATKC4 systemd[1]: et.service: Failed with result 'core-dump'.
Mar 19 19:21:57 han-NUC11ATKC4 systemd[1]: Stopped Eternal Terminal.

config

$ cat /etc/et.cfg
; et.cfg : Config file for Eternal Terminal
;

[Networking]
port = 2022
# bind_ip = 0.0.0.0

[Debug]
verbose = 0
silent = 0
logsize = 20971520

error log

$ tail -n 20 /tmp/etserver-2022-03-19_15-46.log
[INFO 2022-03-19 19:20:54,077 Bv6wTVeYKJ0hzCBm TerminalServer.cpp:330] Got keep alive
[INFO 2022-03-19 19:20:58,126 IjCTb4A3bs0ylVoO TerminalServer.cpp:330] Got keep alive
[INFO 2022-03-19 19:21:00,118 Bv6wTVeYKJ0hzCBm TerminalServer.cpp:330] Got keep alive
[INFO 2022-03-19 19:21:04,094 IjCTb4A3bs0ylVoO TerminalServer.cpp:330] Got keep alive
[INFO 2022-03-19 19:21:07,826 Bv6wTVeYKJ0hzCBm TerminalServer.cpp:278] Terminal session ended
[INFO 2022-03-19 19:21:07,826 Bv6wTVeYKJ0hzCBm Connection.cpp:145] Shutting down connection
[INFO 2022-03-19 19:21:07,937 server-clientHandler ServerConnection.cpp:67] Got client with id: Bv6wTVeYKJ0hzCBm
[INFO 2022-03-19 19:21:07,937 server-clientHandler ServerConnection.cpp:78] Got a client that we have no key for
[INFO 2022-03-19 19:21:10,060 IjCTb4A3bs0ylVoO TerminalServer.cpp:330] Got keep alive
[INFO 2022-03-19 19:21:13,870 IjCTb4A3bs0ylVoO TerminalServer.cpp:278] Terminal session ended
[INFO 2022-03-19 19:21:13,870 IjCTb4A3bs0ylVoO Connection.cpp:145] Shutting down connection
[INFO 2022-03-19 19:21:14,006 server-clientHandler ServerConnection.cpp:67] Got client with id: IjCTb4A3bs0ylVoO
[INFO 2022-03-19 19:21:14,006 server-clientHandler ServerConnection.cpp:78] Got a client that we have no key for
[FATAL 2022-03-19 19:21:57,740 etserver-main TerminalServer.cpp:61] Stack Trace:
[0] 0xc7992 et::TerminalServer::run()
[1] 0x8167a main
[2] 0x7fe7ca3f50b3 __libc_start_main
[3] 0x836ae _start
Error: (4): Interrupted system call
[WARNING 2022-03-19 19:21:57,740 etserver-main TerminalServer.cpp:61] Aborting application. Reason: Fatal log at [/build/et-0S6JQL/et-6.1.11/src/terminal/TerminalServer.cpp:61]

Activity

  1. changed the title [-]abort on ubuntu20.04[/-] [+]core-dump on ubuntu20.04[/+] on Mar 19, 2022
  2. jwmcglynn commented on Apr 30, 2022

    @jwmcglynn
    Collaborator

    The stack shows that the crash is on this line:

        int numFdsSet = select(maxFd + 1, &rfds, NULL, NULL, &tv);
        FATAL_FAIL(numFdsSet); // <-- here

    The error indicates that we've received a negative result from select, and the resulting errno value is EINTR.

    It looks like this is normal behavior of select, and EINTR should be ignored: https://www.hardening-consulting.com/en/posts/20210322-select-poll-and-eintr.html

  3. added a commit that references this issue on Apr 30, 2022
    dc4a8d7
  4. added a commit that references this issue on May 2, 2022
    3589b70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions