On Tue, 17 Dec 2024 20:39:12 +0000
bugzi...@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: alia...@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);
      |                 ^~~~~~~~~~~~~~~~~~

Reply via email to