From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 541C242595; Thu, 14 Sep 2023 10:25:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2E1E40293; Thu, 14 Sep 2023 10:25:44 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 535F440289 for ; Thu, 14 Sep 2023 10:25:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694679943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NnsbhLlgxGfzPW8ddH5a/Vkvvi6/VlOZaR01fkZ/4CA=; b=JoTQKzKt/wV72daexVmS5NoAW8LDlikBzC1zJXgnNUw7kkdatlgweBRssydmCnO3axtYrf zz3EZ5X5tAA1nQD54uIdDn1YwAi5+fyrSqPH8XswvLSaOvTjsBAWYrgrrGpCwN2y+llEMS 7MSJTKer333CJJ1YaIK+ZQqooKKY/F0= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-49-Vb3Jwz48OYWx4yKjUel8mA-1; Thu, 14 Sep 2023 04:25:42 -0400 X-MC-Unique: Vb3Jwz48OYWx4yKjUel8mA-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2bfbdcd728cso8582321fa.2 for ; Thu, 14 Sep 2023 01:25:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694679941; x=1695284741; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NnsbhLlgxGfzPW8ddH5a/Vkvvi6/VlOZaR01fkZ/4CA=; b=fQZ18nYBqLqhIgaf6UlQz6i+CwngJerYoLVv3boEACoNG6RY4YemjMP8MTr/iJ4qk6 6106KTjPLBXDGT9G8cOfMsL9KbNloQLKQLKX+2QqbswLLqYYQaxaEyTvSIjI/A9xXCcy 175zo1tdyzuz9Pku8fxCKaVtTpzfKD2ur4hIzBEa+7NvC5PX4NiGUUQx5Yta+BgxNVC1 blYETOJuFYHl1Hu1ei/289PjNE9vYe0tcQTWztR913m2AIRVuMc/kJqZ4bJwfD2umuIZ hkq0plWXV2EAtaRL0z8s41BpkBqz8R1etxWOrOvvK2ZbpvaAVmlhfBmlzZix9+6E2oNV /pnA== X-Gm-Message-State: AOJu0YzxktEcCYGlENGAu5ddhJqnE1qirRXluLhmSbnvyegxLG1K37EF E+5MywlHJZzn+0dibeWZ9gPOrr4/NpuFK89AHg3K5LNaqtYwOOlq3bd75CxaMFUm9yoSrIO6d9s XkL5Wfce/DqoFNmSDes4= X-Received: by 2002:a2e:b00e:0:b0:2bd:bc9:30aa with SMTP id y14-20020a2eb00e000000b002bd0bc930aamr4477578ljk.23.1694679940849; Thu, 14 Sep 2023 01:25:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0YC1CSPnEXfSJmXWHzxKMeF5+bpHakhXk0kAzmKGlchRhRTOIUj5yR3hUSbIQzYV66Nt7a45BjqgARcW9u1M= X-Received: by 2002:a2e:b00e:0:b0:2bd:bc9:30aa with SMTP id y14-20020a2eb00e000000b002bd0bc930aamr4477562ljk.23.1694679940467; Thu, 14 Sep 2023 01:25:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Marchand Date: Thu, 14 Sep 2023 10:25:29 +0200 Message-ID: Subject: Re: confusion about dpdk asan To: =?UTF-8?B?5p2o5L2z5piK?= Cc: "dev@dpdk.org" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 Hello, On Thu, Sep 14, 2023 at 9:51=E2=80=AFAM =E6=9D=A8=E4=BD=B3=E6=98=8A wrote: > > Hello > I am tring to run dpdk example with asan. > I have compile dpdk and example as directed by link https://github.com/DP= DK/dpdk/blob/v21.11/doc/guides/prog_guide/asan.rst > But I always get result as follow: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D20078=3D=3D ERROR: AddressSanitizer: SEGV on unknown address 0x0000= 00000000 (pc 0x000000d28b92 sp 0x7ffc6a983b90 bp 0x7ffc6a983bb0 T0) > AddressSanitizer can not provide additional info. > #0 0xd28b91 (/root/dpdk-21.11/build/examples/dpdk-helloworld+0xd28b91= ) > #1 0xd28fc1 (/root/dpdk-21.11/build/examples/dpdk-helloworld+0xd28fc1= ) > #2 0xd2901d (/root/dpdk-21.11/build/examples/dpdk-helloworld+0xd2901d= ) > #3 0x56dac3 (/root/dpdk-21.11/build/examples/dpdk-helloworld+0x56dac3= ) > #4 0x7ff4b3eed554 (/usr/lib64/libc-2.17.so+0x22554) > #5 0x56d958 (/root/dpdk-21.11/build/examples/dpdk-helloworld+0x56d958= ) > =3D=3D20078=3D=3D ABORTING > > It's not same as what i see in asan.rst.This result doesn't look right. > My env: > Gcc :9.3.0 > Libasan: 4.8.5 Hard to tell what is wrong here (especially without debug symbols). Some quick questions for now: Are you triggering this segfault with ASan disabled (iow: simply configuring your build env with meson setup )? Did you change something in DPDK or the example sources? --=20 David Marchand