Server segfaults on exit if server_log.txt is readonly
#1

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)