[MDEV-16495] mariadb segfaults at start on FreeBSD Created: 2018-06-15  Updated: 2018-08-12  Resolved: 2018-08-12

Status: Closed
Project: MariaDB Server
Component/s: Platform FreeBSD
Affects Version/s: 10.3.7, 10.3.8
Fix Version/s: 10.3.9

Type: Bug Priority: Major
Reporter: sippanson bernt Assignee: Sergei Golubchik
Resolution: Fixed Votes: 2
Labels: None
Environment:

FreeBSD



 Description   

mariadb 10.3.7 crashes straight away on freebsd, doesnt matter if upgrading from 10.2 or starting fresh. I dont get any output to logs either.
FreeBSD version for me is 11.1, ive also tested on another computer with same results.
And then add alot of users on #freebsd who had the same issue.

here is output from truss
https://pastebin.com/bkTRnWMh

to reproduce just install mariadb10.3 from ports (pkg install mariadb103-server)
and /usr/local/etc/rc.d/mysql-server onestart



 Comments   
Comment by Bernard Spil [ 2018-07-02 ]

Hi,

As maintainer of the FreeBSD port, I've just updated the port to 10.3.8. This included removal of almost all the patches of source files that we have on FreeBSD, these were carried over from earlier versions.

Help would be greatly appreciated. A copy of the new 10.3.8 port can be found in my personal ports WIP repository on GitHub.

Thanks, Bernard

Comment by Bernard Spil [ 2018-07-02 ]

Stripped the port down to the bare essentials (removing all CMakeLists patching) and configured with following command
{{

{ cmake -DINSTALL_DOCDIR="share/doc/mysql" -DINSTALL_DOCREADMEDIR="share/doc/mysql" -DINSTALL_INCLUDEDIR="include/mysql" -DINSTALL_INFODIR="info" -DINSTALL_LIBDIR="lib/mysql" -DINSTALL_MANDIR="man" -DINSTALL_MYSQLDATADIR="/var/db/mysql" -DINSTALL_MYSQLSHAREDIR="share/mysql" -DINSTALL_MYSQLTESTDIR= -DINSTALL_PLUGINDIR="lib/mysql/plugin" -DINSTALL_SBINDIR="libexec" -DINSTALL_SCRIPTDIR="bin" -DINSTALL_SHAREDIR="share" -DINSTALL_SQLBENCHDIR= -DINSTALL_SUPPORTFILESDIR="share/mysql" -DDEFAULT_SYSCONFDIR="/usr/local/etc" -DWITH_JEMALLOC="system" -DWITH_LIBWRAP=1 -DWITH_SSL="/usr" -DWITH_UNIT_TESTS=0 -DWITHOUT_DOCS=1 -DCURSES_CURSES_LIBRARY="/usr/lib/libcurses.so" -DCURSES_FORM_LIBRARY="/usr/lib/libform.so" -DCURSES_CURSES_LIBRARY="/usr/lib/libncurses.so" -DICONV_LIBRARIES="/usr/local/lib/libiconv.so" -DKRB5_CONFIG="/usr/bin/krb5-config" -DCURSES_NCURSES_LIBRARY="/usr/lib/libncurses.so" -DOPENSSL_ROOT_DIR="/usr" -DOPENSSL_CRYPTO_LIBRARY="/usr/lib/libcrypto.so" -DOPENSSL_SSL_LIBRARY="/usr/lib/libssl.so" -DREMOTEIO_PLUGIN_TYPE="NO" -DCOMPILATION_COMMENT="FreeBSD Ports" -DCMAKE_PREFIX_PATH=/usr/local -DWITH_EMBEDDED_SERVER="ON" -DPLUGIN_AUTH_GSSAPI_CLIENT=OFF -DCMAKE_SKIP_BUILD_RPATH:BOOL=YES -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITHOUT_CLIENT=1 -DWITH_WSREP=OFF -DGRN_WITH_LZ4=OFF -DWITH_INNODB_LZ4=OFF -DWITH_ROCKSDB_LZ4=OFF -DWITH_INNODB_LZO=OFF -DWITH_INNODB_SNAPPY=OFF -DWITH_ROCKSDB_snappy=OFF -DPLUGIN_MROONGA=NO -DWITHOUT_MROONGA=1 -DPLUGIN_OQGRAPH=NO -DWITHOUT_OQGRAPH=1 -DPLUGIN_ROCKSDB=NO -DWITHOUT_ROCKSDB=1 -DPLUGIN_SPHINX=NO -DWITHOUT_SPHINX=1 -DPLUGIN_SPIDER=NO -DWITHOUT_SPIDER=1 -DPLUGIN_TOKUDB=NO -DWITHOUT_TOKUDB=1 -DPLUGIN_XTRADB=NO -DWITHOUT_XTRADB=1 -DCMAKE_C_COMPILER:STRING="cc" -DCMAKE_CXX_COMPILER:STRING="c++" -DCMAKE_C_FLAGS:STRING="-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing" -DCMAKE_C_FLAGS_DEBUG:STRING="-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing" -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing" -DCMAKE_CXX_FLAGS:STRING="-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include" -DCMAKE_CXX_FLAGS_DEBUG:STRING="-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include" -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include" -DCMAKE_EXE_LINKER_FLAGS:STRING=" -fstack-protector" -DCMAKE_MODULE_LINKER_FLAGS:STRING=" -fstack-protector" -DCMAKE_SHARED_LINKER_FLAGS:STRING=" -fstack-protector" -DCMAKE_INSTALL_PREFIX:PATH="/usr/local" -DCMAKE_BUILD_TYPE:STRING="Release" -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DICONV_INCLUDE_DIR=/usr/local/include -DICONV_LIBRARIES=/usr/local/lib/libiconv.so -DICONV_LIBRARY=/usr/local/lib/libiconv.so -DLIBICONV_INCLUDE_DIR=/usr/local/include -DLIBICONV_LIBRARIES=/usr/local/lib/libiconv.so -DLIBICONV_LIBRARY=/usr/local/lib/libiconv.so }

}}
results in exactly the same truss output.

Please assist.

Generated at Thu Feb 08 08:29:21 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.