Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2018 05:35:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 228601] devel/gdb: kgdb dies with sigsegv
Message-ID:  <bug-228601-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228601

            Bug ID: 228601
           Summary: devel/gdb: kgdb dies with sigsegv
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: crash
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pizzamig@freebsd.org
          Reporter: eadler@FreeBSD.org
          Assignee: pizzamig@freebsd.org
             Flags: maintainer-feedback?(pizzamig@freebsd.org)

#0  thr_kill () at thr_kill.S:3
No locals.
#1  0x000000080389ab64 in __raise (s=3D11) at /usr/src/lib/libc/gen/raise.c=
:54
        id =3D 101087
#2  0x0000000802f57047 in faulthandler_fatal_error (signum=3D11) at
./Modules/faulthandler.c:365
        fd =3D 2
        i =3D 4
        handler =3D 0x8032590d0 <faulthandler_handlers+224>
        save_errno =3D 35
#3  0x000000080280cfd8 in handle_signal (actp=3D0x8046c2c40, sig=3D11,
info=3D0x8046c3030, ucp=3D0x8046c2cc0) at /usr/src/lib/libthr/thread/thr_si=
g.c:248
        curthread =3D 0x802bd5000
        in_sigsuspend =3D 0
        cancel_enable =3D 1
        cancel_point =3D 0
        sigfunc =3D 0xfffff8009a3e9000
        err =3D <optimized out>
        uc2 =3D <optimized out>
        cancel_async =3D <optimized out>
#4  0x000000080280c5ef in thr_sighandler (sig=3D11, info=3D0x8046c3030,
_ucp=3D0x8046c2cc0) at /usr/src/lib/libthr/thread/thr_sig.c:191
        ucp =3D 0x8046c2cc0
        err =3D 35
        curthread =3D 0x802bd5000
        act =3D {
          __sigaction_u =3D {
            __sa_handler =3D 0x802f56f10 <faulthandler_fatal_error>,=20
            __sa_sigaction =3D 0x802f56f10 <faulthandler_fatal_error>
          },=20
          sa_flags =3D 17,=20
          sa_mask =3D {
            __bits =3D               {0,
              0,
              0,
              0}
          }
        }
        usa =3D <optimized out>
#5  <signal handler called>
No symbol table info available.
#6  0x0000000000c79b84 in fputs_unfiltered (buf=3D0x15f6bc0 "#", file=3D0x0=
) at
ui-file.c:129
No locals.
#7  0x0000000000c85ee3 in fputs_maybe_filtered (linebuffer=3D0x15f6bc0 "#",
stream=3D0x0, filter=3D1) at utils.c:1721
        lineptr =3D 0x0
#8  0x0000000000c856f2 in fputs_filtered (linebuffer=3D0x15f6bc0 "#", strea=
m=3D0x0)
at utils.c:1813
No locals.
#9  0x0000000000924d38 in cli_ui_out::do_text (this=3D0x803f768f0,
string=3D0x15f6bc0 "#") at cli-out.c:199
No locals.
#10 0x0000000000c7d30f in ui_out::text (this=3D0x803f768f0, string=3D0x15f6=
bc0 "#")
at ui-out.c:583
No locals.
#11 0x0000000000bbc331 in print_frame (frame=3D0x802be50e0, print_level=3D1,
print_what=3DLOCATION, print_args=3D1, sal=3D...) at stack.c:1158
        tuple_emitter =3D {
          m_uiout =3D 0x803f768f0
        }
        stb =3D {
          <ui_file> =3D {
            _vptr$ui_file =3D 0xffffffff80b5c57e
          },=20
          members of string_file:=20
          m_string =3D {
            <std::__1::__basic_string_common<true>> =3D {<No data fields>},=
=20
            members of std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >:=20
            static __short_mask =3D 1,=20
            static __long_mask =3D 1,=20
            __r_ =3D {
              <std::__1::__compressed_pair_elem<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >::__rep, 0, false>>=
 =3D {
                __value_ =3D {
                  {
                    __l =3D {
                      __cap_ =3D 42092621840,=20
                      __size_ =3D 140737488338592,=20
                      __data_ =3D 0xbe2b09 <find_pc_sect_line(unsigned long,
obj_section*, int)+1481> "H\213\205\b\377\377\377H\201\304@\001"
                    },=20
                    __s =3D {
                      {
                        __size_ =3D 16 '\020',=20
                        __lx =3D 16 '\020'
                      },=20
                      __data_ =3D                         "p\352\314\t"
                    },=20
                    __r =3D {
                      __words =3D                         {42092621840,
                        140737488338592,
                        12462857}
                    }
                  }
                }
              },=20
              <std::__1::__compressed_pair_elem<std::__1::allocator<char>, =
1,
true>> =3D {
                <std::__1::allocator<char>> =3D {<No data fields>}, <No data
fields>}, <No data fields>},=20
            static npos =3D 18446744073709551615
          }
        }
        gdbarch =3D 0x80491c010
        uiout =3D 0x803f768f0
        funlang =3D language_c
        opts =3D {
          prettyformat =3D Val_no_prettyformat,=20
          prettyformat_arrays =3D 0,=20
          prettyformat_structs =3D 0,=20
          vtblprint =3D 0,=20
          unionprint =3D -16864,=20
          addressprint =3D 32767,=20
          objectprint =3D 8559026,=20
          print_max =3D 0,=20
          repeat_count_threshold =3D 104663416,=20
          output_format =3D 8,=20
          format =3D 65452352,=20
          stop_print_at_null =3D 8,=20
          print_array_indexes =3D 0,=20
          deref_ref =3D 0,=20
          static_field_print =3D -857039432,=20
          pascal_static_field_print =3D 9,=20
          raw =3D -857038064,=20
          summary =3D 9,=20
          symbol_print =3D -2135571065
        }
        func =3D 0x9ccf80ef0
        pc =3D 18446744071573980542
        pc_p =3D 1
        funname =3D {
          __ptr_ =3D {
            <std::__1::__compressed_pair_elem<char*, 0, false>> =3D {
              __value_ =3D 0x806790240 "__curthread"
            },=20
            <std::__1::__compressed_pair_elem<gdb::xfree_deleter<char>, 1,
true>> =3D {
              <gdb::xfree_deleter<char>> =3D {<No data fields>}, <No data
fields>}, <No data fields>}
        }
