Segmentation fault with VMA_TRACELEVEL=debug

46 views
Skip to first unread message

alexander....@gmail.com

unread,
Feb 20, 2016, 1:30:02 PM2/20/16
to libvma-dev
Hi,

I'm using VMA version 7.0.14 with OFED version 3.2.

When I spetify VMA_TRACELEVEL from debug to all it causes segfault.

Here is example with usage of libvma/tests/functionality/getsockname_test.c

1. Without VMA

# ./getsockname_test
Listening on port 47129
^C
#


2. With VMA, trace level default

# LD_PRELOAD=libvma.so ./getsockname_test
VMA INFO: ---------------------------------------------------------------------------
VMA INFO: VMA_VERSION: 7.0.14-0 Release built on Jan 28 2016 20:41:00
VMA INFO: Cmd Line: ./getsockname_test
VMA INFO: OFED Version: MLNX_OFED_LINUX-3.2-1.0.1.1:
VMA INFO: Log Level INFO
[VMA_TRACELEVEL]
VMA INFO: ---------------------------------------------------------------------------
Listening on port 58619
^C
#


3. With VMA, trace level debug

# LD_PRELOAD=libvma.so VMA_TRACELEVEL=debug ./getsockname_test
Pid: 24364 Tid: 24364 VMA INFO:
---------------------------------------------------------------------------
Pid: 24364 Tid: 24364 VMA INFO: VMA_VERSION: 7.0.14-0 Release built
on Jan 28 2016 20:41:00
Pid: 24364 Tid: 24364 VMA INFO: Cmd Line: ./getsockname_test
Pid: 24364 Tid: 24364 VMA DEBUG: Current Time: Sat Feb 20 18:11:09 2016
Pid: 24364 Tid: 24364 VMA DEBUG: Pid: 24364
Pid: 24364 Tid: 24364 VMA INFO: OFED Version: MLNX_OFED_LINUX-3.2-1.0.1.1:
Pid: 24364 Tid: 24364 VMA DEBUG: System: 4.2.0-27-lowlatency
Pid: 24364 Tid: 24364 VMA DEBUG: Architecture: x86_64
Pid: 24364 Tid: 24364 VMA DEBUG: Node: srv1
Pid: 24364 Tid: 24364 VMA DEBUG:
---------------------------------------------------------------------------
Pid: 24364 Tid: 24364 VMA INFO: Log Level DEBUG
[VMA_TRACELEVEL]
Pid: 24364 Tid: 24364 VMA INFO: Log Details 2
[VMA_LOG_DETAILS]
Pid: 24364 Tid: 24364 VMA DETAILS: Log Colors
Enabled [VMA_LOG_COLORS]
Pid: 24364 Tid: 24364 VMA DETAILS: Log File
[VMA_LOG_FILE]
Pid: 24364 Tid: 24364 VMA DETAILS: Stats File
[VMA_STATS_FILE]
Pid: 24364 Tid: 24364 VMA DETAILS: Stats shared memory directory
/tmp/ [VMA_STATS_SHMEM_DIR]
Pid: 24364 Tid: 24364 VMA DETAILS: Stats FD Num (max) 100
[VMA_STATS_FD_NUM]
Pid: 24364 Tid: 24364 VMA DETAILS: Conf File
/etc/libvma.conf [VMA_CONFIG_FILE]
Pid: 24364 Tid: 24364 VMA DETAILS: Application ID
VMA_DEFAULT_APPLICATION_ID [VMA_APPLICATION_ID]
Pid: 24364 Tid: 24364 VMA DETAILS: Polling CPU idle usage
Disabled [VMA_CPU_USAGE_STATS]
Pid: 24364 Tid: 24364 VMA DETAILS: SigIntr Ctrl-C Handle
Disabled [VMA_HANDLE_SIGINTR]
Pid: 24364 Tid: 24364 VMA DETAILS: SegFault Backtrace
Disabled [VMA_HANDLE_SIGSEGV]
Pid: 24364 Tid: 24364 VMA DETAILS: Ring allocation logic TX 0
(Ring per interface) [VMA_RING_ALLOCATION_LOGIC_TX]
Pid: 24364 Tid: 24364 VMA DETAILS: Ring allocation logic RX 0
(Ring per interface) [VMA_RING_ALLOCATION_LOGIC_RX]
Pid: 24364 Tid: 24364 VMA DETAILS: Ring migration ratio TX 100
[VMA_RING_MIGRATION_RATIO_TX]
Pid: 24364 Tid: 24364 VMA DETAILS: Ring migration ratio RX 100
[VMA_RING_MIGRATION_RATIO_RX]
Pid: 24364 Tid: 24364 VMA DETAILS: Ring limit per interface 0
(no limit) [VMA_RING_LIMIT_PER_INTERFACE]
Pid: 24364 Tid: 24364 VMA DETAILS: TCP max syn rate 0
(no limit) [VMA_TCP_MAX_SYN_RATE]
Pid: 24364 Tid: 24364 VMA DETAILS: Tx Mem Segs TCP
1000000 [VMA_TX_SEGS_TCP]
Pid: 24364 Tid: 24364 VMA DETAILS: Tx Mem Bufs
200000 [VMA_TX_BUFS]
Pid: 24364 Tid: 24364 VMA DETAILS: Tx QP WRE
3000 [VMA_TX_WRE]
Pid: 24364 Tid: 24364 VMA DETAILS: Tx Max QP INLINE 220
[VMA_TX_MAX_INLINE]
Pid: 24364 Tid: 24364 VMA DETAILS: Tx MC Loopback
Enabled [VMA_TX_MC_LOOPBACK]
Pid: 24364 Tid: 24364 VMA DETAILS: Tx non-blocked eagains
Disabled [VMA_TX_NONBLOCKED_EAGAINS]
Pid: 24364 Tid: 24364 VMA DETAILS: Tx Prefetch Bytes 256
[VMA_TX_PREFETCH_BYTES]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx Mem Bufs
200000 [VMA_RX_BUFS]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx QP WRE
16000 [VMA_RX_WRE]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx QP WRE BATCHING 64
[VMA_RX_WRE_BATCHING]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx Byte Min Limit
65536 [VMA_RX_BYTES_MIN]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx Poll Loops
100000 [VMA_RX_POLL]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx Poll Init Loops 0
[VMA_RX_POLL_INIT]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx UDP Poll OS Ratio 100
[VMA_RX_UDP_POLL_OS_RATIO]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx UDP HW TS Conversion 3
[VMA_RX_UDP_HW_TS_CONVERSION]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx Poll Yield
Disabled [VMA_RX_POLL_YIELD]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx Prefetch Bytes 256
[VMA_RX_PREFETCH_BYTES]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx Prefetch Bytes Before Poll 0
[VMA_RX_PREFETCH_BYTES_BEFORE_POLL]
Pid: 24364 Tid: 24364 VMA DETAILS: Rx CQ Drain Rate
Disabled [VMA_RX_CQ_DRAIN_RATE_NSEC]
Pid: 24364 Tid: 24364 VMA DETAILS: GRO max streams 32
[VMA_GRO_STREAMS_MAX]
Pid: 24364 Tid: 24364 VMA DETAILS: TCP 3T rules
Disabled [VMA_TCP_3T_RULES]
Pid: 24364 Tid: 24364 VMA DETAILS: ETH MC L2 only rules
Disabled [VMA_ETH_MC_L2_ONLY_RULES]
Pid: 24364 Tid: 24364 VMA DETAILS: Select Poll (usec)
100000 [VMA_SELECT_POLL]
Pid: 24364 Tid: 24364 VMA DETAILS: Select Poll OS Force
Disabled [VMA_SELECT_POLL_OS_FORCE]
Pid: 24364 Tid: 24364 VMA DETAILS: Select Poll OS Ratio 10
[VMA_SELECT_POLL_OS_RATIO]
Pid: 24364 Tid: 24364 VMA DETAILS: Select Skip OS 4
[VMA_SELECT_SKIP_OS]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ Drain Interval (msec) 10
[VMA_PROGRESS_ENGINE_INTERVAL]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ Drain WCE (max)
10000 [VMA_PROGRESS_ENGINE_WCE_MAX]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ Interrupts Moderation
Enabled [VMA_CQ_MODERATION_ENABLE]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ Moderation Count 48
[VMA_CQ_MODERATION_COUNT]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ Moderation Period (usec) 50
[VMA_CQ_MODERATION_PERIOD_USEC]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ AIM Max Count 560
[VMA_CQ_AIM_MAX_COUNT]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ AIM Max Period (usec) 250
[VMA_CQ_AIM_MAX_PERIOD_USEC]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ AIM Interval (msec) 250
[VMA_CQ_AIM_INTERVAL_MSEC]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ AIM Interrupts Rate (per sec)
5000 [VMA_CQ_AIM_INTERRUPTS_RATE_PER_SEC]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ Poll Batch (max) 16
[VMA_CQ_POLL_BATCH_MAX]
Pid: 24364 Tid: 24364 VMA DETAILS: CQ Keeps QP Full
Enabled [VMA_CQ_KEEP_QP_FULL]
Pid: 24364 Tid: 24364 VMA DETAILS: QP Compensation Level 256
[VMA_QP_COMPENSATION_LEVEL]
Pid: 24364 Tid: 24364 VMA DETAILS: Offloaded Sockets
Enabled [VMA_OFFLOADED_SOCKETS]
Pid: 24364 Tid: 24364 VMA DETAILS: Timer Resolution (msec) 10
[VMA_TIMER_RESOLUTION_MSEC]
Pid: 24364 Tid: 24364 VMA DETAILS: TCP Timer Resolution (msec) 100
[VMA_TCP_TIMER_RESOLUTION_MSEC]
Pid: 24364 Tid: 24364 VMA DETAILS: TCP control thread 0
(Disabled) [VMA_TCP_CTL_THREAD]
Pid: 24364 Tid: 24364 VMA DETAILS: TCP timestamp option 0
[VMA_TCP_TIMESTAMP_OPTION]
Pid: 24364 Tid: 24364 VMA DETAILS: Exception handling mode
-1(just log debug message) [VMA_EXCEPTION_HANDLING]
Pid: 24364 Tid: 24364 VMA DETAILS: Avoid sys-calls on tcp fd
Disabled [VMA_AVOID_SYS_CALLS_ON_TCP_FD]
Pid: 24364 Tid: 24364 VMA DETAILS: Delay after join (msec) 0
[VMA_WAIT_AFTER_JOIN_MSEC]
Pid: 24364 Tid: 24364 VMA DETAILS: Internal Thread Affinity -1
[VMA_INTERNAL_THREAD_AFFINITY]
Pid: 24364 Tid: 24364 VMA DETAILS: Internal Thread Cpuset
[VMA_INTERNAL_THREAD_CPUSET]
Pid: 24364 Tid: 24364 VMA DETAILS: Internal Thread Arm CQ
Disabled [VMA_INTERNAL_THREAD_ARM_CQ]
Pid: 24364 Tid: 24364 VMA DETAILS: Thread mode
Multi spin lock [VMA_THREAD_MODE]
Pid: 24364 Tid: 24364 VMA DETAILS: Buffer batching mode 1
(Batch and reclaim buffers) [VMA_BUFFER_BATCHING_MODE]
Pid: 24364 Tid: 24364 VMA DETAILS: Mem Allocate type 1
(Contig Pages) [VMA_MEM_ALLOC_TYPE]
Pid: 24364 Tid: 24364 VMA DETAILS: Num of UC ARPs 3
[VMA_NEIGH_UC_ARP_QUATA]
Pid: 24364 Tid: 24364 VMA DETAILS: UC ARP delay (msec)
10000 [VMA_NEIGH_UC_ARP_DELAY_MSEC]
Pid: 24364 Tid: 24364 VMA DETAILS: Num of neigh restart retries 1
[VMA_NEIGH_NUM_ERR_RETRIES]
Pid: 24364 Tid: 24364 VMA DETAILS: IPOIB support
Enabled [VMA_IPOIB]
Pid: 24364 Tid: 24364 VMA DETAILS: BF (Blue Flame)
Enabled [VMA_BF]
Pid: 24364 Tid: 24364 VMA DETAILS: fork() support
Enabled [VMA_FORK]
Pid: 24364 Tid: 24364 VMA DETAILS: close on dup2()
Enabled [VMA_CLOSE_ON_DUP2]
Pid: 24364 Tid: 24364 VMA DETAILS: MTU 0
(follow actual MTU) [VMA_MTU]
Pid: 24364 Tid: 24364 VMA DETAILS: MSS 0
(follow VMA_MTU) [VMA_MSS]
Pid: 24364 Tid: 24364 VMA DETAILS: TCP CC Algorithm 0
(LWIP) [VMA_TCP_CC_ALGO]
Pid: 24364 Tid: 24364 VMA DETAILS: Suppress IGMP ver. warning
Disabled [VMA_SUPPRESS_IGMP_WARNING]
Pid: 24364 Tid: 24364 VMA INFO:
---------------------------------------------------------------------------
Pid: 24364 Tid: 24364 VMA WARNING:
*************************************************************
Pid: 24364 Tid: 24364 VMA WARNING: * VMA is currently configured with
high log level *
Pid: 24364 Tid: 24364 VMA WARNING: * Application performance will
decrease in this log level! *
Pid: 24364 Tid: 24364 VMA WARNING: * This log level is recommended
for debugging purposes only *
Pid: 24364 Tid: 24364 VMA WARNING:
*************************************************************
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/module/mlx4_core/parameters/log_num_mgm_entry_size,
flags=0, mode=0x2) = 3
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=3)
Pid: 24364 Tid: 24364 VMA DEBUG: sock_redirect_main()
Pid: 24364 Tid: 24364 VMA DEBUG: ibv_fork_init() succeeded, fork()
may be used safely!!
Pid: 24364 Tid: 24364 VMA DEBUG: wakeup_pipe[epfd=0]:48:wakeup_pipe()
created wakeup pipe [RD=3, WR=4]
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/tmp//vmastat.24364, flags=0x42, mode=0x1f6) = 6
Pid: 24364 Tid: 24364 VMA DEBUG: vma_shmem_stats_open: file
'/tmp//vmastat.24364' fd 6 shared memory at 0x7fd2e7610000 with 100
max blocks
Pid: 24364 Tid: 24364 VMA DEBUG: evh:59:register_timer_event() timer
handler '0x106b9d0' registered PERIODIC timer for 10 msec (user data:
0)
Pid: 24364 Tid: 24364 VMA DEBUG: evh:314:start_thread() VMA Internal
thread affinity not set.
Pid: 24364 Tid: 24364 VMA DEBUG: evh:335:start_thread() Started event
handler thread
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: do_wakeup()
Pid: 24364 Tid: 24369 VMA DEBUG: evh:251:event_handler_thread()
Entering internal thread, id = 140543770318592
Pid: 24364 Tid: 24364 VMA DEBUG: nl_wrapper:122:netlink_wrapper()
---> netlink_route_listener CTOR
Pid: 24364 Tid: 24364 VMA DEBUG: nl_wrapper:126:netlink_wrapper()
<--- netlink_route_listener CTOR
Pid: 24364 Tid: 24369 VMA DEBUG: ENTER: remove_wakeup_fd()
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/misc/rdma_cm/abi_version, flags=0,
mode=0x106bdb0) = 7
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=7)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/infiniband_verbs/abi_version, flags=0,
mode=0x106bdb0) = 7
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=7)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/infiniband_verbs/uverbs0/ibdev, flags=0,
mode=0x1073e70) = 8
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=8)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/infiniband_verbs/uverbs0/abi_version, flags=0,
mode=0x1073e70) = 8
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=8)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/infiniband_verbs/uverbs0/device/vendor, flags=0,
mode=0x106d120) = 7
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=7)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/infiniband_verbs/uverbs0/device/device, flags=0,
mode=0x106d190) = 7
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=7)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/infiniband/mlx4_0/node_type, flags=0,
mode=0x106d1d0) = 7
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=7)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/infiniband/mlx4_0/node_guid, flags=0,
mode=0x106d1d0) = 7
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=7)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/dev/infiniband/rdma_cm, flags=0x80002, mode=0x106d8d0) = 7
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=7)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/sys/class/infiniband/mlx4_0/node_guid, flags=0,
mode=0x1073e40) = 7
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: close(fd=7)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/dev/infiniband/uverbs0, flags=0x2, mode=0x106d1d0) = 7
Pid: 24364 Tid: 24364 VMA DEBUG:
ib_ctx_time_converter::get_devices_convertor_status : Checking RX UDP
HW time stamp status for all devices [1], ibv_context_list = 0x1072af0
Pid: 24364 Tid: 24364 VMA DEBUG:
ib_ctx_collection[0x106bc90]:77:map_ib_devices() TS converter status
was set to 3
Pid: 24364 Tid: 24364 VMA DEBUG:
ib_ctx_collection[0x106bc90]:79:map_ib_devices() Mapping 1 ibv devices
Pid: 24364 Tid: 24364 VMA DEBUG: evh:59:register_timer_event() timer
handler '0x1072d58' registered ONE SHOT timer for 1000 msec (user
data: 0)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: do_wakeup()
Pid: 24364 Tid: 24364 VMA DEBUG: evh:59:register_timer_event() timer
handler '0x1072d58' registered PERIODIC timer for 10000 msec (user
data: 0)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: do_wakeup()
Pid: 24364 Tid: 24369 VMA DEBUG: ENTER: remove_wakeup_fd()
Pid: 24364 Tid: 24364 VMA DEBUG:
ib_ctx_handler[0x1072b10]:67:ib_ctx_handler() ibv device 'mlx4_0'
[0x106d3b0] has 2 ports. Vendor Part Id: 4099, FW Ver: 2.36.5000,
max_qp_wr=16351, hca_core_clock (per sec)=258000000
Pid: 24364 Tid: 24364 VMA DEBUG:
ib_ctx_handler[0x1072b10]:136:set_dev_configuration() Setting
configuration for the MLX card mlx4_0
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: do_wakeup()
Pid: 24364 Tid: 24369 VMA DEBUG:
evh:448:priv_prepare_ibverbs_async_event_queue()
Pid: 24364 Tid: 24369 VMA DEBUG: utils:241:set_fd_block_mode() fd[8]:
setting to non-blocking mode (0)
Pid: 24364 Tid: 24369 VMA DEBUG:
evh:468:priv_prepare_ibverbs_async_event_queue() Emptied 0 Events
Pid: 24364 Tid: 24369 VMA DEBUG:
evh:488:priv_register_ibverbs_events() 8 added to event_handler_map_t!
Pid: 24364 Tid: 24369 VMA DEBUG: ENTER: remove_wakeup_fd()
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER:
open(file=/dev/infiniband/rdma_cm, flags=0x80002, mode=0x1072af0) = 9
Pid: 24364 Tid: 24364 VMA DEBUG: ntm:51:neigh_table_mgr() Creation of
neigh_cma_event_channel on fd=9
Pid: 24364 Tid: 24364 VMA DEBUG: evh:59:register_timer_event() timer
handler '0x1072e98' registered PERIODIC timer for 100000 msec (user
data: 0)
Pid: 24364 Tid: 24364 VMA DEBUG: ENTER: do_wakeup()
Pid: 24364 Tid: 24369 VMA DEBUG: ENTER: remove_wakeup_fd()
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'lo' (addr=1.0.0.0, flags=10049)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('lo') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth2' (addr=2.0.0.0, flags=1002)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth2') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth3' (addr=3.0.0.0, flags=1002)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth3') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth0' (addr=4.0.0.0, flags=11043)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth0') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth1' (addr=5.0.0.0, flags=1002)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth1') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth6' (addr=6.0.0.0, flags=1003)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth6') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth8' (addr=7.0.0.0, flags=11043)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth8') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth8.302' (addr=8.0.0.0, flags=11043)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth8.302') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth8.388' (addr=9.0.0.0, flags=11043)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth8.388') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'eth8.389' (addr=10.0.0.0, flags=11043)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('eth8.389') is not of type AF_INET
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:143:map_net_devices() Checking if can offload on
interface 'docker0' (addr=11.0.0.0, flags=1003)
Pid: 24364 Tid: 24364 VMA DEBUG:
ndtm[0x1072f70]:150:map_net_devices() Blocking offload: Interface
('docker0') is not of type AF_INET
Segmentation fault (core dumped)





