Skip to content

Crash on Fedora 28, tarantool 1.9.1-6-g35db70fac #524

Closed
@kmansoft

Description

@kmansoft

tarantool --version

Tarantool 1.9.1-6-g35db70fac
Target: Linux-x86_64-RelWithDebInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BACKTRACE=ON
Compiler: /usr/bin/cc /usr/bin/c++
C_FLAGS:-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -fno-gnu89-inline
CXX_FLAGS:-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c++11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-invalid-offsetof

No crash.

The system is Fedora 28 with testing-updates

$ uname -a
Linux fiona 4.16.9-300.fc28.x86_64 #1 SMP Thu May 17 06:39:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Running a lua file with tarantool also works.

Now:

Just running "tarantool" (with no switches or source file) crashes, core dump:

$ tarantool
Tarantool 1.9.1-6-g35db70fac
type 'help' for interactive help
Segmentation fault (core dumped)

So maybe it crashes when trying to go into an interactive loop.

Stack trace:

$ coredumpctl gdb
           PID: 2073 (tarantool)
           UID: 1000 (kman)
           GID: 1000 (kman)
        Signal: 11 (SEGV)
     Timestamp: Sat 2018-05-19 19:36:03 MSK (16s ago)
  Command Line: tarantool
    Executable: /usr/bin/tarantool
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (kman)
       Boot ID: 62d6f7b3fd094206aee004e118ce300e
    Machine ID: 8c8ee2146deb4a939a0024afb69bbbf7
      Hostname: fiona
       Storage: /var/lib/systemd/coredump/core.tarantool.1000.62d6f7b3fd094206aee004e118ce300e.2073.1526747763000000.lz4
       Message: Process 2073 (tarantool) of user 1000 dumped core.
                
                Stack trace of thread 2073:
                #0  0x00007f9d43614e95 n/a (libtinfo.so.6)
                #1  0x00007f9d43615317 n/a (libtinfo.so.6)
                #2  0x00007f9d43615435 _nc_read_entry2 (libtinfo.so.6)
                #3  0x00007f9d4360e026 _nc_setup_tinfo (libtinfo.so.6)
                #4  0x00007f9d4360e393 _nc_setupterm (libtinfo.so.6)
                #5  0x00007f9d4360e897 tgetent_sp (libtinfo.so.6)
                #6  0x00007f9d43a819bc _rl_init_terminal_io (libreadline.so.7)
                #7  0x00007f9d43a68c89 rl_initialize (libreadline.so.7)
                #8  0x00007f9d43a809c9 _rl_callback_newline (libreadline.so.7)
                #9  0x00000000004b7815 lbox_console_readline (tarantool)
                #10 0x00000000004f1cb7 lj_BC_FUNCC (tarantool)
                #11 0x0000000000503574 lua_pcall (tarantool)
                #12 0x00000000004cb4e1 luaT_call (tarantool)
                #13 0x00000000004c5509 lua_main (tarantool)
                #14 0x00000000004c57df run_script_f (tarantool)
                #15 0x000000000040e46c fiber_cxx_invoke (tarantool)
                #16 0x00000000004d9880 fiber_loop (tarantool)
                #17 0x000000000060566f coro_init (tarantool)

libtinfo comes from:

ncurses-libs-6.1-5.20180224.fc28.x86_64

libreadline comes from:

readline-7.0-10.fc28.x86_64

$ ldd /usr/bin/tarantool
	linux-vdso.so.1 (0x00007ffcda517000)
	libicui18n.so.57 => /lib64/libicui18n.so.57 (0x00007f2c85dc3000)
	libicuuc.so.57 => /lib64/libicuuc.so.57 (0x00007f2c85a15000)
	libyaml-0.so.2 => /lib64/libyaml-0.so.2 (0x00007f2c857f5000)
	libreadline.so.7 => /lib64/libreadline.so.7 (0x00007f2c855a8000)
	libncurses.so.6 => /lib64/libncurses.so.6 (0x00007f2c8537f000)
	libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f2c85152000)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions