Subject: bug#30182: Update

From: Sujith <[email-masked]>
Date: Sun, 21 Jan 2018 09:25:48 +0530

Eli Zaretskii <[email-masked]> writes:
> Can you provide a backtrace from a non-optimized build, please?

Sorry, internet service problems. :-)

I rebuilt emacs with CFLAGS="O0 -g" and here is the trace:

(gdb) thread apply all bt full

Thread 2 (Thread 0x7fffe79ea700 (LWP 4605)):
#0  0x00007fffefd2391b in poll () at /usr/lib/libc.so.6
#1  0x00007ffff4fe7023 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff4fe713e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff4fe7192 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007ffff500f29a in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007ffff068308c in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fffefd2de1f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7fabb00 (LWP 4601)):
#0  0x0000000000559474 in XSETCAR (c=0x0, n=0x33b6815) at lisp.h:1318
#1  0x0000000000616bf9 in concat (nargs=1, args=0x7fffffffc288, target_type=Lisp_Cons, last_special=false) at fns.c:751
        elt = 0x33b6815
        thislen = 0x5a63f618
        thisleni = 0
        thisindex = 0
        thisindex_byte = 0
        val = 0x3ed42f3
        tail = 0x0
        this = 0x0
        toindex = -1
        toindex_byte = 0
        result_len = 4
        result_len_byte = 4
        argnum = 0
        last_tail = 0x0
        prev = 0x3ed43c3
        some_multibyte = false
        textprops = 0x0
        num_textprops = 0
        sa_avail = 16384
        sa_count = 13
        sa_must_free = false
#2  0x0000000000615e11 in Fcopy_sequence (arg=0x378f723) at fns.c:514
#3  0x0000000000569ca9 in timer_check () at keyboard.c:4381
        nexttime = {tv_sec = 13393952, tv_nsec = 0}
        timers = 0x0
        idle_timers = 0x1603c087
        tem = 0x0
#4  0x0000000000567de7 in readable_events (flags=1) at keyboard.c:3349
#5  0x000000000056e6dd in get_input_pending (flags=1) at keyboard.c:6805
#6  0x0000000000575253 in detect_input_pending_run_timers (do_display=true) at keyboard.c:9943
        old_timers_run = 14
#7  0x000000000066d279 in wait_reading_process_output (time_limit=1, nsecs=999696986, read_kbd=-1, do_display=true, wait_for_cell=0x0, wait_proc=0x0, just_wait_proc=0) at process.c:5514
        old_timers_run = 14
        old_buffer = 0x4018920
        old_window = 0x14c7c35 <bss_sbrk_buffer+8250293>
        leave = false
        process_skipped = false
        channel = 6
        nfds = 1
        Available = {fds_bits = {32, 0 <repeats 15 times>}}
        Writeok = {fds_bits = {0 <repeats 16 times>}}
        check_write = true
        check_delay = 0
        no_avail = false
        xerrno = 11
        proc = 0x0
        timeout = {tv_sec = 0, tv_nsec = 0}
        end_time = {tv_sec = 1516500504, tv_nsec = 913666042}
        timer_delay = {tv_sec = 0, tv_nsec = 408740369}
        got_output_end_time = {tv_sec = 1516500504, tv_nsec = 913666042}
        wait = TIMEOUT
        got_some_output = -1
        retry_for_async = false
        count = 12
        now = {tv_sec = 0, tv_nsec = -1}
#8  0x0000000000568a22 in kbd_buffer_get_event (kbp=0x7fffffffc878, used_mouse_menu=0x0, end_time=0x7fffffffce50) at keyboard.c:3819
        duration = {tv_sec = 1, tv_nsec = 999696986}
        now = {tv_sec = 1516500502, tv_nsec = 913968084}
        obj = 0x3166780
#9  0x0000000000564db1 in read_event_from_main_queue (end_time=0x7fffffffce50, local_getcjmp=0x7fffffffcc30, used_mouse_menu=0x0) at keyboard.c:2157
        c = 0x0
        save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats 16 times>}}}}
        kb = 0x5fc7d7 <lisp_to_timespec+135>
#10 0x0000000000565064 in read_decoded_event_from_main_queue (end_time=0x7fffffffce50, local_getcjmp=0x7fffffffcc30, prev_event=0x0, used_mouse_menu=0x0)
    at keyboard.c:2220
        nextevt = 0x0
        frame = 0x15b49312
        terminal = 0x0
        events =
          {0x0, 0xffffffffffffffff, 0x0, 0xa50554279372fa00, 0x0, 0x0, 0x7fffffffca50, 0x569d0b <timer_check+149>, 0xcc6020 <lispsym>, 0x0, 0x0, 0x7fffffffca50, 0x5591fb <builtin_lisp_symbol+48>, 0x15b49312, 0x7fffffffca90, 0x567ee4 <readable_events+280>}
        n = 0