It also exists with simple code, which just creates sockets

int sock = socket(PF_INET, SOCK_STREAM, 0);

And exits after this. Still get segfault with trace level debug.

Is it something with my system configuration or I should fill bug
report and provide some additional info?

Alex Rosenbaum

unread,
Feb 23, 2016, 6:12:35 PM2/23/16
to libvma-dev
and include all information here, as well as OS, and anything else you think might help.

if possible, please also post the core backtrace; or the relevant part from libvma.

thanks
Alex

alexander....@gmail.com

unread,
Feb 26, 2016, 9:06:40 AM2/26/16
to libvma-dev
Hi Alex,

I'm working on re-check of this situation. I'll install system from scratch and check if this segfault still happens.

alexander....@gmail.com

unread,
Feb 27, 2016, 6:04:21 AM2/27/16
to libvma-dev
Seems I found what was causing this issue.

Last few lines of VMA debug is:

 Time: 10017.032 Pid:  4950 Tid:  4950 VMA DEBUG: ndtm[0x227cf20]:143:map_net_devices() Checking if can offload on interface 'virbr0' (addr=17.0.0.0, flags=1003)

 Time: 10017.034 Pid:  4950 Tid:  4950 VMA DEBUG: ndtm[0x227cf20]:150:map_net_devices() Blocking offload: Interface ('virbr0') is not of type AF_INET

