Subject: bug#10582: better backtrace

From: Ivan Kanis <[email-masked]>
Date: Sun, 01 Apr 2012 12:41:01 +0200

Here is the full backtrace including the exception code and the lisp
backtrace. Let me know what I can do further to identify the problem.

Program received signal SIGPIPE, Broken pipe.
0x0012e416 in __kernel_vsyscall ()

#1  0x010a3523 in __write_nocancel () from /lib/libpthread.so.0
No symbol table info available.
#2  0x0818e0fc in emacs_write (fildes=10, buf=0xa90b91c "QUIT :\002ERC\002 Version 5.3 (IRC client for Emacs)\r\n", nbyte=48)
    at sysdep.c:1932
        rtnval = 139703669
        bytes_written = 0
#3  0x08240a3d in send_process (proc=149853781, buf=0xa90b91c "QUIT :\002ERC\002 Version 5.3 (IRC client for Emacs)\r\n", 
    len=48, object=164449753) at process.c:5538
        written = 0
        outfd = 10
        this = 48
        p = 0x8ee9650
        rv = 139059402
        coding = 0x8ee9928
        gcpro1 = {
          next = 0x8202e58, 
          var = 0x84a83c8, 
          nvars = 139100074
        }
        old_sigpipe = 0x1
#4  0x08240e9f in Fprocess_send_string (process=149853781, string=164449753) at process.c:5679
        proc = 149853781
#5  0x081f5f29 in Ffuncall (nargs=3, args=0xbfffcd50) at eval.c:3005
        fun = 138667501
        original_fun = 139154658
        funcar = 149199362
        numargs = 2
        lisp_numargs = -1073754824
        val = 139059402
        backtrace = {
          next = 0xbfffcfd0, 
          function = 0xbfffcd50, 
          args = 0xbfffcd54, 
          nargs = 2, 
          debug_on_exit = 0
        }
        internal_args = 0xbfffcd54
        i = 1
#6  0x0823522c in exec_byte_code (bytestr=148950977, vector=148484469, maxdepth=16, args_template=139059402, nargs=0, 
    args=0x0) at bytecode.c:785
        count = 21
        op = 2
        vectorp = 0x8d9b178
        stack = {
          pc = 0x8ea221c "\207", 
          byte_string = 148950977, 
          byte_string_start = 0x8ea220c "\303\304!\203\f", 
          constants = 148484469, 
          next = 0xbfffd1cc
        }
        top = 0xbfffcd50
        result = 139059402
#7  0x08234a33 in Fbyte_code (bytestr=148950977, vector=148484469, maxdepth=16) at bytecode.c:423
No locals.
#8  0x081f4d37 in eval_sub (form=148914638) at eval.c:2356
        numargs = 12
        args_left = 139059402
        i = 136530427
        maxargs = 3
        argvals = {148950977, 148484469, 16, 139183888, -1073754128, 139674582, -1073754120, 136173315}
        fun = 138666589
        val = 0
        original_fun = 139138282
        original_args = 148914630
        funcar = 0
        backtrace = {
          next = 0xbfffd43c, 
          function = 0xbfffd030, 
          args = 0xbfffcfb0, 
          nargs = 3, 
          debug_on_exit = 0
        }
        gcpro1 = {
          next = 0x849e0ca, 
          var = 0x84bc712, 
          nvars = 148300102
        }
        gcpro2 = {
          next = 0x2, 
          var = 0x9be49c8, 
          nvars = -1073754056
        }
        gcpro3 = {
          next = 0x0, 
          var = 0xbfffcfb0, 
          nvars = 3
        }
#9  0x081f359f in internal_lisp_condition_case (var=139429466, bodyform=148914638, handlers=148914606) at eval.c:1469
        val = 139059402
        c = {
          tag = 139059402, 
          val = 139059402, 
          next = 0xbfffeb30, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {320, 139059426, -1073746364, -1073753752, -91669873, 994309088}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {139059402, 149009238, 320, 139059426, 3221213544, 136274221, 149198573, 0, 3221213572, 136273672, 
                  149853781, 3, 2621440000, 1104403979, 149269970, 149810646, 0, 1074266112, 137190200, 0, 3221213512, 
                  136184922, 0, 0, 2, 3221213568, 2, 3221213568, 3221213512, 3221214268, 3221213568, 3221213572}
              }
            }}, 
          backlist = 0xbfffd43c, 
          handlerlist = 0xbfffebf8, 
          lisp_eval_depth = 9, 
          pdlcount = 21, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0xbfffd1cc
        }
        h = {
          handler = 148914606, 
          var = 139429466, 
          chosen_clause = 1624030464, 
          tag = 0xbfffd07c, 
          next = 0xbfffebf8
        }
