From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6C7443858C62; Mon, 24 Jul 2023 09:22:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C7443858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690190554; bh=lAU02YoImoJ2RgCM+ZqC35XBK0zsa6DkaneH+LDBQeo=; h=From:To:Subject:Date:From; b=bxR98w7oqNioW3+6UModRNKf9tgWERs1zY2K+awl+nonPqHYnJltYa+lqDFvczpLs LL1mQocVkiFf/8IVytJAHhaTQ6Mrf8/L0twU/c6/REKMwYS0TtijhTTFZvrWuTRI3t oakfFSc9i79Mnll8Wqqn6YVfjShtZx7b/m6+2E6o= From: "sidtosh4 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/30674] New: Crashes with SIGSEGV in __strcmp_sse42 Date: Mon, 24 Jul 2023 09:22:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sidtosh4 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30674 Bug ID: 30674 Summary: Crashes with SIGSEGV in __strcmp_sse42 Product: gdb Version: 13.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: sidtosh4 at gmail dot com Target Milestone: --- Crashes when trying to attach to a running process. I guess the issue is th= at "gdb was run from a dir which was deleted". Still, crashing in this case is confusing. Rather should say a message like "PWD doesn't exist" and exit, n= ot crash. Thread 1 (Thread 0x7f620d9ca180 (LWP 430685)): #0 __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse4_2.S:173 #1 0x00007f6210f54328 in _nl_make_l10nflist (l10nfile_list=3Dl10nfile_list@entry=3D0x7f62110efd98 <_nl_loaded_domains>, dirlist=3Ddirlist@entry=3D0x7f62110ba4e0 <_nl_default_dirname> "/usr/share/= locale", dirlist_len=3D18, mask=3Dmask@entry=3D0, language=3Dlanguage@entry=3D0x5556= b5677ed0 "en_US.UTF-8", territory=3Dterritory@entry=3D0x0, codeset=3D0x0, normalized_codeset=3D0x0, modifier=3D0x0, filename=3D0x5556b5677ef0 "LC_MESSAGES/gdb.mo", do_allocate=3D0) at ../intl/l10nflist.c:221 #2 0x00007f6210f5234f in _nl_find_domain (dirname=3Ddirname@entry=3D0x7f62= 110ba4e0 <_nl_default_dirname> "/usr/share/locale", locale=3Dlocale@entry=3D0x5556b5= 677ed0 "en_US.UTF-8", domainname=3Ddomainname@entry=3D0x5556b5677ef0 "LC_MESSAGES/= gdb.mo", domainbinding=3Ddomainbinding@entry=3D0x5556b5674460) at ./intl/finddomain.= c:90 #3 0x00007f6210f51d3d in __dcigettext (domainname=3D, msgid1=3D0x5556b4834f08 "A fatal error internal to GDB has been detected, further\ndebugging is not possible. GDB will now terminate.\n\n", msgid2= =3D0x0, plural=3D0, n=3D0, category=3D5) at ./intl/dcigettext.c:702 #4 0x00005556b43bb60e in handle_fatal_signal (sig=3D11) at /build/gdb-YnfO2U/gdb-13.2/gdb/event-top.c:958 #5 0x00005556b43bb777 in handle_sigsegv (sig=3D11) at /build/gdb-YnfO2U/gdb-13.2/gdb/event-top.c:1029 #6 #7 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/strlen-sse2.S:142 #8 0x00005556b45843e2 in openp (path=3Dpath@entry=3D0x7ffc6ddecab0 "./io:$= cwd", opts=3D..., opts@entry=3D..., string=3Dstring@entry=3D0x5556b7cd6df0 "../sysdeps/unix/sysv/linux/poll.c", mode=3Dmode@entry=3D0, filename_opened=3Dfilename_opened@entry=3D0x7ffc6ddecb38) at /build/gdb-YnfO2U/gdb-13.2/gdb/source.c:887 #9 0x00005556b4584832 in find_and_open_source (filename=3D0x5556b7cd6df0 "../sysdeps/unix/sysv/linux/poll.c", dirname=3D, fullname=3Dfullname@entry=3D0x7ffc6ddecb38) at /build/gdb-YnfO2U/gdb-13.2/gdb/../gdbsupport/enum-flags.h:146 #10 0x00005556b4584c9c in open_source_file (s=3Ds@entry=3D0x5556b7a20bf0) at /build/gdb-YnfO2U/gdb-13.2/gdb/source.c:1180 #11 0x00005556b4585f82 in print_source_lines_base (s=3D0x5556b7a20bf0, line= =3D29, stopline=3D30, flags=3D...) at /build/gdb-YnfO2U/gdb-13.2/gdb/source.c:1336 #12 0x00005556b4586905 in print_source_lines (s=3D, line=3D, stopline=3D, flags=3D...) at /build/gdb-YnfO2U/gdb-13.2/gdb/source.c:1484 #13 0x00005556b4598351 in print_frame_info (fp_opts=3D..., frame=3D..., print_level=3D, print_what=3D, print_args=3D<= optimized out>, set_current_sal=3D1) at /build/gdb-YnfO2U/gdb-13.2/gdb/../gdbsupport/enum-flags.h:149 #14 0x00005556b45985fd in print_stack_frame (frame=3D..., print_level=3D0, print_what=3DSRC_AND_LOC, set_current_sal=3D1) at /build/gdb-YnfO2U/gdb-13.2/gdb/stack.c:368 #15 0x00005556b4431cf7 in print_stop_location (ws=3D...) at /build/gdb-YnfO2U/gdb-13.2/gdb/infrun.c:8469 #16 print_stop_event (uiout=3D0x5556b5777eb0, displays=3Ddisplays@entry=3Dt= rue) at /build/gdb-YnfO2U/gdb-13.2/gdb/infrun.c:8485 #17 0x00005556b42e8c2f in cli_base_on_normal_stop (bs=3D, print_frame=3D) at /build/gdb-YnfO2U/gdb-13.2/gdb/cli/cli-interp.c:140 #18 0x00005556b443417a in std::function::operator()(bpstat*, int) const (__args#1=3D, __args#0=3D, this=3D0x5556b5806118) at /usr/include/c++/12/bits/std_function.h:591 #19 gdb::observers::observable::notify (args#1=3D, args#0=3D0x0, this=3D) at /build/gdb-YnfO2U/gdb-13.2/gdb/../gdbsupport/observable.h:166 #20 normal_stop () at /build/gdb-YnfO2U/gdb-13.2/gdb/infrun.c:8747 #21 0x00005556b4425562 in attach_post_wait (from_tty=3D1, mode=3DATTACH_POST_WAIT_STOP) at /build/gdb-YnfO2U/gdb-13.2/gdb/infcmd.c:25= 96 #22 0x00005556b4427581 in std::function::operator()() const (this=3D0x5556b58887e0) at /usr/include/c++/12/bits/std_function.h:591 #23 inferior::do_all_continuations (this=3D0x5556b5694ba0) at /build/gdb-YnfO2U/gdb-13.2/gdb/inferior.c:182 #24 0x00005556b4418b75 in inferior_event_handler (event_type=3D) at /build/gdb-YnfO2U/gdb-13.2/gdb/inf-loop.c:57 #25 0x00005556b444358c in fetch_inferior_event () at /build/gdb-YnfO2U/gdb-13.2/gdb/infrun.c:4241 #26 0x00005556b47a3246 in gdb_wait_for_event (block=3Dblock@entry=3D0) at /build/gdb-YnfO2U/gdb-13.2/gdbsupport/event-loop.cc:716 #27 0x00005556b47a3d77 in gdb_do_one_event (mstimeout=3Dmstimeout@entry=3D-= 1) at /build/gdb-YnfO2U/gdb-13.2/gdbsupport/event-loop.cc:217 #28 0x00005556b45f19f4 in wait_sync_command_done () at /build/gdb-YnfO2U/gdb-13.2/gdb/top.c:542 #29 0x00005556b45f1a45 in maybe_wait_sync_command_done (was_sync=3D) at /build/gdb-YnfO2U/gdb-13.2/gdb/top.c:559 #30 0x00005556b4484303 in catch_command_errors (command=3D, arg=3Darg@entry=3D0x7ffc6ddee22b "430603", from_tty=3D, do_bp_actions=3Ddo_bp_actions@entry=3Dfalse) at /build/gdb-YnfO2U/gdb-13.2/gdb/main.c:515 #31 0x00005556b4486d3f in captured_main_1 (context=3Dcontext@entry=3D0x7ffc6ddeda30) at /build/gdb-YnfO2U/gdb-13.2/gdb/main.c:1247 #32 0x00005556b4486f6b in captured_main (data=3Ddata@entry=3D0x7ffc6ddeda30= ) at /build/gdb-YnfO2U/gdb-13.2/gdb/main.c:1320 #33 gdb_main (args=3Dargs@entry=3D0x7ffc6ddeda60) at /build/gdb-YnfO2U/gdb-13.2/gdb/main.c:1345 #34 0x00005556b4215cba in main (argc=3D, argv=3D) at /build/gdb-YnfO2U/gdb-13.2/gdb/gdb.c:32 --=20 You are receiving this mail because: You are on the CC list for the bug.=