[Scummvm-tracker] [ScummVM :: Bugs] #16318: ScummVM 2.9.1 crashing on Samsung TV when trying to load default configuration
ScummVM :: Bugs
trac at scummvm.org
Sat Oct 25 21:55:06 UTC 2025
#16318: ScummVM 2.9.1 crashing on Samsung TV when trying to load default
configuration
----------------------------+---------------------
Reporter: jschwartzenberg | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Ports
Version: | Keywords: samsung
Game: |
----------------------------+---------------------
I am trying to get the Samsung TV port to run. Even though there are no
binaries for it, it is still part of the build system. I have a 2014
series TV (instead of 2009) however, so I needed to modify configure
slightly but then it compiles without any other changes (GCC 4.7.4):
{{{
--- configure.orig 2025-10-25 23:21:49.000000000 +0200
+++ configure 2025-10-25 23:22:58.000000000 +0200
@@ -1842,7 +1842,8 @@
samsungtv)
_host_os=linux
_host_cpu=arm
- _host_alias=arm-linux-gnueabi
+ _host_alias=arm-v7a8v4r3-linux-gnueabi
+ append_var CXXFLAGS "-fPIC"
;;
sailfish)
_host_os=linux
}}}
I ran configure as follows:
{{{
./configure --host=samsungtv --prefix=/home/julius/samsung/toolchain/arm-
mips-src-20131011/scripts/arm-v7a8v4r3/arm-v7a8v4r3-linux-gnueabi/sys-
root/usr --with-sdl-prefix=/home/julius/samsung/toolchain/arm-mips-
src-20131011/scripts/arm-v7a8v4r3/arm-v7a8v4r3-linux-gnueabi/sys-root/usr
--disable-all-engines --enable-engine=agi --disable-enet --disable-
detection-full --disable-lua --disable-nuked-opl --disable-highres
--disable-scalers --disable-translation --disable-eventrecorder --disable-
tts --disable-bink
}}}
Followed by {{{make}}} to get: {{{scummvm.so}}}
When I run it on my TV, it gets quite far, but crashes when loading the
default configuration. I got this stacktrace from gdb:
{{{
Thread 1 "GPlayer_Process" received signal SIGSEGV, Segmentation fault.
0x9f9f1c50 in Common::BaseString<char>::incRefCount() const () from
/dtv/scummvm.so
(gdb) bt
#0 0x9f9f1c50 in Common::BaseString<char>::incRefCount() const () from
/dtv/scummvm.so
#1 0x9f9eeea8 in
Common::BaseString<char>::BaseString(Common::BaseString<char> const&) ()
from /dtv/scummvm.so
#2 0x9f67b580 in Common::String::String(Common::String const&) () from
/dtv/scummvm.so
#3 0x9f9dff54 in Common::Path::toString (
this=<error reading variable: Could not find the frame base for
"Common::Path::toString(char) const".>,
separator=<error reading variable: Could not find the frame base for
"Common::Path::toString(char) const".>) at common/path.cpp:294
#4 0x9f9ce49c in Common::FSNode::FSNode (
this=<error reading variable: Could not find the frame base for
"Common::FSNode::FSNode(Common::Path const&)".>,
p=<error reading variable: Could not find the frame base for
"Common::FSNode::FSNode(Common::Path const&)".>) at common/fs.cpp:121
#5 0x9f9fffcc in OSystem::createConfigReadStream (
this=<error reading variable: Could not find the frame base for
"OSystem::createConfigReadStream()".>) at common/system.cpp:232
#6 0x9f9c08bc in Common::ConfigManager::loadDefaultConfigFile (
this=<error reading variable: Could not find the frame base for
"Common::ConfigManager::loadDefaultConfigFile(Common::Path const&)".>,
---Type <return> to continue, or q <return> to quit---
fallbackFilename=<error reading variable: Could not find the frame
base for "Common::ConfigManager::loadDefaultConfigFile(Common::Path
const&)".>) at common/config-manager.cpp:84
#7 0x9f68b88c in scummvm_main (
argc=<error reading variable: Could not find the frame base for
"scummvm_main(int, char const* const*)".>,
argv=<error reading variable: Could not find the frame base for
"scummvm_main(int, char const* const*)".>) at base/main.cpp:462
#8 0x9f688da4 in Game_Main (
path=<error reading variable: Could not find the frame base for
"Game_Main(char*, char*)".>) at backends/platform/samsungtv/main.cpp:49
#9 0x00048898 in Main() ()
#10 0x00048010 in main ()
}}}
It seems that the reference counter for the relevant string somehow is not
initialized. Other strings seem to have no issues though.
What might be a good idea to figure this out? I understand this might be
unexplored territory, but if anybody could give me some pointers on how to
debug this further, I'd already appreciate that a lot and I'll try to do
that's needed to make it work. Many thanks in advance!!
--
Ticket URL: <https://bugs.scummvm.org/ticket/16318>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list