#10 0x08235cef in exec_byte_code (bytestr=148950657, vector=148154157, maxdepth=28, args_template=139059402, nargs=0, 
    args=0x0) at bytecode.c:981
        handlers = 148914606
        body = 148914638
        count = 17
        op = 143
        vectorp = 0x8d4a730
        stack = {
          pc = 0x8ea21c4 "\210*\202\031", 
          byte_string = 148950657, 
          byte_string_start = 0x8ea2164 "r\bq\210\306 \031\n\203\021", 
          constants = 148154157, 
          next = 0xbfffd4ec
        }
        top = 0xbfffd180
        result = 48
#11 0x081f6830 in funcall_lambda (fun=148484573, nargs=1, arg_vector=0x849e0ca) at eval.c:3233
        val = 1
        syms_left = 139059402
        next = 139092282
        lexenv = 139059402
        count = 16
        i = 1
        optional = 0
        rest = 0
#12 0x081f612d in Ffuncall (nargs=2, args=0xbfffd4a0) at eval.c:3051
        fun = 148484573
        original_fun = 147329490
        funcar = 148461776
        numargs = 1
        lisp_numargs = -1073752952
        val = 162882310
        backtrace = {
          next = 0xbfffd75c, 
          function = 0xbfffd4a0, 
          args = 0xbfffd4a4, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0x849e0ca
        i = -1073752912
#13 0x0823522c in exec_byte_code (bytestr=148128817, vector=149006541, maxdepth=28, args_template=139059402, nargs=0, 
    args=0x0) at bytecode.c:785
        count = 12
        op = 1
        vectorp = 0x8e1a8d0
        stack = {
          pc = 0x8ea204d "\210*\330)\202i", 
          byte_string = 148128817, 
          byte_string_start = 0x8ea1ff0 "\b\203\017", 
          constants = 149006541, 
          next = 0xbfffd80c
        }
        top = 0xbfffd4a0
        result = 164449801
#14 0x081f6830 in funcall_lambda (fun=147421509, nargs=1, arg_vector=0x849e0ca) at eval.c:3233
        val = 139059402
        syms_left = 139059402
        next = 139609626
        lexenv = 139059402
        count = 9
        i = 1
        optional = 1
        rest = 0
#15 0x081f612d in Ffuncall (nargs=2, args=0xbfffd7c0) at eval.c:3051
        fun = 147421509
        original_fun = 149199458
        funcar = 149038776
        numargs = 1
        lisp_numargs = 28
        val = 164449769
        backtrace = {
          next = 0xbfffda7c, 
          function = 0xbfffd7c0, 
          args = 0xbfffd7c4, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0x849e0ca
        i = 137198241
#16 0x0823522c in exec_byte_code (bytestr=149367945, vector=148280413, maxdepth=20, args_template=139059402, nargs=0, 
    args=0x0) at bytecode.c:785
        count = 9
        op = 1
        vectorp = 0x8d69460
        stack = {
          pc = 0x8eae4d7 "\207", 
          byte_string = 149367945, 
          byte_string_start = 0x8eae4c8 "\302 \205\017", 
          constants = 148280413, 
          next = 0xbfffdc7c
        }
        top = 0xbfffd7c0
        result = 139059426
#17 0x081f6830 in funcall_lambda (fun=148280557, nargs=0, arg_vector=0x849e0ca) at eval.c:3233
        val = 139059426
        syms_left = 139059402
        next = 139092282
        lexenv = 139059402
        count = 9
        i = 0
        optional = 0
        rest = 0
#18 0x081f612d in Ffuncall (nargs=1, args=0xbfffdb6c) at eval.c:3051
        fun = 148280557
        original_fun = 147863218
        funcar = 28
        numargs = 0
        lisp_numargs = -1073751368
        val = 139059426
        backtrace = {
          next = 0xbfffdbdc, 
          function = 0xbfffdb6c, 
          args = 0xbfffdb70, 
          nargs = 0, 
          debug_on_exit = 0
        }
        internal_args = 0x849e0ca
        i = -1073751168
