odyssey icon indicating copy to clipboard operation
odyssey copied to clipboard

Odyssey crashes under Ubuntu 20.04

Open rauanmayemir opened this issue 2 years ago • 4 comments

When I have more than couple clients connecting to odyssey, it simply crashes. Here's a syslog information:

Sep 24 16:28:01 fhmv2qh3ni5bdp0bk1fe kernel: [107570.967783] worker: 0[200490]: segfault at f8 ip 00005613bbe937f6 sp 00007f4fc73e4668 error 4 in odyssey[5613bbe57000+42000]
Sep 24 16:28:01 fhmv2qh3ni5bdp0bk1fe kernel: [107570.967791] Code: 28 48 8b 44 24 20 4c 8b 44 24 18 4c 8b 4c 24 10 e9 53 fd ff ff e8 3a 4a fc ff 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 31 c0 <48> 83 bf f8 00 00 00 00 0f 95 c0 c3 66 2e 0f 1f 84 00 00 00 00 00
Sep 24 16:28:01 fhmv2qh3ni5bdp0bk1fe systemd[1]: odyssey.service: Main process exited, code=killed, status=11/SEGV
Sep 24 16:28:01 fhmv2qh3ni5bdp0bk1fe systemd[1]: odyssey.service: Failed with result 'signal'.

I'm using the latest master and also tried some earlier commits. I had no issues building from sources in dockers postgres image that runs on Debian.

Rough config I'm using:

daemonize no
#pid_file "/var/run/odyssey.pid"
unix_socket_dir "/var/run/postgresql"
unix_socket_mode "0644"

graceful_die_on_errors no
enable_online_restart no

bindwith_reuseport no

### LOGGING
#log_file "/var/log/odyssey.log"
log_format "%t %l [%i %s] (%c) %m\n"
log_to_stdout yes
log_syslog no
log_syslog_ident "odyssey"
log_syslog_facility "daemon"
log_debug no
log_config yes
log_session no
log_query no
log_stats yes

stats_interval 60

workers 4
resolvers 2
readahead 8192

cache_coroutine 0
coroutine_stack_size 8

nodelay yes
keepalive 7200
keepalive_keep_interval 75
keepalive_probes 9

listen {
    host "0.0.0.0" #database public interface
    port 7432
    backlog 128
}

# ...

database "mydb" {
  user "myuser" {
    authentication "md5"

    auth_query "SELECT usename, passwd FROM pg_shadow WHERE usename=$1"
    auth_query_db "postgres"
    auth_query_user "postgres"

    storage "postgres_server"
    storage_db "mydb"
    storage_user "myuser"

    pool "transaction"
    pool_size 60
    pool_timeout 0
    pool_ttl 60
    pool_discard yes

    pool_cancel yes
    pool_rollback yes
    client_fwd_error yes
    application_name_add_host yes

    server_lifetime 3600

    log_debug no
    quantiles "0.99,0.95,0.5"
  }
}

rauanmayemir avatar Sep 24 '21 16:09 rauanmayemir