Page 1 of 1

0.13 headless --allow-commands admins-only cause crash on /c

Posted: Wed Jun 29, 2016 12:26 am
by ezoe
"--allow-commands admins-only" option cause program crash when use console command /c via standard input.

How to reproduce issue

1. Run 0.13 headless server with option " --allow-commands admins-only"
2. write "/c print(0)" to standard input

Expected:
Be processed as a console commands.

What actually happens.
Program crashes with following log:

/c print(0)
24.795 Error CrashHandler.cpp:183: Received SIGSEGV
sh: 1: addr2line: not found
24.806 Warning Logger.cpp:356: Couldn't symbolize stacktrace: (resolving symbol failed: fread)

Factorio crashed. Generating symbolized stacktrace, please wait ...
sh: 1: addr2line: not found
24.817 Warning Logger.cpp:356: Couldn't symbolize stacktrace: (resolving symbol failed: fread)

#0 0x805a7b
#1 0x805cf4
#2 0x7f94eb77e4a0
#3 0xb02909
#4 0xafec73
#5 0x983906
#6 0x48725c
#7 0x487328
#8 0xbe96f0
#9 0xc05c67
#10 0xc0d564
#11 0xc79f0e
#12 0x7f94eb769830
#13 0x406329
24.817 Error CrashHandler.cpp:85: Map tick at moment of crash: 95790
24.817 Error Util.cpp:77: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.

Re: 0.13 headless --allow-commands admins-only cause crash on /c

Posted: Wed Jun 29, 2016 11:40 am
by ezoe
Still reproduced in 0.13.1.

Re: 0.13 headless --allow-commands admins-only cause crash on /c

Posted: Wed Jun 29, 2016 12:18 pm
by Oxyd
Fixed in 0.13.2.

Re: 0.13 headless --allow-commands admins-only cause crash on /c

Posted: Fri Jul 01, 2016 3:06 pm
by provet
I know this question does not belong here but.. Where are admin rights explained to the headless server? (assuming the admin uses the commands from in-game)