#12 0x0000000000bbae9b in print_frame_info (frame=3D0x802be50e0, print_leve=
l=3D1,
print_what=3DLOCATION, print_args=3D1, set_current_sal=3D0) at stack.c:860
        gdbarch =3D 0x80491c010
        source_print =3D 2
        location_print =3D 1
        uiout =3D 0x803f768f0
        sal =3D {
          pspace =3D 0x803ec9820,=20
          symtab =3D 0x9cceaa310,=20
          symbol =3D 0x0,=20
          section =3D 0x0,=20
          line =3D 231,=20
          pc =3D 18446744071573980542,=20
          end =3D 18446744071573980551,=20
          explicit_pc =3D false,=20
          explicit_line =3D false,=20
          prob =3D 0x0,=20
          objfile =3D 0x0
        }
#13 0x0000000000bc33a3 in backtrace_command_1 (count_exp=3D0x0, show_locals=
=3D0,
no_filters=3D0, from_tty=3D1) at stack.c:1807
        fi =3D 0x802be50e0
        count =3D -2
        i =3D 0
        trailing =3D 0x802be50e0
        trailing_level =3D 0
        py_start =3D 0
        py_end =3D -1
        result =3D EXT_LANG_BT_NO_FILTERS
#14 0x0000000000bc0073 in backtrace_command (arg=3D0x0, from_tty=3D1) at
stack.c:1902
        fulltrace_arg =3D -1
        arglen =3D 0
        argc =3D 0
        no_filters =3D -1
        user_arg =3D 0
        reconstructed_arg =3D {
          <std::__1::__basic_string_common<true>> =3D {<No data fields>},=20
          members of std::__1::basic_string<char, std::__1::char_traits<cha=
r>,
std::__1::allocator<char> >:=20
          static __short_mask =3D 1,=20
          static __long_mask =3D 1,=20
          __r_ =3D {
            <std::__1::__compressed_pair_elem<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >::__rep, 0, false>>=
 =3D {
              __value_ =3D {
                {
                  __l =3D {
                    __cap_ =3D 0,=20
                    __size_ =3D 0,=20
                    __data_ =3D 0x0
                  },=20
                  __s =3D {
                    {
                      __size_ =3D 0 '\000',=20
                      __lx =3D 0 '\000'
                    },=20
                    __data_ =3D                       ""
                  },=20
                  __r =3D {
                    __words =3D                       {0,
                      0,
                      0}
                  }
                }
              }
            },=20
            <std::__1::__compressed_pair_elem<std::__1::allocator<char>, 1,
true>> =3D {
              <std::__1::allocator<char>> =3D {<No data fields>}, <No data
fields>}, <No data fields>},=20
          static npos =3D 18446744073709551615
        }
