Server segfaults on exit if server_log.txt is readonly -
xeeZ - 05.01.2015
This is the output from gdb:
Код:
Program received signal SIGSEGV, Segmentation fault.
=> 0xf7cf7c16 <fclose+22>: cmpb $0x0,0x46(%esi)
0xf7cf7c1a <fclose+26>: jne 0xf7cf7da0 <fclose+416>
0xf7cf7c20 <fclose+32>: mov (%esi),%edx
0xf7cf7c22 <fclose+34>: test $0x20,%dh
0xf7cf7c25 <fclose+37>: mov %edx,%ecx
0xffffcd90: 0x08150d15 0x08150d10 0xffffcef8 0xf7eee9df
0xffffcda0: 0x00000000 0x00000000 0x00000000 0x0819f008
0xf7cf7c16 in fclose () from /lib/i386-linux-gnu/libc.so.6
(gdb) bt
#0 0xf7cf7c16 in fclose () from /lib/i386-linux-gnu/libc.so.6
#1 0x080a8925 in ?? ()
#2 0xf7cada83 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#3 0x0804b4d1 in ?? ()
Apparently the server tries to close server_log.txt when shutting down but fails because the file wasn't open.
AW: Server segfaults on exit if server_log.txt is readonly -
Mellnik - 05.01.2015
Nice catch. Another entry on ****** server bug list.
Re: Server segfaults on exit if server_log.txt is readonly -
Sew_Sumi - 06.01.2015
So you expect the server to be able to write to a read-only file
?
Re: Server segfaults on exit if server_log.txt is readonly -
xeeZ - 06.01.2015
No, I'd expect it not to crash. Actually I don't care, just wanted to document this somewhere.
Re: Server segfaults on exit if server_log.txt is readonly -
Sew_Sumi - 06.01.2015
Quote:
Originally Posted by xeeZ
No, I'd expect it not to crash. Actually I don't care, just wanted to document this somewhere.
|
Well, it's pretty stupid to have the server.log file read-only.
Even though it should say that it is read-only, and the server should shut down, it's only through actually setting the file to read-only, that this would happen, and no-one would really do that...
Re: Server segfaults on exit if server_log.txt is readonly -
xeeZ - 07.01.2015
Indeed it's unusual to have a read-only server log, but it could be make so by accident. In fact that's what happened to me a couple of days back - the server was crashing for no apparent reason (no plugins, no anything, just a bare gamemode) and I totally wasn't noticing that until I ran it under gdb.
Re: Server segfaults on exit if server_log.txt is readonly -
Sew_Sumi - 07.01.2015
And this is only on startup? It doesn't get to the point where it loads the gamemode?
Re: Server segfaults on exit if server_log.txt is readonly -
Sew_Sumi - 07.01.2015
Quote:
Originally Posted by Gamer_Z
I do it always on my servers because I'm running everything through my own logging system. So it's common for me :P
|
So you don't use server.log?
How do you pipe it elsewhere?
Re: Server segfaults on exit if server_log.txt is readonly -
TakeiT - 07.01.2015
Quote:
Originally Posted by Sew_Sumi
So you don't use server.log?
How do you pipe it elsewhere?
|
I don't use the server.log either, I use my own mysql based one so i can search with my ACP and delete any entries older than 30 days