#11 0x0000000000566743 in read_char (commandflag=0, map=0x0, prev_event=0x0, used_mouse_menu=0x0, end_time=0x7fffffffce50) at keyboard.c:2808
        c = 0x0
        jmpcount = 12
        local_getcjmp =
                {{__jmpbuf = {0, -3783296097023898458, 0, 30, 0, 0, -3783296097084715866, 3783295737644240038}, __mask_was_saved = 0, __saved_mask = {__val = {47594968, 140737488342200, 140737488342196, 0, 140737291334337, 0, 140737291329493, 0, 0, 47590576, 11891002920095906304, 3, 47590576, 0, 0, 47590600}}}}
        save_jump =
                {{__jmpbuf = {0, 47590576, 140737488342376, 140737488342384, 5548, 4097945360, 140737488342336, 5697160}, __mask_was_saved = -12944, __saved_mask = {__val = {4570324, 0, 0, 140737488342480, 140737217017574, 913665070, 1516500504, 1516500504, 913665070, 140737488342512, 7172892, 2, 0, 1516500502, 913665070, 13393952}}}}
        tem = 0x10933d98
        save = 0x7ffff441c3b4
        previous_echo_area_message = 0x0
        also_record = 0x0
        reread = false
        recorded = false
        polling_stopped_here = true
        orig_kboard = 0x2d9e700
#12 0x000000000063e4c0 in read_filtered_event (no_switch_frame=false, ascii_required=false, error_nonascii=false, input_method=true, seconds=0xa)
    at lread.c:672
        val = 0x5ee245 <store_symval_forwarding+288>
        delayed_switch_frame = 0x0
        end_time = {tv_sec = 1516500504, tv_nsec = 913665070}
#13 0x000000000063e7fa in Fread_event (prompt=0x0, inherit_input_method=0xbc40, seconds=0xa) at lread.c:784
#14 0x0000000000610db7 in funcall_subr (subr=0xc54c60 <Sread_event>, numargs=3, args=0x7fffffffd008) at eval.c:2898
        internal_argbuf = {0x0, 0xa00d5e700, 0xc54c60 <Sread_event>, 0x7fffffffcf58, 0x559943 <PSEUDOVECTORP+63>, 0xaffffcf50, 0xc54c65 <Sread_event+5>, 0x0}
        internal_args = 0x7fffffffd008
#15 0x0000000000610929 in Ffuncall (nargs=4, args=0x7fffffffd000) at eval.c:2818
        fun = 0xc54c65 <Sread_event+5>
        original_fun = 0xab470
        funcar = 0x8190
        numargs = 3
        val = 0x61219e <specbind+640>
        count = 11
#16 0x000000000065d0a1 in exec_byte_code (bytestr=0x96378c <pure+124012>, vector=0x9637ad <pure+124045>, maxdepth=0x1e, args_template=0xc06, nargs=1, args=0x7fffffffd500) at bytecode.c:632
        op = 3
        type = CATCHER
        targets =
        const_length = 12
        bytestr_length = 90
        vectorp = 0x9637b0 <pure+124048>
        quitcounter = 1 '\001'
        stack_items = 8
        sa_avail = 16230
        sa_count = 10
        sa_must_free = false
        alloc = 0x7fffffffcfe0
        item_bytes = 64
        stack_base = 0x7fffffffcfe0
        top = 0x7fffffffd000
        stack_lim = 0x7fffffffd020
        bytestr_data = 0x7fffffffd020 "\001\247\203\022"
        pc = 0x7fffffffd06a ")\211?\206W"
        count = 10
        result = 0x12ffffd500
#17 0x00000000006113ff in funcall_lambda (fun=0x96375d <pure+123965>, nargs=1, arg_vector=0x7fffffffd4f8) at eval.c:3019
        size = 5
        val = 0x0
        syms_left = 0xc06
        next = 0x0
        lexenv = 0x12006124d4
        count = 10
        i = 9844568
        optional = false
        rest = false
        previous_optional_or_rest = false
#18 0x000000000061096d in Ffuncall (nargs=2, args=0x7fffffffd4f0) at eval.c:2820
        fun = 0x96375d <pure+123965>
        original_fun = 0x4321f0 <calculate_scrolling+597>
        funcar = 0x7fffffffd4b0
        numargs = 1
        val = 0x3f07374
        count = 9