#15 0x0000000000722d2e in do_const_cfunc (c=3D0x804cf1340, args=3D0x0, from=
_tty=3D1)
at cli/cli-decode.c:106
No locals.
#16 0x0000000000726bca in cmd_func (cmd=3D0x804cf1340, args=3D0x0, from_tty=
=3D1) at
cli/cli-decode.c:1886
        restore_suppress =3D {
          {
            m_dummy =3D {<No data fields>},=20
            m_item =3D {
              <scoped_restore_base> =3D {
                m_saved_var =3D 0x7fffffffc590
              },=20
              members of scoped_restore_tmpl<int>:=20
              m_saved_value =3D 12890644
            }
          },=20
          m_instantiated =3D false
        }
#17 0x0000000000c46c68 in execute_command (p=3D0x8024d7312 "", from_tty=3D1=
) at
top.c:630
        without_whitespace =3D {
          <std::__1::__basic_string_common<true>> =3D {<No data fields>},=20
          members of std::__1::basic_string<char, std::__1::char_traits<cha=
r>,
std::__1::allocator<char> >:=20
          static __short_mask =3D 1,=20
          static __long_mask =3D 1,=20
          __r_ =3D {
            <std::__1::__compressed_pair_elem<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >::__rep, 0, false>>=
 =3D {
              __value_ =3D {
                {
                  __l =3D {
                    __cap_ =3D 0,=20
                    __size_ =3D 0,=20
                    __data_ =3D 0x0
                  },=20
                  __s =3D {
                    {
                      __size_ =3D 0 '\000',=20
                      __lx =3D 0 '\000'
                    },=20
                    __data_ =3D                       ""
                  },=20
                  __r =3D {
                    __words =3D                       {0,
                      0,
                      0}
                  }
                }
              }
            },=20
            <std::__1::__compressed_pair_elem<std::__1::allocator<char>, 1,
true>> =3D {
              <std::__1::allocator<char>> =3D {<No data fields>}, <No data
fields>}, <No data fields>},=20
          static npos =3D 18446744073709551615
        }
        cmd =3D 0x8024d7312 ""
        arg =3D 0x0
        was_sync =3D 0
        save_repeat_args =3D @0x7fffffffc678: {
          m_saved_var =3D 0x27061d8 <repeat_arguments>
        }
        args_pointer =3D 0x8024d7312 ""
        cleanup_if_error =3D 0x15f54c0 <sentinel_cleanup>
        c =3D 0x804cf1340
        line =3D 0x8024d7310 "bt"
        cmd_start =3D 0x8024d7310 "bt"
        cleanup =3D {
          m_value =3D 0x803ecb8a0
        }
#18 0x0000000000a2af76 in command_handler (command=3D0x8024d7310 "bt") at
event-top.c:583
        ui =3D 0x802bf0000
        c =3D 0x8024d7310 "bt"
        stat_reporter =3D {
          m_msg_type =3D true,=20
          m_time_enabled =3D 0,=20
          m_space_enabled =3D 0,=20
          m_symtab_enabled =3D 0,=20
          m_start_cpu_time =3D {
            __d_ =3D {
              __rep_ =3D 0
            }
          },=20
          m_start_wall_time =3D {
            __d_ =3D {
              __rep_ =3D 0
            }
          },=20
          m_start_space =3D 34405810176,=20
          m_start_nr_symtabs =3D 23286374,=20
          m_start_nr_compunit_symtabs =3D 0,=20
          m_start_nr_blocks =3D 23024832
        }
#19 0x0000000000a2b45f in command_line_handler (rl=3D0x8024d7a28 "bt") at
event-top.c:774
        line_buffer =3D 0x802bf0010
        ui =3D 0x802bf0000
        cmd =3D 0x8024d7310 "bt"
#20 0x0000000000a29f15 in gdb_rl_callback_handler (rl=3D0x8024d7a28 "bt") at
event-top.c:213
        exception_try_scope_instance =3D {
          saved_state =3D 0x15f54c0 <sentinel_cleanup>
        }
        ex =3D <error reading variable>
        gdb_rl_expt =3D {
          reason =3D 0,=20
          error =3D GDB_NO_ERROR,=20
          message =3D 0x0
        }
        ui =3D 0x802bf0000
#21 0x0000000802522c7b in rl_callback_read_char () at ../callback.c:283
        olevel =3D           {{
            _sjb =3D               {34398519596,
              140737488344160,
              140737488341608,
              140737488341648,
              140737488344152,
              0,
              4,
              140737488344200,
              895,
              0,
              0,
              0}
          }}
        line =3D 0x8024d7a28 "bt"
        eof =3D 0
        jcode =3D 0