#19 0x081f54da in funcall_nil (nargs=1, args=0xbfffdb6c) at eval.c:2519
No locals.
#20 0x081f57d2 in run_hook_with_args (nargs=1, args=0xbfffdb6c, funcall=0x81f54c2 <funcall_nil>) at eval.c:2708
        global_vals = 139059402
        sym = 147863194
        val = 148852678
        ret = 139059402
        gcpro1 = {
          next = 0x8dc3d15, 
          var = 0x8, 
          nvars = 139059402
        }
        gcpro2 = {
          next = 0xbfffdb78, 
          var = 0x81f6845, 
          nvars = 9
        }
        gcpro3 = {
          next = 0x849e0ca, 
          var = 0x84a5f12, 
          nvars = 139059402
        }
#21 0x081f5519 in Frun_hooks (nargs=1, args=0xbfffdc44) at eval.c:2546
        hook = {147863218}
        i = 0
#22 0x081f5e31 in Ffuncall (nargs=2, args=0xbfffdc40) at eval.c:2984
        fun = 138661885
        original_fun = 139129386
        funcar = 139134850
        numargs = 1
        lisp_numargs = -1073751000
        val = 148651285
        backtrace = {
          next = 0xbfffdeec, 
          function = 0xbfffdc40, 
          args = 0xbfffdc44, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0x849e0ca
        i = 139059378
#23 0x0823522c in exec_byte_code (bytestr=149367721, vector=148280197, maxdepth=8, args_template=139059402, nargs=0, args=0x0)
    at bytecode.c:785
        count = 9
        op = 1
        vectorp = 0x8d69388
        stack = {
          pc = 0x8eae4b3 "\207\306\307 !\203\037", 
          byte_string = 149367721, 
          byte_string_start = 0x8eae4a0 "\b\301=\205\"", 
          constants = 148280197, 
          next = 0xbfffe14c
        }
        top = 0xbfffdc40
        result = 139059402
#24 0x081f6830 in funcall_lambda (fun=148280349, nargs=0, arg_vector=0x849e0ca) at eval.c:3233
        val = 139059402
        syms_left = 139059402
        next = 139059402
        lexenv = 139059402
        count = 9
        i = 0
        optional = 0
        rest = 0
#25 0x081f612d in Ffuncall (nargs=1, args=0xbfffdfdc) at eval.c:3051
        fun = 148280349
        original_fun = 147863170
        funcar = 162882230
        numargs = 0
        lisp_numargs = 0
        val = 139059402
        backtrace = {
          next = 0xbfffe0ac, 
          function = 0xbfffdfdc, 
          args = 0xbfffdfe0, 
          nargs = 0, 
          debug_on_exit = 0
        }
        internal_args = 0x8dc3d10
        i = 139059666
#26 0x081f54da in funcall_nil (nargs=1, args=0xbfffdfdc) at eval.c:2519
No locals.
#27 0x081f57d2 in run_hook_with_args (nargs=1, args=0xbfffdfdc, funcall=0x81f54c2 <funcall_nil>) at eval.c:2708
        global_vals = 139059402
        sym = 139059666
        val = 148843094
        ret = 139059402
        gcpro1 = {
          next = 0x9b562d6, 
          var = 0xbfffdfb8, 
          nvars = 136203030
        }
        gcpro2 = {
          next = 0xbfffdfc8, 
          var = 0x8193240, 
          nvars = 139183890
        }
        gcpro3 = {
          next = 0x849e0e2, 
          var = 0x979db6b, 
          nvars = 139059402
        }
#28 0x081f5519 in Frun_hooks (nargs=1, args=0x8482338) at eval.c:2546
        hook = {147863170}
        i = 0
#29 0x08192a0d in Fkill_buffer (buffer_or_name=148651285) at buffer.c:1502
        count = 8
        arglist = {139134066}
        buffer = 148651285
        b = 0x8dc3d10
        tem = 139059426
        m = 0x849e0e2
        gcpro1 = {
          next = 0x0, 
          var = 0xbfffe028, 
          nvars = 136037649
        }
#30 0x081f5f08 in Ffuncall (nargs=2, args=0xbfffe110) at eval.c:3002
        fun = 137026109
        original_fun = 139137618
        funcar = 0
        numargs = 1
        lisp_numargs = 0
        val = 146987218
        backtrace = {
          next = 0xbfffe3bc, 
          function = 0xbfffe110, 
          args = 0xbfffe114, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0xbfffe114
        i = 1
#31 0x0823522c in exec_byte_code (bytestr=145856513, vector=146694253, maxdepth=16, args_template=139059402, nargs=0, 
    args=0x0) at bytecode.c:785
        count = 6
        op = 1
        vectorp = 0x8be6070
        stack = {
          pc = 0x8c1ea52 "\210\tA\211\021\204\023", 
          byte_string = 145856513, 
          byte_string_start = 0x8c1ea30 "\302\303!\205,", 
          constants = 146694253, 
          next = 0xbfffe45c
        }
        top = 0xbfffe110
        result = 139059402
#32 0x081f6830 in funcall_lambda (fun=146694309, nargs=0, arg_vector=0x849e0ca) at eval.c:3233
        val = 139059402
        syms_left = 139059402
        next = 139245562
        lexenv = 139059402
        count = 6
        i = 0
        optional = 0
        rest = 0
#33 0x081f612d in Ffuncall (nargs=1, args=0xbfffe420) at eval.c:3051
        fun = 146694309
        original_fun = 143098970
        funcar = 12
        numargs = 0
        lisp_numargs = 1
        val = 139059402
        backtrace = {
          next = 0xbfffe6cc, 
          function = 0xbfffe420, 
          args = 0xbfffe424, 
          nargs = 0, 
          debug_on_exit = 0
        }
        internal_args = 0x849e0ca
        i = 13636
#34 0x0823522c in exec_byte_code (bytestr=140159681, vector=143100733, maxdepth=16, args_template=139059402, nargs=0, 
    args=0x0) at bytecode.c:785
        count = 6
        op = 0
        vectorp = 0x8878b40
        stack = {
          pc = 0x8840363 "\210\304\310!\203\035", 
          byte_string = 140159681, 
          byte_string_start = 0x8840350 "\302\b\303\"\210\304\305!\203\016", 
          constants = 143100733, 
          next = 0x0
        }
        top = 0xbfffe420
        result = -1073748440
