Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on FreeBSD #2170

Closed
2 tasks done
securmk opened this issue Feb 12, 2017 · 3 comments
Closed
2 tasks done

Segmentation fault on FreeBSD #2170

securmk opened this issue Feb 12, 2017 · 3 comments
Labels
needs-triage Needs testing with screenshot/video confirmation

Comments

@securmk
Copy link

securmk commented Feb 12, 2017

Before creating an issue, please ensure:

  • This is a bug in the software that resides in this repository, and not a
    support matter (use https://otland.net/forums/support.16/ for support)
  • This issue is reproducible without changes to the code in this repository

Steps to reproduce (include any configuration/script required to reproduce)

  1. Download source from GitHub repository.
  2. Compile on FreeBSD system.
  3. Run on FreeBSD system.

Expected behavior

The server runs as it should.

Actual behavior

Segmentation fault (core dumped).

Environment

Latest version of FreeBSD and official vanilla version of TFS.

Here is the log:

Starting program: /root/gameserver/tfs
(no debugging symbols found)...(no debugging symbols found)...[New LWP 100119]
[New Thread 804416000 (LWP 100119/tfs)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 804416000 (LWP 100119/tfs)]
0x000000000045d8c8 in std::__1::function<void ()(Player&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>::function ()
Current language: auto; currently minimal
#0 0x000000000045d8c8 in std::__1::function<void ()(Player&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>::function ()
#1 0x000000000045a7ee in Commands::Commands ()
#2 0x00000000004ea698 in Game::Game ()
#3 0x00000000007df6e7 in __cxx_global_var_init.13 ()
#4 0x00000000007e2865 in _GLOBAL__sub_I_otserv.cpp ()
#5 0x000000000098c602 in __do_global_ctors_aux ()
#6 0x000000000040a3f6 in _init ()
#7 0x00007fffffffe580 in ?? ()
#8 0x0000000800c75e9d in objlist_call_init (list=,
lockstate=) at /usr/src/libexec/rtld-elf/rtld.c:2535
#9 0x0000000800c754e4 in _rtld (sp=,
exit_proc=, objp=)
at /usr/src/libexec/rtld-elf/rtld.c:690
#10 0x0000000800c735c9 in .text ()
at /usr/src/libexec/rtld-elf/amd64/rtld_start.S:39
#11 0x0000000000000000 in ?? ()

@ranisalt
Copy link
Member

ranisalt commented Feb 12, 2017

On the environment, please mention all related software versions (gcc, lua/luajit, mysql, etc). Also compile in debug mode (cmake -DCMAKE_BUILD_TYPE=Debug) for better crash log.

I see you have something with the Commands class, but it's been removed lately and you should update your sources.

@marksamman
Copy link
Member

There was a crash that only happened on FreeBSD in the past which was because global variables on FreeBSD were initialized in a different order than on other operating systems. It could be something similar here.

@marksamman marksamman added the needs-triage Needs testing with screenshot/video confirmation label Feb 14, 2017
@securmk
Copy link
Author

securmk commented Feb 14, 2017

Error with libs. Solved.

@djarek djarek closed this as completed Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Needs testing with screenshot/video confirmation
Projects
None yet
Development

No branches or pull requests

4 participants