#22 0x0000000000a2c00d in gdb_rl_callback_read_char_wrapper_noexcept () at
event-top.c:175
        gdb_expt =3D {
          reason =3D 0,=20
          error =3D GDB_NO_ERROR,=20
          message =3D 0x0
        }
#23 0x0000000000a29be1 in gdb_rl_callback_read_char_wrapper
(client_data=3D0x802bf0000) at event-top.c:192
        gdb_expt =3D {
          reason =3D 10664761,=20
          error =3D GDB_NO_ERROR,=20
          message =3D 0x7fffffffcb90 "\300\313\377\377\377\177"
        }
#24 0x0000000000a2ada8 in stdin_event_handler (error=3D0,
client_data=3D0x802bf0000) at event-top.c:511
        ui =3D 0x802bf0000
#25 0x0000000000a29742 in handle_file_event (file_ptr=3D0x802be8c80,
ready_mask=3D1) at event-loop.c:733
        mask =3D 1
        error_mask =3D 56
#26 0x0000000000a27b03 in gdb_wait_for_event (block=3D1) at event-loop.c:859
        i =3D 3
        mask =3D 1
        file_ptr =3D 0x802be8c80
        num_found =3D 1
#27 0x0000000000a2749c in gdb_do_one_event () at event-loop.c:347
        event_source_head =3D 2
        number_of_sources =3D 3
        current =3D 3
#28 0x0000000000a27cd7 in start_event_loop () at event-loop.c:371
        exception_try_scope_instance =3D {
          saved_state =3D 0x15f54c0 <sentinel_cleanup>
        }
        ex =3D @0x803f99820: {
          <gdb_exception> =3D {
            reason =3D 22882848,=20
            error =3D GDB_NO_ERROR,=20
            message =3D 0x8024d72d8 "tui"
          }, <No data fields>}
        result =3D 0
#29 0x0000000000acea63 in captured_command_loop () at main.c:329
        ui =3D 0x802bf0000
#30 0x0000000000acc045 in captured_main (data=3D0x7fffffffcef8) at main.c:1=
156
        exception_try_scope_instance =3D {
          saved_state =3D 0x15f54c0 <sentinel_cleanup>
        }
        ex =3D @0x7fffffffcdf0: {
          <gdb_exception> =3D {
            reason =3D -12784,=20
            error =3D 32767,=20
            message =3D 0x15f54c0 <sentinel_cleanup> ""
          }, <No data fields>}
        context =3D 0x7fffffffcef8
#31 0x0000000000acbf08 in gdb_main (args=3D0x7fffffffcef8) at main.c:1172
        exception_try_scope_instance =3D {
          saved_state =3D 0x15f54c0 <sentinel_cleanup>
        }
        ex =3D @0x50bb73: {
          <gdb_exception> =3D {
            reason =3D -126514360,=20
            error =3D 138840392,=20
            message =3D 0x8788348f8458b48 <error: Cannot access memory at a=
ddress
0x8788348f8458b48>
          }, <No data fields>}
#32 0x000000000050babb in main (argc=3D4, argv=3D0x7fffffffd460) at kgdb-ma=
in.c:410
        path =3D           "\260\320\377\377\377\177"
        st =3D {
          st_dev =3D 140737488342904,=20
          st_ino =3D 34398326784,=20
          st_nlink =3D 3,=20
          st_mode =3D 53280,=20
          st_padding0 =3D -1,=20
          st_uid =3D 32767,=20
          st_gid =3D 4294955008,=20
          st_padding1 =3D 32767,=20
          st_rdev =3D 34398196781,=20
          st_atim =3D {
            tv_sec =3D 140737488343072,=20
            tv_nsec =3D 0
          },=20
          st_mtim =3D {
            tv_sec =3D 0,=20
            tv_nsec =3D 805306662
          },=20
          st_ctim =3D {
            tv_sec =3D 0,=20
            tv_nsec =3D 0
          },=20
          st_birthtim =3D {
            tv_sec =3D 0,=20
            tv_nsec =3D 34417998696
          },=20
          st_size =3D 0,=20
          st_blocks =3D 0,=20
          st_blksize =3D 0,=20
          st_flags =3D 0,=20
          st_gen =3D 0,=20
          st_spare =3D             {0,
            0,
            0,
            0,
            0,
            0,
            0,
            140737488343536,
            0,
            140737488343624}
        }
        args =3D {
          argc =3D 8,=20
          argv =3D 0x802beb000,=20
          interpreter_p =3D 0x1579a54 "console"
        }
        s =3D 0x802bea000 "target vmcore ./vmcore.9"
        a =3D 4
        ch =3D -1
quit

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228601-7788>