Segmentation fault (core dumped)


And before this it was same output for all other interfaces in the system.

I noticed that there was no one interface in VMA output, which exists in the system - pimreg


Here is it:

pimreg    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  

          UP RUNNING NOARP  MTU:1472  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


This interface was created by pimd - https://github.com/troglobit/pimd


So I stopped pimd daemon, interface was deleted and I run VMA with debug level again with the same code - and it works as expected.

I tried several times with started and stopped pimd and all works fine when pimd is stopped, and crashes when started.


Should I fill bug report for this scenario (pimd's interface pimreg causes segmentation fault with VMA_TRACELEVEL >= debug)?

Alex Rosenbaum

unread,
Feb 27, 2016, 10:18:52 AM2/27/16
to libvma-dev
yes, please open a bug report and add the information you listed here.
thanks for this debug effort.

Alex

Alex Rosenbaum

unread,
Feb 27, 2016, 3:55:49 PM2/27/16
to libvma-dev
found the problem. thanks for all the clues.
A fix is expected to be pushed within a few days.

alexander....@gmail.com

unread,
Feb 28, 2016, 11:21:48 AM2/28/16
to libvma-dev
Hi,

For clearer intent of future commit I opened a bug report for this case here https://github.com/Mellanox/libvma/issues/47

Thanks.
Reply all
Reply to author
Forward
0 new messages