#19 0x000000000065d0a1 in exec_byte_code (bytestr=0xa0863c <pure+799516>, vector=0xa0865d <pure+799549>, maxdepth=0x3e, args_template=0xc06, nargs=3, args=0x7fffffffdbe8) at bytecode.c:632
        op = 1
        type = CATCHER
        targets =
        const_length = 50
        bytestr_length = 253
        vectorp = 0xa08660 <pure+799552>
        quitcounter = 1 '\001'
        stack_items = 16
        sa_avail = 16003
        sa_count = 9
        sa_must_free = false
        alloc = 0x7fffffffd4c0
        item_bytes = 128
        stack_base = 0x7fffffffd4c0
        top = 0x7fffffffd4f0
        stack_lim = 0x7fffffffd540
        bytestr_data = 0x7fffffffd540 "\001\204\020"
        pc = 0x7fffffffd5a4 "\211\205", <incomplete sequence \372>
        count = 9
        result = 0x1200517ee0
#20 0x00000000006113ff in funcall_lambda (fun=0xa085fd <pure+799453>, nargs=3, arg_vector=0x7fffffffdbd0) at eval.c:3019
        size = 6
        val = 0x2d62cb0
        syms_left = 0xc06
        next = 0x0
        lexenv = 0x1200d56240
        count = 9
        i = 10520056
        optional = 127
        rest = false
        previous_optional_or_rest = false
#21 0x000000000061096d in Ffuncall (nargs=4, args=0x7fffffffdbc8) at eval.c:2820
        fun = 0xa085fd <pure+799453>
        original_fun = 0xd63e0
        funcar = 0x0
        numargs = 3
        val = 0x561fe1 <restore_kboard_configuration>
        count = 8
#22 0x0000000000608111 in Ffuncall_interactively (nargs=4, args=0x7fffffffdbc8) at callint.c:253
        speccount = 7
#23 0x0000000000610c65 in funcall_subr (subr=0xc51b60 <Sfuncall_interactively>, numargs=4, args=0x7fffffffdbc8) at eval.c:2873
#24 0x0000000000610929 in Ffuncall (nargs=5, args=0x7fffffffdbc0) at eval.c:2818
        fun = 0xc51b65 <Sfuncall_interactively+5>
        original_fun = 0x6240
        funcar = 0x7fffffffdbb0
        numargs = 4
        val = 0x3
        count = 6
#25 0x000000000060fb89 in Fapply (nargs=3, args=0x7fffffffddf0) at eval.c:2438
        i = 5
        numargs = 4
        funcall_nargs = 5
        funcall_args = 0x7fffffffdbc0
        spread_arg = 0x0
        fun = 0xc51b65 <Sfuncall_interactively+5>
        retval = 0x6240
        sa_avail = 16344
        sa_count = 6
        sa_must_free = false
#26 0x0000000000608589 in Fcall_interactively (function=0xd63e0, record_flag=0x0, keys=0xd5d695 <bss_sbrk_buffer+474645>) at callint.c:390
        input = 0xa088db <pure+800187>
        funval = 0xa085fd <pure+799453>
        events = 1
        result = 0xa085f8 <pure+799448>
        args = 0x7fffffffdc2d
        visargs = 0x1
        specs = 0x3c50613
        filter_specs = 0xa088db <pure+800187>
        teml = 0x0
        up_event = 0x0
        enable = 0x0
        sa_avail = 16384
        sa_count = 6
        sa_must_free = false
        speccount = 6
        next_event = 140737488346000
        prefix_arg = 0x0
        string = 0x0
        tem = 0x0
        varies = 0x1 <error: Cannot access memory at address 0x1>
        i = 0
        nargs = 0
        mark = 140737488346608
        arg_from_tty = false
        key_count = 1
        record_then_fail = false
        save_this_command = 0xd63e0
        save_last_command = 0x0
        save_this_original_command = 0xd63e0
        save_real_this_command = 0xd63e0
#27 0x0000000000610db7 in funcall_subr (subr=0xc51ba0 <Scall_interactively>, numargs=3, args=0x7fffffffdfa0) at eval.c:2898
        internal_argbuf =
          {0xd63e0, 0xa00000000, 0xc51ba0 <Scall_interactively>, 0x7fffffffded8, 0x559943 <PSEUDOVECTORP+63>, 0xaffffded0, 0xc51ba5 <Scall_interactively+5>, 0x0}
        internal_args = 0x7fffffffdfa0
#28 0x0000000000610929 in Ffuncall (nargs=4, args=0x7fffffffdf98) at eval.c:2818
        fun = 0xc51ba5 <Scall_interactively+5>
        original_fun = 0xae3e0
        funcar = 0x7fffffffdf50
        numargs = 3
        val = 0x0
        count = 5
