Bug#1074357: freeorion: The connection to the server has been lost - libpython3.12.so.1.0 segfault

Davide Prina Davide.Prina at null.net
Thu Jun 27 09:38:14 BST 2024


Package: freeorion
Version: 0.5+git20230820-4+b3
Severity: normal
X-Debbugs-Cc: Davide.Prina at null.net

Dear mainteiner,

with the last freeorion version I have a segfaul of freeoriond

$ freeorion
[2024-06-27 10:12:10.770469] [0x00007f73fd0006c0] [info]    NamedRef<T>::NamedRefInitInvariants() still could not find value ref after trying 5 times. Giving up.
[2024-06-27 10:12:12.770888] [0x00007f73fd0006c0] [info]    NamedRef<T>::NamedRefInitInvariants() still could not find value ref after trying 5 times. Giving up.
[2024-06-27 10:12:14.771280] [0x00007f73fd0006c0] [info]    NamedRef<T>::NamedRefInitInvariants() still could not find value ref after trying 5 times. Giving up.
$

I get on the game the following message: "The connection to the server has been lost"

In the log I have:
kernel: freeoriond[7872]: segfault at 7fe4ce9bd0d0 ip 00007fe4cf31a4c1 sp 00007ffda45657d8 error 4 in libpython3.12.so.1.0[7fe4cf117000+305000] likely on CPU 0 (core 0, socket 0)
kernel: Code: 48 8d 0d 06 b0 10 00 31 f6 48 8d 15 99 0b 13 00 e8 94 09 ec ff 0f 1f 40 00 f3 0f 1e fa 48 8b 47 f0 48 85 c0 74 26 48 8b 4f f8 <48> 8b 50 08 48 83 e1 fc 83 e2 03 48 09 ca 48 89 01 48 89 50 08 48

If I install the previous version: freeorion_0.5+git20230820-4+b2_amd64.deb all work correctly.

# apt install freeorion-dbgsym

$ strace -o output.txt freeorion --quickstart
CWD: /usr/share/games/freeorion
[2024-06-27 10:25:34.150163] [0x00007f5637e006c0] [info]    NamedRef<T>::NamedRefInitInvariants() still could not find value ref after trying 5 times. Giving up.
[2024-06-27 10:25:36.150634] [0x00007f5637e006c0] [info]    NamedRef<T>::NamedRefInitInvariants() still could not find value ref after trying 5 times. Giving up.
[2024-06-27 10:25:38.151091] [0x00007f5637e006c0] [info]    NamedRef<T>::NamedRefInitInvariants() still could not find value ref after trying 5 times. Giving up.
[2024-06-27 10:25:40.151541] [0x00007f5637e006c0] [info]    NamedRef<T>::NamedRefInitInvariants() still could not find value ref after trying 5 times. Giving up.

