From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 5766118F for ; Fri, 19 Dec 2014 09:29:26 +0100 (CET) Received: by mail-wi0-f182.google.com with SMTP id h11so921484wiw.15 for ; Fri, 19 Dec 2014 00:29:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=WSD56dfb3je4dQQuEQgJsKX5T2g5IvMTtZcyfYyZsBQ=; b=PUciZ1VZ3USXIPzW+OA5MRd4iYTA5VMMCIsHyC7h3w2e03qb6PKeiOkMSNPh7CY9fU UHD9xQn+Q7Y0o+wG+GXlZr7j480mc1wDUQ20snQQoSgDmojiEosweYv8HBGoab1pnAjP N35ZQm8PnohxxL3Eonh9PYFV/+tj6ul9y8cYsrd7TpiMgSvsMcCJEhXCOARqLiA1Bb1A H1nJ4PLBB4gWYlLhpr0n+Qhcjv7gLNlZ/jpVH7M9C75pv6Mr0XU11iYbksqjlCe91K02 PgARdnkqLIFeAugl15Af0RxWKLbjbD0qskD8eKcH3jkWFhTmm2/7QV2yq8fW6LymDtQR UzUQ== X-Gm-Message-State: ALoCoQlp67crruuhNJxjzkqooyNtAYKfhNP78TAwHGJeyHrTShXAaC5p4m5l7ou0YKn6Qnx4yw/q X-Received: by 10.181.12.17 with SMTP id em17mr3397247wid.45.1418977766109; Fri, 19 Dec 2014 00:29:26 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id eu15sm1458234wid.18.2014.12.19.00.29.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Dec 2014 00:29:25 -0800 (PST) From: Thomas Monjalon To: Michael Qiu Date: Fri, 19 Dec 2014 09:28:59 +0100 Message-ID: <13515017.Dz1pkeJq4x@xps13> Organization: 6WIND User-Agent: KMail/4.14.3 (Linux/3.17.4-1-ARCH; KDE/4.14.3; x86_64; ; ) In-Reply-To: <1418972358-17130-1-git-send-email-michael.qiu@intel.com> References: <1418897809-14674-1-git-send-email-michael.qiu@intel.com> <1418972358-17130-1-git-send-email-michael.qiu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2] ixgbe: fix segmentation fault when start secondary process X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2014 08:29:26 -0000 2014-12-19 14:59, Michael Qiu: > EAL: probe driver: 8086:10fb rte_ixgbe_pmd > EAL: PCI memory mapped at 0x7f18c2a00000 > EAL: PCI memory mapped at 0x7f18c2a80000 > Segmentation fault (core dumped) > > This is introduced by commit: 46bc9d75 > ixgbe: fix multi-process support > When start primary process with command line: > ./app/test/test -n 1 -c ffff -m 64 > then start the second one: > ./app/test/test -n 1 --proc-type=secondary --file-prefix=rte > This segment-fault will occur. > > Root cause is test app on primary process only starts device, but > the queue need initialized by manually command line. > So the tx queue is still NULL when secondary process startup. > > Reported-by: Yong Liu > Signed-off-by: Michael Qiu > --- > v2 --> v1: > Log clean up Clean-up failed: no need of \n in PMD_INIT_LOG ;) > + PMD_INIT_LOG(INFO, "No TX queues configured yet. " > + "Using default TX function\n"); -- Thomas