[Freeciv-Dev] [bug #25197] Segmentation fault in send_ruleset_control

2016-10-18 Thread Andreas Røsdal
Update of bug #25197 (project freeciv):

  Status:None => Invalid
 Open/Closed:Open => Closed 

___

Follow-up Comment #2:

I think I understand this problem now. Some Freeciv-web savegames became
corrupted because of a change I did to the Freeciv-web savegame handling a
couple of days ago. I have fixed the savegame issue in Freeciv-web now. I will
create a separate bugreport to request that the Freeciv C server validates
savegames before loading them.

___

Reply to this item at:

  

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


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


[Freeciv-Dev] [bug #25197] Segmentation fault in send_ruleset_control

2016-10-18 Thread Sveinung Kvilhaugsvik
Follow-up Comment #1, bug #25197 (project freeciv):

Looks like a save game loading failure is causing bug #24848. This could mean
that something is wrong in the savegame loading code, the game saving code, a
bundled scenario, the save game compatibility code or in something else that
produces save games Freeciv-web will try to load (map from OpenStreetMap etc).
I don't think this is a user modified save game. Last time I checked
Freeciv-web won't load a user uploaded save game unless its hash is in its
data base.



___

Reply to this item at:

  

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


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


[Freeciv-Dev] [bug #25197] Segmentation fault in send_ruleset_control

2016-10-17 Thread Andreas Røsdal
URL:
  

 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 , n=1466)
at ./strncpy.c:41
41  ./strncpy.c: No such file or directory.
(gdb) bt full
#0  __strncpy_sse2 (s1=0x7fffbcf2821f "", s2=0x1 , n=1466)
at ./strncpy.c:41
n4 = 366
c = 
s = 0x7fffbcf28220 "\377\377\377\377\377\377\377\377\r"
#1  0x0048625c in send_ruleset_control ()
No symbol table info available.
#2  0x0049966f in send_rulesets ()
No symbol table info available.
#3  0x00419a5c in load_command ()
No symbol table info available.
#4  0x0041bac0 in handle_stdin_input_real ()
No symbol table info available.
#5  0x004e2940 in handle_chat_msg_req ()
No symbol table info available.
#6  0x004739e8 in server_handle_packet ()
No symbol table info available.
#7  0x0040c534 in server_packet_input ()
No symbol table info available.
#8  0x004c3d9e in server_sniff_all_input ()
No symbol table info available.
#9  0x0040efdb in srv_main ()
No symbol table info available.
#10 0x0040713e in main ()
No symbol table info available.





___

Reply to this item at:

  

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


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