$ cat output.txt
execve("/usr/games/freeorion", ["freeorion", "--quickstart", "--auto-quit"], 0x7ffc162db930 /* 48 vars */) = 0
brk(NULL)                               = 0x5576195df000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (File o directory non esistente)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=167855, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 167855, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc22456d000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc22456b000
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P~\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1933688, ...}, AT_EMPTY_PATH) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1985936, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc224386000
mmap(0x7fc2243ac000, 1404928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7fc2243ac000
mmap(0x7fc224503000, 348160, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17d000) = 0x7fc224503000
mmap(0x7fc224558000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d1000) = 0x7fc224558000
mmap(0x7fc22455e000, 52624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc22455e000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc224383000
arch_prctl(ARCH_SET_FS, 0x7fc224383740) = 0
set_tid_address(0x7fc224383a10)         = 9594
set_robust_list(0x7fc224383a20, 24)     = 0
rseq(0x7fc224384060, 0x20, 0, 0x53053053) = 0
mprotect(0x7fc224558000, 16384, PROT_READ) = 0
mprotect(0x557618ad4000, 8192, PROT_READ) = 0
mprotect(0x7fc2245c6000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7fc22456d000, 167855)          = 0
getuid()                                = 1000
getgid()                                = 1000
getpid()                                = 9594
rt_sigaction(SIGCHLD, {sa_handler=0x557618ac9550, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fc2243c3580}, NULL, 8) = 0
geteuid()                               = 1000
getrandom("\xe0\xb2\x24\x84\x78\xf9\x30\x0f", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x5576195df000
brk(0x557619600000)                     = 0x557619600000
getppid()                               = 9591
newfstatat(AT_FDCWD, "/tmp/1", {st_mode=S_IFDIR|0755, st_size=60, ...}, 0) = 0
newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=60, ...}, 0) = 0
openat(AT_FDCWD, "/usr/games/freeorion", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
geteuid()                               = 1000
getegid()                               = 1000
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x557618ac9550, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fc2243c3580}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fc2243c3580}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fc2243c3580}, NULL, 8) = 0
read(10, "#!/bin/sh\n\nset -e\n\nROOT=/usr/sha"..., 8192) = 174
chdir("/usr/share/games/freeorion")     = 0
write(1, "CWD: ", 5)                    = 5
write(1, "/usr/share/games/freeorion\n", 27) = 27
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], NULL, 8) = 0
vfork()                                 = 9595
rt_sigprocmask(SIG_SETMASK, [], ~[KILL STOP RTMIN RT_1], 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9595
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=9595, si_uid=1000, si_status=0, si_utime=534 /* 5.34 s */, si_stime=31 /* 0.31 s */} ---
rt_sigreturn({mask=[]})                 = 9595
wait4(-1, 0x7ffd6822799c, WNOHANG, NULL) = -1 ECHILD (Nessun processo figlio)
read(10, "", 8192)                      = 0
exit_group(0)                           = ?
+++ exited with 0 +++


$ freeorion &
[1] 9669

$ strace -o freeoriond.txt -p 9669

$ cat freeoriond.txt
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9670
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=9670, si_uid=1000, si_status=0, si_utime=592 /* 5.92 s */, si_stime=46 /* 0.46 s */} ---
rt_sigreturn({mask=[]})                 = 9670
wait4(-1, 0x7ffea85a101c, WNOHANG, NULL) = -1 ECHILD (Nessun processo figlio)
read(10, "", 8192)                      = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Ciao
Davide

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-debug'), (500, 'stable-security')
Architecture: amd64 (x86_64)

Kernel: Linux 6.8.12-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freeorion depends on:
ii  freeorion-data                                       0.5+git20230820-4
ii  libboost-filesystem1.83.0                            1.83.0-3
ii  libboost-iostreams1.83.0                             1.83.0-3
ii  libboost-locale1.83.0                                1.83.0-3
ii  libboost-log1.83.0                                   1.83.0-3
ii  libboost-python1.83.0 [libboost-python1.83.0-py312]  1.83.0-3
ii  libboost-serialization1.83.0                         1.83.0-3
ii  libboost-thread1.83.0                                1.83.0-3
ii  libc6                                                2.38-13
ii  libfreetype6                                         2.13.2+dfsg-1+b4
ii  libgcc-s1                                            14-20240330-1
ii  libglew2.2                                           2.2.0-4+b1
ii  libopenal1                                           1:1.23.1-4+b1
ii  libopengl0                                           1.7.0-1+b1
ii  libpng16-16t64                                       1.6.43-5
ii  libpython3.12t64                                     3.12.4-1
ii  libsdl2-2.0-0                                        2.30.4+dfsg-1
ii  libstdc++6                                           14-20240330-1
ii  libvorbis0a                                          1.3.7-2
ii  libvorbisfile3                                       1.3.7-2

freeorion recommends no packages.

freeorion suggests no packages.

-- no debconf information



More information about the Pkg-games-devel mailing list