You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem turns out to be an issue with strndup(). Replacing it with the native OpenBSD strndup() fixes the crash. So there is a bug in the openttd internal version somewhere.
(gdb) bt
# 0 0x000017f4a3c873c4 in strlen (
str=0x17f4add79c00 "; $Id: currency_settings.ini 24671 2012-11-08 10:04:00Z
frosch $\n;\n; This file is part of OpenTTD.\n; OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU Gener"...)
at /usr/src/lib/libc/string/strlen.c:43
# 1 0x000017f2a2802c53 in strndup (
s=0x17f4add79c00 "; $Id: currency_settings.ini 24671 2012-11-08 10:04:00Z frosch $\n;\n; This file is part of OpenTTD.\n; OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU Gener"..., len=640)
at /usr/ports/pobj/openttd-1.3.1/openttd-1.3.1/src/string.cpp:576
# 2 0x000017f2a2803de8 in IniLoadFile::LoadFromDisk (this=0x17f4b0595600,
filename=Variable "filename" is not available.
)
at /usr/ports/pobj/openttd-1.3.1/openttd-1.3.1/src/ini_load.cpp:265
# 3 0x000017f2a280428f in LoadIniFile (
filename=0x7f7ffffe3779 "/usr/ports/pobj/openttd-1.3.1/openttd-1.3.1/src/table/currency_settings.ini")
at /usr/ports/pobj/openttd-1.3.1/openttd-1.3.1/src/settingsgen/settingsgen.cpp:214
# 4 0x000017f2a2805c8e in main (argc=Variable "argc" is not available.
)
at /usr/ports/pobj/openttd-1.3.1/openttd-1.3.1/src/settingsgen/settingsgen.cpp:427
bentley opened the ticket and wrote:
Reported version: 1.3.1
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/5621
The text was updated successfully, but these errors were encountered: