From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A4A6E7717F for ; Tue, 17 Dec 2024 20:39:16 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DC982406B6; Tue, 17 Dec 2024 21:39:14 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 40E91402B1 for ; Tue, 17 Dec 2024 21:39:13 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 2289B45ED2; Tue, 17 Dec 2024 21:39:13 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/core Bug 1605] lib/eal build failure with address and undefined behavior sanitizers Date: Tue, 17 Dec 2024 20:39:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 25.03 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alialnu@nvidia.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: multipart/alternative; boundary=17344679520.B7beE964F.1084050 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --17344679520.B7beE964F.1084050 Date: Tue, 17 Dec 2024 21:39:12 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1605 Bug ID: 1605 Summary: lib/eal build failure with address and undefined behavior sanitizers Product: DPDK Version: 25.03 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: alialnu@nvidia.com Target Milestone: --- $ meson --werror -Db_sanitize=3Daddress,undefined build && ninja -C build [..] /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: writing= 4 bytes into a region of size 0 [-Werror=3Dstringop-overflow=3D] [..] OS: Ubuntu 22.04 Compiler: gcc 11.2.0 Meson: 0.61.2 Ninja-build: 1.10.1 Build passes with "-Db_sanitize=3Daddress". --=20 You are receiving this mail because: You are the assignee for the bug.= --17344679520.B7beE964F.1084050 Date: Tue, 17 Dec 2024 21:39:12 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1605
Summary lib/eal build failure with address and undefined behavior san= itizers
Product DPDK
Version 25.03
Hardware All
OS All
Status UNCONFIRMED
Severity normal
Priority Normal
Component core
Assignee dev@dpdk.org
Reporter alialnu@nvidia.com
Target Milestone ---

$ meson --werror -Db_sanitize=3Dad=
dress,undefined build && ninja -C build
[..]
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: writing=
 4
bytes into a region of size 0 [-Werror=3Dstringop-overflow=3D]
[..]

OS: Ubuntu 22.04
Compiler: gcc 11.2.0
Meson: 0.61.2
Ninja-build: 1.10.1

Build passes with "-Db_sanitize=3Daddress".
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17344679520.B7beE964F.1084050-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id C15A8E77187 for ; Wed, 18 Dec 2024 16:52:50 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D36940DF5; Wed, 18 Dec 2024 17:52:50 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 9CC8840DDE for ; Wed, 18 Dec 2024 17:52:48 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-728e729562fso5867629b3a.0 for ; Wed, 18 Dec 2024 08:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1734540767; x=1735145567; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Sk5K4kH5AxNx4kAx2y0iewbrjkkgk5RJmoMaA21BrQA=; b=E5+qkxmMh+5xGtjQTVnKRhoJ7yU7fXYX6Sf9tJfmilDcJ3VWfOMZQ80u9EDCryCv++ d1JfDSFb51HEKJRPi3ziCe7vBHcfLvraXWch1dl9kPxFPU78H+ZNinJ2X/3EeDdRLARc VfUQra57Mfx4teJ41s7K5mYQXiGF03AxR34aMLrgWvcQ/QASdNp/sz/IDAMRaBjgQIjJ jRmXqXJFWT+DjW53hj6sMdx7o6XtLlIY2pmY7aMP9t39a15BhHnTUao/nyoR0OmRn02l w3dPYSWKLhjP6KojP8cJ100WCE23FBh5ckPsqFT9tBOlge+UWfIM74i0NFPA1FToGe+N B9zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734540767; x=1735145567; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Sk5K4kH5AxNx4kAx2y0iewbrjkkgk5RJmoMaA21BrQA=; b=P78YFOxYFnSgUDVq3II1gZCWOQSHeXYZ/NsZng7LwhF6b0iTfsS/4OrxNAm8SI8q0q nTeFNjoYVdRUnY40pcno7eu6Zw/tBU9ZKXpCTnQXndFEMvHVgaWWu9ZRjq/70mzRp3IL TB5U2iqULe/JxVt97lmYNj7yfyrcX9YaLlMHXm7kjzKkT7tpqGFGLDg2RPxVilSEtu7M rwFcu9VbYd9TDFzkaHzgZLOIGegelCZvE8MJcSzY0wHtvGsPebC3SeuIvI9qcR5wEDqC xqqdmv9SH/J1BKg49UJDXrmSokHLmfa2DeLqhBuW0Pyh2S+U33nAuehlzfeLNKKYgIuC A40A== X-Gm-Message-State: AOJu0Ywn3BNp/+Ng0ZveBDTRn/mZa+a+42FqDDwiljNfTnhHHMLWcDky I9TvNv+lc8QWSHnjgXMd3t/UHSweamy+d9o5i9qI+CZ0zxqE6UBgbYqaIt0bkIAtUKaUobEvXso 7 X-Gm-Gg: ASbGncv+sonsz2pVlmAcuY9TEE0HxXfyEE1TaiHPhvGbNY5tI3jpzOVZAvI76RVis9L 3aZ7CElI9N1ZOG/l2A9LSouafZoKkKMU0KHl5++LmeTyerxdpnoWkgGqh5HDXYwVCvxZDbfcaWG etYb6TGoHznWqfKFj4Pbh+hILm1zsb9cC6Vpyl1l9k6QYjhiPkrtWdGa1SZCF9xuB9kYqTwL6cb M8ednIqTMmWjIr3wdnvyR0HcTYR2u2vT9lr7KfR55al2wNXXzUBedmBPNOBH0/vePCyGStiLR7f elPWSpplOZ1ojv89Ae7AR5k0OK/g0r/1pA== X-Google-Smtp-Source: AGHT+IENMTFFcHs0VvBDr2mneafN92QqEq8sbVMHCbhmYOxcC3TSpSs4T1V/WbqH+H83s3D9EkfK5g== X-Received: by 2002:a05:6a00:300c:b0:724:f8d4:2b6e with SMTP id d2e1a72fcca58-72a8d1288aamr4557831b3a.4.1734540767467; Wed, 18 Dec 2024 08:52:47 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72918ac5280sm8739073b3a.35.2024.12.18.08.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 08:52:47 -0800 (PST) Date: Wed, 18 Dec 2024 08:52:45 -0800 From: Stephen Hemminger To: bugzilla@dpdk.org Cc: dev@dpdk.org Subject: Re: [DPDK/core Bug 1605] lib/eal build failure with address and undefined behavior sanitizers Message-ID: <20241218085245.3aabb2f8@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, 17 Dec 2024 20:39:12 +0000 bugzilla@dpdk.org wrote: > https://bugs.dpdk.org/show_bug.cgi?id=3D1605 >=20 > Bug ID: 1605 > Summary: lib/eal build failure with address and undefined > behavior sanitizers > Product: DPDK > Version: 25.03 > Hardware: All > OS: All > Status: UNCONFIRMED > Severity: normal > Priority: Normal > Component: core > Assignee: dev@dpdk.org > Reporter: alialnu@nvidia.com > Target Milestone: --- >=20 > $ meson --werror -Db_sanitize=3Daddress,undefined build && ninja -C build > [..] > /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: error: writi= ng 4 > bytes into a region of size 0 [-Werror=3Dstringop-overflow=3D] > [..] >=20 > OS: Ubuntu 22.04 > Compiler: gcc 11.2.0 > Meson: 0.61.2 > Ninja-build: 1.10.1 >=20 > Build passes with "-Db_sanitize=3Daddress". >=20 Doing this found some other bugs: [182/3218] Compiling C object drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_po= rtal_dpaa2_hw_dpio.c.o ../drivers/bus/fslmc/portal/dpaa2_hw_dpio.c: In function =E2=80=98dpaa2_cre= ate_dpio_device=E2=80=99: ../drivers/bus/fslmc/portal/dpaa2_hw_dpio.c:607:1: warning: pointer =E2=80= =98dpio_dev=E2=80=99 used after =E2=80=98rte_free=E2=80=99 [-Wuse-after-fre= e] 607 | } | ^ ../drivers/bus/fslmc/portal/dpaa2_hw_dpio.c:600:17: note: call to =E2=80=98= rte_free=E2=80=99 here 600 | rte_free(dpio_dev); | ^~~~~~~~~~~~~~~~~~