From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B0FED3857340; Fri, 1 Dec 2023 17:19:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0FED3857340 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701451159; bh=BTSuNV51vXEItCJ6x/oHqW7tFWZ4+DMNXQQalsArkOQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YOpn7U+qm3oc8Fx7htyV/BudvMW8vgTs/xaPg+6iaOUDhefTlSFhmlRbnIva7HZSV aT3/hTq3PoLa99RjBW6Ej3XtTxfceur7BnZrOFUfyABiYWMQUrK4ZGBr4Z350FJGjI 0ZA8QAiPUoqO4MHV5UK7/UdG4NNtkrSObe3avcBc= From: "mark at klomp dot org" To: systemtap@sourceware.org Subject: [Bug runtime/31074] On aarch64 the systemtap.base/set_kernel.stp triggers "Unable to handle kernel paging request" Date: Fri, 01 Dec 2023 17:19:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31074 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #7 from Mark Wielaard --- (In reply to William Cohen from comment #6) > On aarch64 sizeof('\0') is returning 4 rather than 1 as expected for a > character. That is actually so on all arches. The confusing thing is that a character constant has type int. Which explains why sizeof ('a') is really sizeof (in= t) =3D=3D 4. While char c =3D 'a'; sizeof (c) =3D=3D 1 (sizeof (char)). Note that C and C++ differ here. In C++ character constants are type char a= nd so this program: #include int main () { printf ("sizeof literal char: %d\n", sizeof ('a')); } $ gcc -g -o c c.c $ ./c=20 sizeof literal char: 4 $ g++ -g -o c c.c $ ./c=20 sizeof literal char: 1 Aren't C and C++ fun? :) --=20 You are receiving this mail because: You are the assignee for the bug.=