DPDK usage discussions
 help / color / Atom feed
* Re: [dpdk-users] segmentation fault after using rte_malloc()
@ 2020-07-24  4:07 Logan Von
  0 siblings, 0 replies; 12+ messages in thread
From: Logan Von @ 2020-07-24  4:07 UTC (permalink / raw)
  To: users

Hi,

I face the same issue today, and later I found that although the program can pass the compilation process, I forgot to include the rte_malloc.h header file.

Hope this can help you. 

Best regards,
Logan Von


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [dpdk-users] segmentation fault after using rte_malloc()
@ 2019-04-19  1:11 曾懷恩
  2019-04-19  2:59 ` Stephen Hemminger
  0 siblings, 1 reply; 12+ messages in thread
From: 曾懷恩 @ 2019-04-19  1:11 UTC (permalink / raw)
  To: users

	Hi all, 

	i have 1 problem while using rte_malloc

	Every time I use this function and use the memory it returns, it shows segmentation fault(core dump)

	Is something wrong?

	thanks.


	rte init …
	………...
	unsigned char *str1;
	printf("str1 addr = %x\n", str1);
	str1 = rte_malloc(NULL,2,RTE_CACHE_LINE_SIZE);
	printf("str1 addr = %x\n", str1);
	str1[0] = 'a’; //segmentation fault here
	str1[1] = '\0';

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

end of thread, back to index

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24  4:07 [dpdk-users] segmentation fault after using rte_malloc() Logan Von
  -- strict thread matches above, loose matches on Subject: below --
2019-04-19  1:11 曾懷恩
2019-04-19  2:59 ` Stephen Hemminger
2019-04-19  3:31   ` 曾懷恩
2019-04-20 20:29     ` Wiles, Keith
2019-04-22  6:43       ` 曾懷恩
2019-04-22 13:09         ` Wiles, Keith
2019-04-23 17:34           ` 曾懷恩
2019-04-24 14:22             ` 曾懷恩
2019-04-24 14:38               ` Wiles, Keith
2019-04-25  3:55                 ` 曾懷恩
2019-04-25  4:18                   ` Wiles, Keith

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox