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 1088EA0C41; Tue, 11 May 2021 09:50:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F73440140; Tue, 11 May 2021 09:50:48 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 754F54003E for ; Tue, 11 May 2021 09:50:47 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 5FE1BA0C42; Tue, 11 May 2021 09:50:47 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Tue, 11 May 2021 07:50:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: viktorin@cesnet.cz 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: 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 MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 701] mlx5: reading xstats smashes stack 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D701 Bug ID: 701 Summary: mlx5: reading xstats smashes stack Product: DPDK Version: 20.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: viktorin@cesnet.cz Target Milestone: --- When reading xstats via mlx5 driver *before the port* is started, such application crashes with "stack smashing detected". After the port is start= ed (and then stoped), it does not happen anymore. Terminal 1: # dpdk-testpmd -a 0000:04:00.0 -- -i --disable-device-start ... EAL: RTE Version: 'DPDK 20.11.1' ... EAL: Probe PCI driver: mlx5_pci (15b3:101d) device: 0000:04:00.0 (socket 0) ... testpmd> Terminal 2: # dpdk-proc-info -- --xstats Device 0000:04:00.1 is not driven by the primary process mlx5_pci: can not attach rte ethdev mlx5_pci: probe of PCI device 0000:04:00.1 aborted after encountering an er= ror: Cannot allocate memory common_mlx5: Failed to load driver =3D mlx5_pci. EAL: Requested device 0000:04:00.1 cannot be used EAL: Cannot find resource for device EAL: No legacy callbacks, legacy socket not created ... *** stack smashing detected ***: dpdk-proc-info terminated =3D=3D=3D=3D=3D=3D=3D Backtrace: =3D=3D=3D=3D=3D=3D=3D=3D=3D /lib64/libc.so.6(__fortify_fail+0x37)[0x7fd76cdf9697] /lib64/libc.so.6(+0x118652)[0x7fd76cdf9652] /usr/lib64/dpdk/pmds-21.0/librte_net_mlx5.so.21.0(+0x1b41e4)[0x7fd7602271e4] =3D=3D=3D=3D=3D=3D=3D Memory map: =3D=3D=3D=3D=3D=3D=3D=3D ... --=20 You are receiving this mail because: You are the assignee for the bug.=