[Circle] [CODE] SIGPIPE, Broken pipe

From: Zbynek Vyskovsky (rat@mail.kolej.mff.cuni.cz)
Date: 11/05/96


 I have problem with Subject. Very often MUD goes down because of SIGPIPE.
I don't know why. Please, help me.

Here is piece of gdb-output:
Program received signal SIGPIPE, broken PIPE
(gdb) #0  0x500179b5 in battle_maxlev ()
#1  0x50084404 in battle_maxlev ()
#2  0x8004296 in write_to_descriptor (desc=23, txt=0xbffff834 "131H > ")
    at comm.c:982
#3  0x80038ef in make_prompt (d=0x8560000) at comm.c:715
#4  0x8002870 in game_loop (mother_desc=5) at comm.c:528
#5  0x8001882 in init_game (port=4000) at comm.c:214
#6  0x80017f0 in main (argc=2, argv=0xbffffd30) at comm.c:186
#7  0x80013a5 in ___crt_dummy__ ()
#8  0xbffffa3c in battle_maxlev ()
#9  0x44394824 in battle_maxlev ()
(gdb) $1 = "gossip\000l\000\000n", '\000' <repeats 16372 times>
(gdb) #1  0x50084404 in battle_maxlev ()
(gdb) $2 = "gossip\000l\000\000n", '\000' <repeats 16372 times>
(gdb) #2  0x8004296 in write_to_descriptor (desc=23, txt=0xbffff834 "131H > ")
    at comm.c:982
982	    if ((bytes_written = write(desc, txt, total)) < 0) {
(gdb) $3 = "gossip\000l\000\000n", '\000' <repeats 16372 times>
(gdb) #3  0x80038ef in make_prompt (d=0x8560000) at comm.c:715
715	    write_to_descriptor(d->descriptor, prompt);
(gdb) $4 = "gossip\000l\000\000n", '\000' <repeats 16372 times>
(gdb) $5 = {descriptor = 23, host = "147.229.130.78", '\000' <repeats 16 times>, 
  bad_pws = 0 '\000', connected = 0, wait = -3, desc_num = 15, 
  login_time = 847192109, showstr_head = 0x0, showstr_point = 0x0, str = 0x0, 
  max_str = 0, mail_to = 0, prompt_mode = 1, 
  inbuf = "\000ie tadstool\r\n\000 SILVER BRACELET\r\n\000ze jsem moc s\e[2~patny???\r\n\000 veci???\r\n\000\000 to ok...\r\n", '\000' <repeats 426 times>, 
  last_input = "wie tadstool\000UM SILVER BRACELET\000t ze jsem moc s[2~patny???\000\000ch veci???\000\000je to ok...", '\000' <repeats 172 times>, 
  small_outbuf = "\000radiel gossips, '", 'L' <repeats 22 times>, "evel'\r\n\000>=-'\r\n\000torch\r\na glinting silver bracelet\r\na scroll of identify\r\na barrel\r\na lantern\r\na bag\r\na barrel\r\na toadstool\r\n\000ze leggings\r\n<worn on feet>      



 a skin boots\r\n"..., output = 0x856034c "", bufptr = 0, 
  bufspace = 1023, large_outbuf = 0x0, input = {head = 0x0, tail = 0x8411240}, 
  character = 0x8561600, original = 0x0, snooping = 0x0, snoop_by = 0x0, 
  next = 0x8539000, edit_mode = 0, edit_number = 0, edit_number2 = 0, 
  edit_zone = 0, misc_data = 0x0, edit_obj = 0x0, edit_room = 0x0}
(gdb) $6 = {pfilepos = 613, nr = 0, in_room = 310, was_in_room = -1, 
  was_battle = 304, excess_dam = 0, excess_hit = 0, excess_hpregen = 0, 
  excess_mpregen = 0, player = {passwd = "Password :-)", 
    name = 0x8549b98 "Sancho", short_descr = 0x0, long_descr = 0x0, 
    description = 0x83ff2d0 "", title = 0x84121c0 "The Prince of True", 
    sex = 1 '\001', class = 3 '\003', level = 10 '\n', hometown = 1, time = {
      birth = 845373069, logon = 847197787, played = 102122}, 
    weight = 165 '', height = 164 ''}, real_abils = {str = 16 '\020', 
    str_add = 0 '\000', intel = 13 '\r', wis = 14 '\016', dex = 16 '\020', 
    con = 14 '\016', cha = 10 '\n'}, aff_abils = {str = 16 '\020', 
    str_add = 0 '\000', intel = 14 '\016', wis = 14 '\016', dex = 16 '\020', 
    con = 14 '\016', cha = 14 '\016'}, points = {mana = 100, max_mana = 100, 
    hit = 131, max_hit = 131, move = 93, max_move = 100, armor = 12, 
    gold = 295, bank_gold = 106258, exp = 38911, hitroll = 0 '\000', 
    damroll = 0 '\000'}, char_specials = {fighting = 0x0, hunting = 0x0, 
    position = 8 '\b', carry_weight = 100, carry_items = 10 '\n', timer = 0, 
    hp_regen = 0, mp_regen = 0, vp_regen = 0, saved = {alignment = 466, 
      idnum = 6365, act = 131136, affected_by = 0, apply_saving_throw = {0, 0, 
        0, -4, 0}}}, player_specials = 0x8561400, mob_specials = {
    last_direction = 0 '\000', attack_type = 0, default_pos = 8 '\b', 
    memory = 0x0, damnodice = 0 '\000', damsizedice = 0 '\000', 
    wait_state = 0}, affected = 0x0, equipment = {0x0, 0x0, 0x0, 0x0, 0x0, 
    0x85c1e00, 0x85c1d80, 0x85c1d00, 0x85c1c80, 0x85c1c00, 0x85c1b80, 
    0x85c1b00, 0x0, 0x0, 0x85c1a00, 0x0, 0x0, 0x0}, carrying = 0x85bbe00, 
  desc = 0x8560000, next_in_room = 0x843ee00, next = 0x85cd800, 
  next_fighting = 0x0, followers = 0x0, master = 0x0, edr_info = 0x0}
(gdb) #4  0x8002870 in game_loop (mother_desc=5) at comm.c:528
528		make_prompt(d);
(gdb) $8 = "gossip\000l\000\000n", '\000' <repeats 16372 times>
(gdb) $9 = {descriptor = 23, host = "147.229.130.78", '\000' <repeats 16 times>, 
 ...
(gdb) #5  0x8001882 in init_game (port=4000) at comm.c:214
214	  game_loop(mother_desc);
(gdb) $10 = "gossip\000l\000\000n", '\000' <repeats 16372 times>
(gdb) Tue Nov  5 12:47:28 GMT 1996
(gdb) 


      Thank for your help.
          Rat,
		rat@mail.kolej.mff.cuni.cz
		http://www.kolej.mff.cuni.cz/~rat



+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST