Segmentation fault with vrfstats --list

Bug #1651153 reported by Praveen
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
Medium
Kumar Harsh
R3.1
Fix Committed
Medium
Kumar Harsh
R3.2
Fix Committed
Medium
Kumar Harsh
Trunk
Fix Committed
Medium
Kumar Harsh

Bug Description

Contrail version : 3.0.3.1-7

When vrfstas --list command is issued on compute node. Its leading to segmentation fault. Instead it should be giving help.

# vrfstats --list
Segmentation fault

Services supervisor-vrouter, contrail-vrouter-agent, contrail-vrouter-nodemgr on Compute nodes are in active state.

Jeba Paulaiyan (jebap)
tags: added: vrouter
Jim Reilly (jpreilly)
tags: added: att-aic-contrail
Jim Reilly (jpreilly)
information type: Proprietary → Private
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/29964
Submitter: Kumar Harsh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/29965
Submitter: Kumar Harsh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/29965
Committed: http://github.org/Juniper/contrail-vrouter/commit/f865f1ed17966434e3259ed082034384f1b340f7
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit f865f1ed17966434e3259ed082034384f1b340f7
Author: Kumar Harsh <email address hidden>
Date: Thu Mar 30 14:12:12 2017 +0530

Terminate the long_options array with an entry that is all zeros,
to define end of parsing by getopt_long hence preventing segfault.

Change-Id: I018e5af02e5842d25494b2d93412c8c37dd4b316
Closes-Bug:#1651153

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/30014
Submitter: Kumar Harsh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/30015
Submitter: Kumar Harsh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/30015
Committed: http://github.org/Juniper/contrail-vrouter/commit/d109c091a3797b8ce4a6ca39b848348ff4bfbc8f
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit d109c091a3797b8ce4a6ca39b848348ff4bfbc8f
Author: Kumar Harsh <email address hidden>
Date: Thu Mar 30 14:12:12 2017 +0530

Terminate the long_options array with an entry that is all zeros,
to define end of parsing by getopt_long hence preventing segfault.

Change-Id: I018e5af02e5842d25494b2d93412c8c37dd4b316
Closes-Bug:#1651153

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/29964
Committed: http://github.org/Juniper/contrail-vrouter/commit/06df84e35af4d61018dd096b1922c0e7e344432b
Submitter: Zuul (<email address hidden>)
Branch: master

commit 06df84e35af4d61018dd096b1922c0e7e344432b
Author: Kumar Harsh <email address hidden>
Date: Thu Mar 30 14:12:12 2017 +0530

Terminate the long_options array with an entry that is all zeros,
to define end of parsing by getopt_long hence preventing segfault.

Change-Id: I018e5af02e5842d25494b2d93412c8c37dd4b316
Closes-Bug:#1651153

Revision history for this message
Avinash (avink) wrote :

Other utilities like dropstats , vrmemstats also effected due to input parameter validation
though options like --info and --list are invalid , those should be handled gracefully without segmentation fault , applicable to other utilities if any

root@ubuntu-h04-01-bay3:~# vrmemstats --list
Segmentation fault
root@ubuntu-h04-01-bay3:~# dropstats --info
Segmentation fault
root@ubuntu-h04-01-bay3:~# vrmemstats --list
Segmentation fault

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/30014
Committed: http://github.org/Juniper/contrail-vrouter/commit/bd8e19a58edef90f481ce0ec1509be783130e99d
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit bd8e19a58edef90f481ce0ec1509be783130e99d
Author: Kumar Harsh <email address hidden>
Date: Thu Mar 30 14:12:12 2017 +0530

Terminate the long_options array with an entry that is all zeros,
to define end of parsing by getopt_long hence preventing segfault.

Change-Id: I018e5af02e5842d25494b2d93412c8c37dd4b316
Closes-Bug:#1651153

Praveen (pb0342)
information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.