From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1F437386FC08; Sun, 9 May 2021 08:51:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F437386FC08 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug threads/27812] [m32] linux-nat.c:1765: internal-error: virtual void linux_nat_target::resume(ptid_t, int, gdb_signal): Assertion `signo == GDB_SIGNAL_0' failed Date: Sun, 09 May 2021 08:51:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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: Sun, 09 May 2021 08:51:15 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27812 --- Comment #10 from Tom de Vries --- I tried to modify the example a bit, because sleep saves and restores errno= , so I was not sure how reliable the perror was. So I've added: ... #include static inline unsigned int mysleep (unsigned int seconds) { struct timespec ts =3D { 0, 0 }; ts.tv_sec =3D (time_t) seconds; if (nanosleep (&ts, &ts) < 0) { perror ("mysleep"); return ts.tv_sec; } return 0; } #define sleep(s) mysleep (s) ... Interestingly, I still got: ... mysleep: Invalid argument^M ... More interestingly, I ran into: ... /home/vries/gdb_versions/devel/src/gdb/linux-nat.c:1914: internal-error: wa= it returned unexpected status 0x86^M ... --=20 You are receiving this mail because: You are on the CC list for the bug.=