[Bug 1193141] New: minetestserver terminates with SIGSEGV at startup
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 Bug ID: 1193141 Summary: minetestserver terminates with SIGSEGV at startup Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: aarch64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: mailinglists@kunz-im-inter.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 854107 --> http://bugzilla.opensuse.org/attachment.cgi?id=854107&action=edit coredump minetest server crashes at startup. Even when running "minetestserver -h", to get a help screen, it crashes. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c1 --- Comment #1 from Frank Kunz <mailinglists@kunz-im-inter.net> --- Used versions: zypper info minetestserver Loading repository data... Reading installed packages... Information for package minetestserver: --------------------------------------- Repository : openSUSE-Tumbleweed-Oss Name : minetestserver Version : 5.4.1-3.1 Arch : aarch64 Vendor : openSUSE Installed Size : 3.1 MiB Installed : Yes Status : up-to-date Source package : minetest-5.4.1-3.1.src Summary : Minetest server cat /etc/os-release NAME="openSUSE Tumbleweed" # VERSION="20211125" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20211125" PRETTY_NAME="openSUSE Tumbleweed" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:tumbleweed:20211125" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed" LOGO="distributor-logo-Tumbleweed" -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 Dmitriy Perlow <dap.darkness@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |opensuse@trummer.xyz -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 Dmitriy Perlow <dap.darkness@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rpm@fthiessen.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 Dmitriy Perlow <dap.darkness@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |opensuse@dstoecker.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c2 Dirk Stoecker <opensuse@dstoecker.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |UPSTREAM --- Comment #2 from Dirk Stoecker <opensuse@dstoecker.de> --- That's an upstream bug not a packaging issue. Please report it upstream to the project at http://www.minetest.net/ or https://github.com/minetest/minetest/issues Probably architecture related. Works for me on x86_64. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c3 Frank Kunz <mailinglists@kunz-im-inter.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|UPSTREAM |--- --- Comment #3 from Frank Kunz <mailinglists@kunz-im-inter.net> --- I tried to build a version without obs to prepare a bug report upstream. But with that build the binary works. The issue is only reproducible with an obs build. I copied the build parameters from the obs build log to run this build commands manually: cmake '-GUnix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_LIBEXECDIR=/usr/libexec -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_C_FLAGS=-mbranch-protection=standard -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG' '-DCMAKE_CXX_FLAGS=-mbranch-protection=standard -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG' '-DCMAKE_Fortran_FLAGS=-mbranch-protection=standard -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG' '-DCMAKE_EXE_LINKER_FLAGS=-flto=auto -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' '-DCMAKE_MODULE_LINKER_FLAGS=-flto=auto -Wl,--as-needed' '-DCMAKE_SHARED_LINKER_FLAGS=-flto=auto -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DCMAKE_COLOR_MAKEFILE:BOOL=OFF -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_MODULES_INSTALL_DIR=/usr/lib64/cmake/minetest -DCUSTOM_DOCDIR=/usr/share/doc/packages/minetest -DCUSTOM_LOCALEDIR=/usr/share/locale -DCUSTOM_SHAREDIR=/usr/share/minetest -DBUILD_SERVER=ON -DRUN_IN_PLACE=OFF -DENABLE_GETTEXT=ON -DENABLE_FREETYPE=ON -DENABLE_SYSTEM_JSONCPP=ON -DBUILD_CLIENT=FALSE -DPNG_PNG_INCLUDE_DIR=/usr/include/libpng16 -DENABLE_SPATIAL=ON -DENABLE_LEVELDB=ON -DENABLE_REDIS=ON -DENABLE_POSTGRESQL=ON make -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c4 --- Comment #4 from Dirk Stoecker <opensuse@dstoecker.de> --- Hmm, still an upstream issue, but harder to describe to them. I have no aarch system, so I can't help directly. My suggestion would be: * branch the package to your home * cause build of debugsource and debuginfo packages (%debug_package macro) * install all three * start in gdb, some useful commands: * use "up" command until you're inside the program code * there is also a command to show the full call stack) * "p variable" to print variable, "p *variable" to print pointer contents * you should get information about the place where the program crashs * If that happens, but is little helpful try adding "-O0" to CFLAGS * check if it still crashs - if it does, gdb output should be more to the point. If this helps to find the issue provide a patch, if not please share the details you find, maybe I can help to get the reason. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c5 --- Comment #5 from Ferdinand Thiessen <rpm@fthiessen.de> --- But could also be an issue with some library we link dynamically and the other build liked statically (or something like that). But I have no hardware (or time to build a virtual aarch64 machine) to debug this. Is there any output before crashing? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c6 --- Comment #6 from Frank Kunz <mailinglists@kunz-im-inter.net> --- Here the gdb backtrace with optimisation: https://paste.opensuse.org/91476683 Here the gdb backtrace without optimisation: https://paste.opensuse.org/28271205 I did also a test by adding a "return 0;" at the beginning of main(). This does also crash, the main() function is not reached at all. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c7 --- Comment #7 from Dirk Stoecker <opensuse@dstoecker.de> --- Whoa, that's really a deeply hidden bug. The fact that it crashed before main indicates that the issue is somewhere in a constructor of a global class instance (or some other global initialization). sqlite3_bind_text indicates that it's somehow related to the sqlite3 functionality. But why there is no other class function call in the stack trace is a bit strange. Probably optimized away. I find 7 occurrences of sqlite3_bind_text(), but none of these look like it could be the immediate source of this problem. If have only two ideas: * For your local compiled version - did you have the same sqlite3-devel version installed on your systems as for the build? * If you use -O0 do you get the same error, but with a somewhat longer stacktrace? This should do the trick before the cmake call: export CFLAGS="%{optflags} -O0" -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c8 --- Comment #8 from Frank Kunz <mailinglists@kunz-im-inter.net> --- I checked the versions of the sqlite3-devel and it is the same for the obs build as well as on my local build. Also trying a build with optimizsation off and debug symbols does not give a better stacktrace. I compiled with -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_FLAGS_DEBUG="-g -O0" -DCMAKE_CXX_FLAGS_DEBUG="-g -O0". The result file is unstripped with debug: minetestserver: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=bec535578f513c2d48d095e6098c900efb7c0459, for GNU/Linux 3.7.0, with debug_info, not stripped -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c9 --- Comment #9 from Dirk Stoecker <opensuse@dstoecker.de> --- * If you use -O0 do you get the same error, but with a somewhat longer stacktrace? This should do the trick before the cmake call: export CFLAGS="%{optflags} -O0" Can you try that? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c10 Dirk Stoecker <opensuse@dstoecker.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |NORESPONSE --- Comment #10 from Dirk Stoecker <opensuse@dstoecker.de> --- No response. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c11 Frank Kunz <mailinglists@kunz-im-inter.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|NORESPONSE |WORKSFORME --- Comment #11 from Frank Kunz <mailinglists@kunz-im-inter.net> --- Sorry for the late response, I tried export CFLAGS="%{optflags} -O0", but that does not give a more detailed stack print. By doing dome try and error session I found that adding export CXXFLAGS="%{optflags} -mbranch-protection=none" just before the cmake call fixes the issue. I have verifed it with this modified build: https://build.opensuse.org/package/show/home:frank_kunz:branches:games/minet... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c12 Dmitriy Perlow <dap.darkness@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |FIXED Flags|needinfo?(mailinglists@kunz | |-im-inter.net) | --- Comment #12 from Dmitriy Perlow <dap.darkness@gmail.com> --- Hi. Made a sr: https://build.opensuse.org/request/show/995083 Please consider to make it yourself the next time ;) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c13 --- Comment #13 from Dmitriy Perlow <dap.darkness@gmail.com> --- Accepted to Factory. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193141 http://bugzilla.opensuse.org/show_bug.cgi?id=1193141#c14 --- Comment #14 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1193141) was mentioned in https://build.opensuse.org/request/show/998676 Backports:SLE-15-SP3+Backports:SLE-15-SP4 / minetest -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com