URL:
  <http://gna.org/bugs/?25197>

                 Summary: Segmentation fault in send_ruleset_control
                 Project: Freeciv
            Submitted by: andreasr
            Submitted on: Tue 18 Oct 2016 05:50:38 AM UTC
                Category: general
                Severity: 4 - Important
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 
 Contains string changes: None

    _______________________________________________________

Details:

Segmentation fault in Freeciv-web, in the Freeciv C server.
SVN revision 34115. The crash occurs in about 2% of games.

Backtrace from core-dump:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/freeciv/freeciv/bin/freeciv-web --debug=1 --port
6022 -q 20 --Announce no'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __strncpy_sse2 (s1=0x7fffbcf2821f "", s2=0x1 <error: Cannot access memory
at address 0x1>, n=1466)
    at ./strncpy.c:41
41      ./strncpy.c: No such file or directory.
(gdb) bt full
#0  __strncpy_sse2 (s1=0x7fffbcf2821f "", s2=0x1 <error: Cannot access memory
at address 0x1>, n=1466)
    at ./strncpy.c:41
        n4 = 366
        c = <optimized out>
        s = 0x7fffbcf28220 "\377\377\377\377\377\377\377\377\r"
#1  0x000000000048625c in send_ruleset_control ()
No symbol table info available.
#2  0x000000000049966f in send_rulesets ()
No symbol table info available.
#3  0x0000000000419a5c in load_command ()
No symbol table info available.
#4  0x000000000041bac0 in handle_stdin_input_real ()
No symbol table info available.
#5  0x00000000004e2940 in handle_chat_msg_req ()
No symbol table info available.
#6  0x00000000004739e8 in server_handle_packet ()
No symbol table info available.
#7  0x000000000040c534 in server_packet_input ()
No symbol table info available.
#8  0x00000000004c3d9e in server_sniff_all_input ()
No symbol table info available.
#9  0x000000000040efdb in srv_main ()
No symbol table info available.
#10 0x000000000040713e in main ()
No symbol table info available.





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?25197>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to