#29 0x000000000065d0a1 in exec_byte_code (bytestr=0xa0898c <pure+800364>, vector=0xa089ad <pure+800397>, maxdepth=0x36, args_template=0x1006, nargs=1, args=0x7fffffffe4e0) at bytecode.c:632
        op = 3
        type = CATCHER
        targets =
        const_length = 25
        bytestr_length = 165
        vectorp = 0xa089b0 <pure+800400>
        quitcounter = 1 '\001'
        stack_items = 14
        sa_avail = 16107
        sa_count = 5
        sa_must_free = false
        alloc = 0x7fffffffdf60
        item_bytes = 112
        stack_base = 0x7fffffffdf60
        top = 0x7fffffffdf98
        stack_lim = 0x7fffffffdfd0
        bytestr_data = 0x7fffffffdfd0 "\306\020\211?\205\023"
        pc = 0x7fffffffe04b "\006\006\071\203\242"
        count = 5
        result = 0x120067184f
#30 0x00000000006113ff in funcall_lambda (fun=0xa0895d <pure+800317>, nargs=1, arg_vector=0x7fffffffe4d8) at eval.c:3019
        size = 5
        val = 0x6113ff <funcall_lambda+482>
        syms_left = 0x1006
        next = 0x0
        lexenv = 0x1200a0a82d
        count = 5
        i = 10520920
        optional = 127
        rest = false
        previous_optional_or_rest = false
#31 0x000000000061096d in Ffuncall (nargs=2, args=0x7fffffffe4d0) at eval.c:2820
        fun = 0xa0895d <pure+800317>
        original_fun = 0x3ae0
        funcar = 0x0
        numargs = 1
        val = 0x610aeb <Ffuncall+835>
        count = 4
#32 0x00000000006101ca in call1 (fn=0x3ae0, arg1=0xd63e0) at eval.c:2669
#33 0x00000000005630d8 in command_loop_1 () at keyboard.c:1484
        scount = 3
        cmd = 0xd63e0
        keybuf =
          {0x200001e2, 0x6124d4 <do_one_unbind+380>, 0x100000002, 0x7fffffffe5c0, 0xcc6020 <lispsym>, 0x0, 0x0, 0x7fffffffe590, 0x5591fb <builtin_lisp_symbol+48>, 0x0, 0x7fffffffe600, 0x612744 <unbind_to+233>, 0xda0af3 <bss_sbrk_buffer+750195>, 0x3, 0xcc6020 <lispsym>, 0x0, 0x0, 0x7fffffffe5e0, 0x5591fb <builtin_lisp_symbol+48>, 0xd58405 <bss_sbrk_buffer+453509>, 0x7fffffffe620, 0x60d40a <push_handler_nosignal+220>, 0x1005591fb, 0x4dd0, 0x7fffffffe640, 0x2d360b0, 0x0, 0x0, 0x7fffffffe650, 0x60d313 <push_handler+32>}
        i = 1
        prev_modiff = 8
        prev_buffer = 0xd58400 <bss_sbrk_buffer+453504>
        already_adjusted = false
#34 0x000000000060cf56 in internal_condition_case (bfun=0x56289c <command_loop_1>, handlers=0x4dd0, hfun=0x56202f <cmd_error>) at eval.c:1332
        val = 0x5591fb <builtin_lisp_symbol+48>
        c = 0x2d360b0
#35 0x0000000000562586 in command_loop_2 (ignore=0x0) at keyboard.c:1111
        val = 0x0
#36 0x000000000060c7e4 in internal_catch (tag=0xc2a0, func=0x562559 <command_loop_2>, arg=0x0) at eval.c:1097
        val = 0x40e00000000
        c = 0x2d30900
#37 0x0000000000562524 in command_loop () at keyboard.c:1090
#38 0x0000000000561bfe in recursive_edit_1 () at keyboard.c:696
        count = 1
        val = 0x6121f5 <record_unwind_protect+73>
#39 0x0000000000561d82 in Frecursive_edit () at keyboard.c:767
        count = 0
        buffer = 0x0
#40 0x000000000055f834 in main (argc=1, argv=0x7fffffffe9a8) at emacs.c:1724
        stack_bottom_variable = 0xa50554279372fa00
        do_initial_setlocale = true
        dumping = false
        skip_args = 0
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x0
        original_pwd = 0x0
        disable_aslr = false
        rlim = {rlim_cur = 10022912, rlim_max = 18446744073709551615}
        sockfd = -1