From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5CCC3385AC3C; Fri, 10 Sep 2021 19:38:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5CCC3385AC3C From: "mehmetgelisin at aol dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/27009] [s390] GDB branches randomly for BC instruction while displaced stepping Date: Fri, 10 Sep 2021 19:38:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mehmetgelisin at aol dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 19:38:41 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27009 Mehmet gelisin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin at aol dot c= om --- Comment #8 from Mehmet gelisin --- Actually, I made some progress. The solib-search-path isn't sufficient, I think GDB opens /lib/libpthread.so.0 on my system. http://www-look-4.com/ = It would be more appropriate to use "set sysroot" in this situation. When set= ting the sysroot, to the base of what you provided, then the correct /lib/libpthread.so.0 is loaded by GDB. http://www.compilatori.com/ Another note for those trying to reproduce: if you have a --enable-targets= =3Dall GDB, it will (erroneously) http://www.wearelondonmade.com/ detect the core = as having the Symbian osabi and then tell you that it doesn't know how to hand= le cores. Use "set osabi GNU/Linux" to force it to use that osabi. http://www.jopspeech.com/ So now the status is that I do get a crash, but I think it's not the same as you, I think it's earlier. http://joerg.li/ I build with --enable-ubsan, and that looks like an undefined behabior sanitizer message $ ../gdb -nx --data-directory=3D../data-directory http://connstr.net/=20= =20=20=20=20=20=20=20=20=20=20 (gdb) set osabi GNU/Linux=20 (gdb) set sysroot /home/simark/build/binutils-gdb/gdb/repo (gdb) file Foo Reading symbols from Foo... http://embermanchester.uk/=20 (gdb) core-file Foo-core=20 warning: Can't open file http://www.slipstone.co.uk/=20 /media/mmcblk0p1/install/usr/bin/Foo during file-backed mapping note proces= sing warning: Can't open file /lib/libm-2.21.so during file-backed mapping note processing warning: Can't open file /lib/libpthread-2.21.so during file-backed mapping note processing http://www.logoarts.co.uk/=20 warning: Can't open file /lib/libgcc_s.so.1 during file-backed mapping note processing warning: Can't open file /media/mmcblk0p1/install/usr/lib/libstdc++.so.6 du= ring file-backed mapping note processing warning: Can't open file /lib/libc-2.21.so http://www.acpirateradio.co.uk/= =20 during file-backed mapping note processing warning: Can't open file /lib/ld-2.21.so during file-backed mapping note processing [New LWP 29367] [New LWP 29368] https://waytowhatsnext.com/=20 warning: Could not load shared library symbols for 5 libraries, e.g. /lib/libc.so.6. Use the "info sharedlibrary" command to see the complete listing. Do you need "set solib-search-path" or "set sysroot"? https://www.webb-dev.co.uk/=20 warning: Unable to find libthread_db matching inferior's thread library, th= read debugging will not be available. warning: Unable to find libthread_db matching inferior's thread library, th= read debugging will not be available. http://www.iu-bloomington.com/=20 Core was generated by `./Foo'. Program terminated with signal SIGABRT, Aborted. #0 0xb6c3809c in pthread_cond_wait () from /home/simark/build/binutils-gdb/gdb/repo/lib/libpthread.so.0 [Current thread is 1 (LWP 29367)] (gdb) bt /home/simark/src/binutils-gdb/gdb/arm-tdep.c:1551:30: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' https://komiya-dental.com/ --=20 You are receiving this mail because: You are on the CC list for the bug.=