#35 0x081f6830 in funcall_lambda (fun=143099885, nargs=1, arg_vector=0x849e0ca) at eval.c:3233
        val = 0
        syms_left = 139059402
        next = 139280514
        lexenv = 139059402
        count = 5
        i = 1
        optional = 1
        rest = 0
#36 0x081f612d in Ffuncall (nargs=2, args=0xbfffe780) at eval.c:3051
        fun = 143099885
        original_fun = 143098898
        funcar = 135732892
        numargs = 1
        lisp_numargs = -1073748200
        val = -1073746364
        backtrace = {
          next = 0xbfffe96c, 
          function = 0xbfffe780, 
          args = 0xbfffe784, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0xbfffe9d4
        i = 136247142
#37 0x081f12fc in Fcall_interactively (function=143098898, record_flag=139059402, keys=139087581) at callint.c:852
        val = 0
        args = 0xbfffe780
        visargs = 0xbfffe760
        specs = 140159473
        filter_specs = 140159473
        teml = 0
        up_event = 139059402
        enable = 139059402
        speccount = 3
        next_event = 2
        prefix_arg = 139059402
        string = 0xbfffe7a0 "P"
        tem = 0x82a0b24 ""
        varies = 0xbfffe740 ""
        i = 2
        nargs = 2
        foo = 0
        arg_from_tty = 0
        gcpro1 = {
          next = 0x2000, 
          var = 0x0, 
          nvars = 0
        }
        gcpro2 = {
          next = 0xbfffef60, 
          var = 0xbfffee44, 
          nvars = -1073747864
        }
        gcpro3 = {
          next = 0x84d6fa0, 
          var = 0x849e0ca, 
          nvars = 2
        }
        gcpro4 = {
          next = 0xbfffe708, 
          var = 0x81dd6b3, 
          nvars = 2
        }
        gcpro5 = {
          next = 0x8e6d8b2, 
          var = 0xbfffe600, 
          nvars = 139059402
        }
        key_count = 2
        record_then_fail = 0
        save_this_command = 143098898
        save_last_command = 141353530
        save_this_original_command = 143098898
        save_real_this_command = 143098898
#38 0x081f5f53 in Ffuncall (nargs=4, args=0xbfffe9d0) at eval.c:3009
        fun = 138661093
        original_fun = 139138474
        funcar = 0
        numargs = 3
        lisp_numargs = 0
        val = 0
        backtrace = {
          next = 0x0, 
          function = 0xbfffe9d0, 
          args = 0xbfffe9d4, 
          nargs = 3, 
          debug_on_exit = 0
        }
        internal_args = 0xbfffe9d4
        i = 0
#39 0x081f5955 in call3 (fn=139138474, arg1=143098898, arg2=139059402, arg3=139059402) at eval.c:2802
        ret_ungc_val = 143099885
        gcpro1 = {
          next = 0xbba30fe, 
          var = 0x84a41d2, 
          nvars = 4
        }
        args = {139138474, 143098898, 139059402, 139059402}
#40 0x08181056 in Fcommand_execute (cmd=143098898, record_flag=139059402, keys=139059402, special=139059402)
    at keyboard.c:10330
        final = 143099885
        tem = 139059402
        prefixarg = 139059402
#41 0x08172bfa in command_loop_1 () at keyboard.c:1572
        scount = 2
        cmd = 143098898
        keybuf = {96, 68, 432, 139059402, 139059402, 137037113, 139090506, 1624030464, 134545255, -1208095424, -1073747272, 
          135733666, 171345286, 139059426, -1073747229, 139059402, 139573010, 173979777, 137311165, 141310408, 41, 0, 
          -1073747176, 135733223, 171345286, -1073747229, -1073747208, 136267767, 2, 173979777}
        i = 2
        prev_modiff = 1122
        prev_buffer = 0x9080900
        already_adjusted = 0
#42 0x081f3693 in internal_condition_case (bfun=0x817252d <command_loop_1>, handlers=139090482, hfun=0x8171eee <cmd_error>)
    at eval.c:1515
        val = 173979777
        c = {
          tag = 139059402, 
          val = 139059402, 
          next = 0xbfffec58, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {0, -1073746080, -1073746364, -1073746920, -83903857, 994410976}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {0, 0, 21296064, 21290996, 21296064, 0, 3221220368, 3221220296, 3221220308, 21290996, 1235224, 0, 
                  3221159938, 1175776, 134545966, 3086871872, 1232884, 19888620, 41, 3221220068, 1153284, 24466011, 
                  139550336, 24485876, 142652927, 139003616, 3221220612, 19906128, 3086871936, 2, 4294967295, 1232884}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 139090482, 
          var = 139059402, 
          chosen_clause = 139059426, 
          tag = 0xbfffeb30, 
          next = 0x0
        }
#43 0x0817227e in command_loop_2 (ignore=139059402) at keyboard.c:1160
        val = 0
#44 0x081f318f in internal_catch (tag=139088434, func=0x817225a <command_loop_2>, arg=139059402) at eval.c:1272
        c = {
          tag = 139088434, 
          val = 139059402, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {-1073745664, -1073746080, -1073746364, -1073746648, -84837745, 994769888}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {0 <repeats 17 times>, 20326718, 0, 0, 139059402, 3221220648, 136174460, 138675384, 139059402, 
                  139079152, 136610052, 142555276, 3221221632, 138675384, 139079152, 138675384}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#45 0x0817223a in command_loop () at keyboard.c:1139
No locals.
#46 0x08171b27 in recursive_edit_1 () at keyboard.c:759
        count = 1
        val = -1073746504
#47 0x08171c78 in Frecursive_edit () at keyboard.c:823
        count = 0
        buffer = 139059402
#48 0x0817017e in main (argc=1, argv=0xbffff1a4) at emacs.c:1715
        dummy = -1073745672
        stack_bottom_variable = 8 '\b'
        do_initial_setlocale = 1
        skip_args = 0
        rlim = {
          rlim_cur = 8388608, 
          rlim_max = 18446744073709551615
        }
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x0

Lisp Backtrace:
"process-send-string" (0xbfffcd54)
"byte-code" (0xbfffcfb0)
"erc-server-send-queue" (0xbfffd4a4)
"erc-server-send" (0xbfffd7c4)
"erc-kill-server" (0xbfffdb70)
"run-hooks" (0xbfffdc44)
"erc-kill-buffer-function" (0xbfffdfe0)
"kill-buffer" (0xbfffe114)
"ivan-erc-stop" (0xbfffe424)
"ivan-fun-kill-emacs" (0xbfffe784)
"call-interactively" (0xbfffe9d4)

-- 
Ivan Kanis
http://ivan.kanis.fr

People are like stained-glass windows. They sparkle and shine when the
sun is out, but when the darkness sets in, their true beauty is
revealed only if there is a light from within.
    -- Elizabeth Kubler-Ross