public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "gulsenenginar at aol dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug breakpoints/27009] [s390] GDB branches randomly for BC instruction while displaced stepping
Date: Sat, 09 Oct 2021 11:00:50 +0000	[thread overview]
Message-ID: <bug-27009-4717-98VbWJ5hqZ@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27009-4717@http.sourceware.org/bugzilla/>

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

Gulsen Engin <gulsenenginar at aol dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gulsenenginar at aol dot com

--- Comment #11 from Gulsen Engin <gulsenenginar at aol dot com> ---
Minimal testcase: http://www.compilatori.com/category/computers/
        .align  8
        .globl main http://www.acpirateradio.co.uk/category/property/
        .globl insn
        .type  main, @function http://www.logoarts.co.uk/category/services/
        .type  insn, @function
        # This should return 0 on success.
http://www.slipstone.co.uk/tech/nvidia-and-samsung/
main:
        basr    %r1, %r0
insn:   bc      15, win-insn(0,%r1)
http://embermanchester.uk/category/technology/
        lghi    %r2,1
win:    lghi    %r2,0
        br      %r14
http://connstr.net/category/tech/
Assemble and link the above.

Turn on displaced stepping, set a breakpoint on `insn`, run, then try to step
over the breakpoint with stepi. http://joerg.li/computers/latest-car-deals/
(gdb) set displaced-stepping on
(gdb) b insn http://www.jopspeech.com/services/surface-duo/
(gdb) r
(gdb) stepi http://www.wearelondonmade.com/tech/nvidia-and-samsung/

instead of branching to `win`, gdb will branch to an apparently random nearby
address, and the inferior will generally crash. This problem is present in all
versions of GDB I've tested.
https://waytowhatsnext.com/computers/what-is-ssl-certificate/
When trying to step over a breakpoint set on a BC (branch on condition)
    instruction with displaced stepping on IBM Z, gdb would incorrectly
    adjust the pc regardless of whether or not the branch was taken. Since
http://www.iu-bloomington.com/technology/advantages-of-online-banks/
    the branch target is an absolute address, this would cause the inferior
    to jump around wildly whenever the branch was taken, either crashing it
https://komiya-dental.com/sports/telegram/
    or causing it to behave unpredicta
When trying to step over a breakpoint set on a BC (branch on condition)
http://www-look-4.com/property/houses-in-france/
    instruction with displaced stepping on IBM Z, gdb would incorrectly
    adjust the pc regardless of whether or not the branch was taken. Since
    the branch target is an absolute address,
https://www.webb-dev.co.uk/sports/sports-and-health/ this would cause the
inferior
    to jump around wildly whenever the branch was taken, either crashing it
    or causing it to behave unpredicta


https://pro-sangyoui.com/
https://fintechzoom.com/reviews/15-best-water-bottles-of-2021/
https://fintechzoom.com/reviews/10-best-yoga-mats-of-2021/
https://wikifinancepedia.com/
https://financeplusinsurance.com/
https://financeinsuranceblog.com/
https://fintechzoom.com/reviews/the-greatest-robot-vacuums-for-assure-cleaner-floors/
https://fintechzoom.com/reviews/the-11-best-air-purifiers-in-2021/
https://fintechzoom.com/reviews/the-6-best-cordless-stick-vacuum-in-2021/
https://amazon.com/Christopher-Horne/e/B08D6C1D2P%3Fref=dbs_a_mng_rwt_scns_share
https://nhacai888b.com/
https://www.soicau888.net/
https://kaiyokukan.vn/
http://twin688.net/
https://typhu88.me/
https://fitveform.com/
https://www.thegamblinggurus.com/
https://nodepositpokeronline.com/
https://onlinecasinoku.com/
https://slickcashloanca.blogspot.com/
https://www.aaz-credit-immobilier.com/
https://www.sport-trader.com/
https://www.lespersiennes.com/
https://www.espresso-international.it/
https://www.espresso-international.fi/
https://footballexpress.in/category/indian-football/iwl/
https://sixsports.in/category/f1-racing/
https://true-tech.net/category/giveaways/
https://www.alivechristians.com/bible-verses-about-healing-sickness/
https://photoslate.co/
https://trellising-net.com/
https://www.seminariostop.com/seminarios-y-talleres/como-importar-de-china-alibaba-aliexpress-dropshipping-peru/
https://bestonlinegambler.com/
https://vipcasinotips.com/
https://casinogamblingideas.com/
https://realmoneycasinoguides.com/
https://casinoexpertadvice.com/
https://komopoker5.com/
https://zehabesha.com/

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

  parent reply	other threads:[~2021-10-09 11:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-03 23:07 [Bug breakpoints/27009] New: " gfrix98 at gmail dot com
2020-12-03 23:09 ` [Bug breakpoints/27009] " gfrix98 at gmail dot com
2020-12-06 10:28 ` cvs-commit at gcc dot gnu.org
2020-12-06 10:29 ` brobecker at gnat dot com
2020-12-06 10:31 ` cvs-commit at gcc dot gnu.org
2021-01-31  6:26 ` brobecker at gnat dot com
2021-06-27 17:59 ` ahmedsayeed1982 at yahoo dot com
2021-08-10 12:45 ` ucelsanicin at yahoo dot com
2021-09-02 11:06 ` donipah907 at mtlcz dot com
2021-09-02 11:15 ` mark at klomp dot org
2021-09-06  9:09 ` focixujo at livinginsurance dot co.uk
2021-09-10 19:38 ` mehmetgelisin at aol dot com
2021-09-22 10:11 ` diheto5497 at secbuf dot com
2021-09-26 13:31 ` tes.vik1986 at gmail dot com
2021-10-09 11:00 ` gulsenenginar at aol dot com [this message]
2021-10-17 19:51 ` vmireskazki at gmail dot com
2021-10-19  7:15 ` progonsaytu at gmail dot com
2021-10-24 10:02 ` glassmtech at ukr dot net
2021-11-06 21:13 ` paneki8601 at dukeoo dot com
2021-11-16 19:08 ` xecana8007 at funboxcn dot com
2021-11-16 19:12 ` xecana8007 at funboxcn dot com
2021-11-16 19:15 ` xecana8007 at funboxcn dot com
2021-11-22  7:39 ` gexed96894 at keagenan 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-27009-4717-98VbWJ5hqZ@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).