DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] [pktgen] Segfault at cli_start()
       [not found] <957637406.71956207.1504691968572.JavaMail.zimbra@viettel.com.vn>
@ 2017-09-06 10:18 ` longtb5
  2017-09-06 13:51   ` Wiles, Keith
  0 siblings, 1 reply; 2+ messages in thread
From: longtb5 @ 2017-09-06 10:18 UTC (permalink / raw)
  To: users

Hi, 

I'm running a VM on Ubuntu 16.04 with VMXNET3. 

I have managed to compile and successfully run DPDK (v17.11.0-rc0) and the sample apps. However, pktgen (v3.40) ran into a segfault without me doing anything yet. Everything seemed to be OK until the pktgen> prompt showed up. Here's the message.

$ sudo .app/x86_64-native-linuxapp-gcc/pktgen

Pktgen:/> 
====== Pktgen got a Segment Fault

Obtained 11 stack frames.
app/x86_64-native-linuxapp-gcc/pktgen() [0x468ba5]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f1e618de4b0]
app/x86_64-native-linuxapp-gcc/pktgen() [0x6c7c70]
app/x86_64-native-linuxapp-gcc/pktgen(rte_eth_stats_get+0x79) [0x4a3fe9]
app/x86_64-native-linuxapp-gcc/pktgen(pktgen_process_stats+0xa9) [0x46f0f9]
app/x86_64-native-linuxapp-gcc/pktgen(rte_timer_manage+0x526) [0x48ca96]
app/x86_64-native-linuxapp-gcc/pktgen(cli_start+0x26d) [0x71276d]
app/x86_64-native-linuxapp-gcc/pktgen(pktgen_cli_start+0xb) [0x4509bb]
app/x86_64-native-linuxapp-gcc/pktgen(main+0x7a6) [0x447b86]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f1e618c9830]
app/x86_64-native-linuxapp-gcc/pktgen(_start+0x29) [0x44a639]

The same problem showed up whether I ran pktgen by the py script, invoked directly, supplied the basic EAL args, pktgen args or not.

GDB gave this

Pktgen:/> 
Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault.
0x00000000006c7c70 in vmxnet3_dev_stats_get ()

Thanks.

BR.

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

* Re: [dpdk-users] [pktgen] Segfault at cli_start()
  2017-09-06 10:18 ` [dpdk-users] [pktgen] Segfault at cli_start() longtb5
@ 2017-09-06 13:51   ` Wiles, Keith
  0 siblings, 0 replies; 2+ messages in thread
From: Wiles, Keith @ 2017-09-06 13:51 UTC (permalink / raw)
  To: longtb5; +Cc: users


> On Sep 6, 2017, at 5:18 AM, longtb5@viettel.com.vn wrote:
> 
> Hi, 
> 
> I'm running a VM on Ubuntu 16.04 with VMXNET3. 
> 
> I have managed to compile and successfully run DPDK (v17.11.0-rc0) and the sample apps. However, pktgen (v3.40) ran into a segfault without me doing anything yet. Everything seemed to be OK until the pktgen> prompt showed up. Here's the message.

This does not appear to be a problem in Pktgen, but in the VMXNET3 driver. You may want to contact the driver maintainer in the Maintainers file and change the subject to reference the VMXNET3 driver to get others attention instead of Pktgen.

One of the first things Pktgen does is start polling the ethernet stats of the ports and this is why it happens in Pktgen an possibly not other applications that do not poll the stats.

> 
> $ sudo .app/x86_64-native-linuxapp-gcc/pktgen
> 
> Pktgen:/> 
> ====== Pktgen got a Segment Fault
> 
> Obtained 11 stack frames.
> app/x86_64-native-linuxapp-gcc/pktgen() [0x468ba5]
> /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f1e618de4b0]
> app/x86_64-native-linuxapp-gcc/pktgen() [0x6c7c70]
> app/x86_64-native-linuxapp-gcc/pktgen(rte_eth_stats_get+0x79) [0x4a3fe9]
> app/x86_64-native-linuxapp-gcc/pktgen(pktgen_process_stats+0xa9) [0x46f0f9]
> app/x86_64-native-linuxapp-gcc/pktgen(rte_timer_manage+0x526) [0x48ca96]
> app/x86_64-native-linuxapp-gcc/pktgen(cli_start+0x26d) [0x71276d]
> app/x86_64-native-linuxapp-gcc/pktgen(pktgen_cli_start+0xb) [0x4509bb]
> app/x86_64-native-linuxapp-gcc/pktgen(main+0x7a6) [0x447b86]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f1e618c9830]
> app/x86_64-native-linuxapp-gcc/pktgen(_start+0x29) [0x44a639]
> 
> The same problem showed up whether I ran pktgen by the py script, invoked directly, supplied the basic EAL args, pktgen args or not.
> 
> GDB gave this
> 
> Pktgen:/> 
> Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault.
> 0x00000000006c7c70 in vmxnet3_dev_stats_get ()
> 
> Thanks.
> 
> BR.
> 

Regards,
Keith

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

end of thread, other threads:[~2017-09-06 13:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <957637406.71956207.1504691968572.JavaMail.zimbra@viettel.com.vn>
2017-09-06 10:18 ` [dpdk-users] [pktgen] Segfault at cli_start() longtb5
2017-09-06 13:51   ` Wiles, Keith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).