DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK/core Bug 1605] lib/eal build failure with address and undefined behavior sanitizers
@ 2024-12-17 20:39 bugzilla
  2024-12-18 16:52 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2024-12-17 20:39 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 927 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1605

            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=address,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=stringop-overflow=]
[..]

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

Build passes with "-Db_sanitize=address".

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 2820 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [DPDK/core Bug 1605] lib/eal build failure with address and undefined behavior sanitizers
  2024-12-17 20:39 [DPDK/core Bug 1605] lib/eal build failure with address and undefined behavior sanitizers bugzilla
@ 2024-12-18 16:52 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2024-12-18 16:52 UTC (permalink / raw)
  To: bugzilla; +Cc: dev

On Tue, 17 Dec 2024 20:39:12 +0000
bugzilla@dpdk.org wrote:

> https://bugs.dpdk.org/show_bug.cgi?id=1605
> 
>             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=address,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=stringop-overflow=]
> [..]
> 
> OS: Ubuntu 22.04
> Compiler: gcc 11.2.0
> Meson: 0.61.2
> Ninja-build: 1.10.1
> 
> Build passes with "-Db_sanitize=address".
> 


Doing this found some other bugs:
[182/3218] Compiling C object drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_portal_dpaa2_hw_dpio.c.o
../drivers/bus/fslmc/portal/dpaa2_hw_dpio.c: In function ‘dpaa2_create_dpio_device’:
../drivers/bus/fslmc/portal/dpaa2_hw_dpio.c:607:1: warning: pointer ‘dpio_dev’ used after ‘rte_free’ [-Wuse-after-free]
  607 | }
      | ^
../drivers/bus/fslmc/portal/dpaa2_hw_dpio.c:600:17: note: call to ‘rte_free’ here
  600 |                 rte_free(dpio_dev);
      |                 ^~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-18 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-17 20:39 [DPDK/core Bug 1605] lib/eal build failure with address and undefined behavior sanitizers bugzilla
2024-12-18 16:52 ` Stephen Hemminger

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 NNTP newsgroup(s).