public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "jonah at kichwacoders dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/26912] "file" command causes core dump while specifying the executable on the command line does not
Date: Tue, 06 Jul 2021 01:18:14 +0000	[thread overview]
Message-ID: <bug-26912-4717-Nd2mDAN9Ms@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26912-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=26912

--- Comment #21 from Jonah Graham <jonah at kichwacoders dot com> ---
Hi Sam,

I am not in a position to answer any of these questions - probably best for
IRC or mailing list.

Jonah

~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Mon, 5 Jul 2021 at 12:04, Sam Warner <samuel.r.warner@me.com> wrote:

> Hi,
>   On rare occasions I am encountering the following "internal-error: int
> filter_overlapping_sections”. I suspect it has more to do with my
> technique for debugging gdb than an issue with the patch.
>
>   Still running test suites,  Should we wait before marking the bug fixed?
>
> Sam
>
> sam@gdbdev--1- gdb % /Users/sam/Documents/gdb-10.2/gdb/gdb
> --data-directory=/Users/sam/Documents/gdb-10.2/gdb/data-directory
> /Users/sam/Documents/gdb-10.2/gdb/gdb
> *GNU gdb (GDB) 10.2*
> Copyright (C) 2021 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "x86_64-apple-darwin20.5.0".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
>     <http://www.gnu.org/software/gdb/documentation/>.
>
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /Users/sam/Documents/gdb-10.2/gdb/gdb...
> Setting up the environment for debugging gdb.
> During symbol reading: unsupported tag: 'DW_TAG_unspecified_type'
> During symbol reading: cannot get low and high bounds for subprogram DIE
> at 0xa78
> During symbol reading: unexpected demangled name 'allocator<char> >'
> During symbol reading: unexpected overlap between:
>  (A) section `.cstring' from
> `/Users/sam/Documents/gdb-10.2/gdb/xml-builtin.o' [0x0, 0x9e)
>  (B) section `*ABS*' from
> `/Users/sam/Documents/gdb-10.2/gdb/xml-builtin.o' [0x0, 0x0).
> Will ignore section B
> objfiles.c:1111: internal-error: int filter_overlapping_sections(struct
> obj_section **, int): Assertion `sect1_addr <= sect2_addr' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Quit this debugging session? (y or n) [answered Y; input not from terminal]
>
> This is a bug, please report it.  For instructions, see:
> <https://www.gnu.org/software/gdb/bugs/>.
>
> objfiles.c:1111: internal-error: int filter_overlapping_sections(struct
> obj_sect--Typ--Typ--T--Typ--Ty--Typ-----Ty--T------------Typ------Ty----T---------T-------Type
> <RET> for more, q to quit, c to continue without paging--c
> ion **, int): Assertion `sect1_addr <= sect2_addr' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Create a core file of GDB? (y or n) [answered Y; input not from terminal]
> zsh: abort      /Users/sam/Documents/gdb-10.2/gdb/gdb
> /Users/sam/Documents/gdb-10.2/gdb/gdb
> sam@gdbdev--1- gdb % /Users/sam/Documents/gdb-10.2/gdb/gdb
> --data-directory=/Users/sam/Documents/gdb-10.2/gdb/data-directory
> /Users/sam/Documents/gdb-10.2/gdb/gdb
>
> On Jul 3, 2021, at 11:35 AM, Sam Warner <samuel.r.warner@me.com> wrote:
>
> Success - null-pointer gone when using ‘-file’ command.
>
> I hand edited solid-darwin.c, and used the following:
>
>   //
>   // from Simon Marchi, put in here by Sam Warner as couldn't find the
> patch
>   //
>   /* Everything below only makes sense if we have a running inferior.  */
>   if (!target_has_execution_current() )
>     return;
>
> I used target_has_execution_current() to get around some header file issue
> where target_has_execution wasn’t being defined in my environment.  I’ll
> go research that next.  After solving the header so I use the exact changes
> Simon had, then I’ll run the test-suite.
>
> Thank you Simon,
>
>
> Sam
>
> …. edited from command shell … (make it easier to read)
> sam@gdbdev--1- gdb-10.2 % gdb
> --data-directory=/Users/sam/Documents/gdb-10.2/gdb/data-directory gdb
> *GNU gdb (GDB) 10.2*
> Copyright (C) 2021 Free Software Foundation, Inc.
> (top-gdb) run -q
> (gdb) file /Users/sam/Documents/gdb-10.2/gdb/gdb
> Reading symbols from /Users/sam/Documents/gdb-10.2/gdb/gdb...
> (top-gdb)
>
>
>
>
> On Jul 3, 2021, at 10:25 AM, Sam Warner <samuel.r.warner@me.com> wrote:
>
> Hi Simon,
>    I’ve been unable to find this patch on
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git   I tried
> searching based on Change-ID, and other items listed within the thread, and
> even your name.  Can you point me to the patch?
>
>    You do show the source changes you made.  I will go make the source
> changes to solid-darwin.c and test.  If you can point me to the patch
> that’d be great.
>
> Sam
>
> On Jul 2, 2021, at 3:51 PM, simark at simark dot ca <
> sourceware-bugzilla@sourceware.org> wrote:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=26912
>
> --- Comment #11 from Simon Marchi <simark at simark dot ca> ---
> (In reply to Sam Warner from comment #9)
>
> Can I change the bug to Confirmed and assign myself (WIP on using Simon's
> source modifications (simark), and if not resolved by these continue to
> investigate-resolve)?
>
>
> Here's the patch in question:
>
> https://sourceware.org/pipermail/gdb-patches/2021-June/180396.html
>
> Can you just verify if this fixes the problem for you?  If so I'll commit
> it to
> the master branch.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>
>
>
>
>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-07-06  1:18 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18  0:44 [Bug c++/26912] New: " jim.pirman at gmail dot com
2020-11-18  0:50 ` [Bug c++/26912] " jim.pirman at gmail dot com
2020-12-02 21:58 ` aaroncarsonart at gmail dot com
2020-12-02 22:03 ` aaroncarsonart at gmail dot com
2020-12-02 22:06 ` simark at simark dot ca
2020-12-03  1:08 ` aaroncarsonart at gmail dot com
2020-12-03 17:07 ` simark at simark dot ca
2020-12-14 19:05 ` simark at simark dot ca
2021-01-20 11:47 ` jrbalsas at ujaen dot es
2021-02-11  0:09 ` egad at uottawa dot ca
2021-07-02 18:50 ` Samuel.r.warner at me dot com
2021-07-02 18:53 ` Samuel.r.warner at me dot com
2021-07-02 18:55 ` Samuel.r.warner at me dot com
2021-07-02 22:50 ` simark at simark dot ca
2021-07-02 22:51 ` simark at simark dot ca
2021-07-02 23:07 ` Samuel.r.warner at me dot com
2021-07-03 17:25 ` Samuel.r.warner at me dot com
2021-07-03 18:35 ` Samuel.r.warner at me dot com
2021-07-05  0:57 ` simark at simark dot ca
2021-07-05  0:57 ` simark at simark dot ca
2021-07-05 16:04 ` Samuel.r.warner at me dot com
2021-07-05 16:54 ` simark at simark dot ca
2021-07-05 20:45 ` Samuel.r.warner at me dot com
2021-07-05 21:21 ` simark at simark dot ca
2021-07-06  1:18 ` jonah at kichwacoders dot com [this message]
2021-07-06 15:56 ` Samuel.r.warner at me dot com
2021-07-06 23:30 ` Samuel.r.warner at me dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-26912-4717-Nd2mDAN9Ms@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).