[Freeciv-Dev] [bug #14607] Server crash when leaving

2009-10-28 Thread pepeto

Update of bug #14607 (project freeciv):

  Status:  Ready For Test = Fixed  
 Open/Closed:Open = Closed 


___

Reply to this item at:

  http://gna.org/bugs/?14607

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #14607] Server crash when leaving

2009-10-27 Thread pepeto

Update of bug #14607 (project freeciv):

  Status:None = Ready For Test 
 Assigned to:None = pepeto 
 Planned Release:None = 2.2.0  


___

Reply to this item at:

  http://gna.org/bugs/?14607

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #14607] Server crash when leaving

2009-10-26 Thread pepeto

Follow-up Comment #1, bug #14607 (project freeciv):

Attached a patch to ignore the SIGPIPE signal.  I adapted many of Book's
patches for warclient.  If the signal is caught, then fc_writesocket() should
return -1 and the error would be handled in the connection code.

Also, I added that the game is automatically saved with the SIGINT, SIGHUP,
SIGTERM signals like the TODO comment was saying.


(file #7115)
___

Additional Item Attachment:

File name: trunk_S2_2_server_signals.diff Size:3 KB


___

Reply to this item at:

  http://gna.org/bugs/?14607

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #14607] Server crash when leaving

2009-10-25 Thread pepeto

URL:
  http://gna.org/bugs/?14607

 Summary: Server crash when leaving
 Project: Freeciv
Submitted by: pepeto
Submitted on: dimanche 25.10.2009 à 18:51
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: None

___

Details:


Program received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7fbff16cf6f0 (LWP 20344)]
0x7fbff0ecce20 in __write_nocancel () from /lib/libpthread.so.0
(gdb) q
The program is running.  Exit anyway? (y or n) n
Not confirmed.
(gdb) bt
#0  0x7fbff0ecce20 in __write_nocancel () from /lib/libpthread.so.0
#1  0x0050af79 in fc_writesocket (sock=7, buf=0x1d8dd10, size=9)
at netintf.c:159
#2  0x004a2a73 in write_socket_data (pc=0x837c60, buf=0xb21770, 
limit=0) at connection.c:242
#3  0x004a2c53 in flush_connection_send_buffer_all (pc=0x837c60)
at connection.c:279
#4  0x004b001b in send_packet_data (pc=0x837c60, 
data=0x7fff6acaf090 , len=9) at packets.c:147
#5  0x004f626c in send_packet_tile_info_100 (pc=0x837c60, 
force_send=false, packet=0x7fff6acb00f0) at packets_gen.c:3321
#6  0x004577b1 in send_tile_info (dest=0xafcc90, ptile=0x294b380, 
send_unknown=false, force=value optimized out) at maphand.c:439
#7  0x0043c49e in city_map_update_worker (pcity=0x24bf630, 
ptile=0x294b380, city_x=value optimized out, 
city_y=value optimized out) at citytools.c:2286
#8  0x00442c1e in apply_cmresult_to_city (pcity=0x24bf630, 
cmr=0x7fff6acb0210) at cityturn.c:240
#9  0x0044306a in auto_arrange_workers (pcity=0x24bf630)
at cityturn.c:349
#10 0x0043f003 in city_map_update_tile_direct (ptile=0x294e4a0, 
queued=false) at citytools.c:2313
#11 0x00417981 in unit_move_consequences (punit=value optimized
out, 
---Type return to continue, or q return to quit---
src_tile=0x2951680, dst_tile=0x294e4a0, passenger=value optimized out)
at unittools.c:2703
#12 0x0041c1e7 in move_unit (punit=0x2348640, pdesttile=0x294e4a0, 
move_cost=3) at unittools.c:2806
#13 0x0048bfef in unit_move_handling (punit=0x2348640, 
pdesttile=0x294e4a0, igzoc=false, move_diplomat_city=true)
at unithand.c:1404
#14 0x0042a593 in ai_unit_move (punit=0x2348640, ptile=0x294e4a0)
at aitools.c:1074
#15 0x0042a92b in ai_unit_execute_path (punit=0x2348640, 
path=0x23e4290) at aitools.c:223
#16 0x0042b5eb in ai_follow_path (punit=0x2348640, path=0x23e4290, 
ptile=value optimized out) at aitools.c:436
#17 0x0042531d in ai_amphibious_goto_constrained (ferry=0x2348640, 
passenger=0x2344a20, ptile=0x2948140, parameter=value optimized out)
at aiferry.c:550
#18 0x00425543 in aiferry_goto_amphibious (ferry=0x2348640, 
passenger=0x2344a20, ptile=0x2948140) at aiferry.c:619
#19 0x00425f07 in aiferry_gobyboat (pplayer=0x8e1e70,
punit=0x2344a20, 
dest_tile=0x2948140) at aiferry.c:744
#20 0x0042be8b in ai_gothere (pplayer=0x8e1e70, punit=0x2344a20, 
dest_tile=0x2948140) at aitools.c:335
#21 0x004305f5 in ai_military_attack (pplayer=0x8e1e70, 
---Type return to continue, or q return to quit---
punit=0x2344a20) at aiunit.c:1769
#22 0x00430e8f in ai_manage_military (pplayer=0x8e1e70, 
punit=0x2344a20) at aiunit.c:2092
#23 0x004320d0 in ai_manage_unit (pplayer=0x8e1e70, punit=0x2344a20)
at aiunit.c:2275
#24 0x004247d9 in ai_manage_ferryboat (pplayer=0x8e1e70, 
punit=0x2348640) at aiferry.c:1018
#25 0x00431f47 in ai_manage_unit (pplayer=0x8e1e70, punit=0x2348640)
at aiunit.c:2256
#26 0x004330f7 in ai_manage_units (pplayer=0x8e1e70) at
aiunit.c:2381
#27 0x004234e9 in ai_do_first_activities (pplayer=0x8e1e70)
at aihand.c:436
#28 0x0040b095 in srv_main () at srv_main.c:649
#29 0x00404286 in main (argc=3, argv=0x7fff6acb11b8) at
civserver.c:296
(gdb) bt full
#0  0x7fbff0ecce20 in __write_nocancel () from /lib/libpthread.so.0
No symbol table info available.
#1  0x0050af79 in fc_writesocket (sock=7, buf=0x1d8dd10, size=9)
at netintf.c:159
No locals.
#2  0x004a2a73 in write_socket_data (pc=0x837c60, buf=0xb21770, 
limit=0) at connection.c:242
writefs = {fds_bits = {128, 0 repeats 15 times}}
exceptfs = {fds_bits = {0 repeats 16 times}}
tv = {tv_sec = 0, tv_usec = 0}
start = 30989584
nput = value optimized out
nblock = 9
#3  0x004a2c53 in flush_connection_send_buffer_all (pc=0x837c60)
at connection.c:279
No locals.
#4