Skip to content

pb2nc sporadic seg faults using -index #1618

@georgemccabe

Description

@georgemccabe

Describe the Problem

Running pb2nc with the -index option succeeds sometimes but other times it causes a segmentation fault.

Expected Behavior

The index of input fields output every time instead of occasionally causing a segfault.

Environment

Describe your runtime environment:
1. Machine: kiowa (NCAR)
2. OS: Linux
3. Software version number(s): Bug was experienced using 8.1.1 and 9.1

To Reproduce

Describe the steps to reproduce the behavior:
1. Go to kiowa
2. Change directory to:

 cd /d1/projects/MET/MET_Help/98219

3. Run this command multiple times:

/usr/local/met-9.1/bin/pb2nc gdas.adpupa.t00z.20160620.bufr out.nc PB2NCConfig_test -index

Error message should look like this:

DEBUG 1: Default Config File: /usr/local/met-9.1/share/met/config/PB2NCConfig_default
DEBUG 1: User Config File: PB2NCConfig_local
DEBUG 1: Pre-processing BUFR File for variable names from gdas.adpupa.t00z.20160620.bufr
Segmentation fault

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

Define the source of funding and account keys here or state NONE.

Define the Metadata

Assignee

  • Select engineer(s) or no engineer required
  • Select scientist(s) or no scientist required

Labels

  • Select component(s)
  • Select priority
  • Select requestor(s)

Projects and Milestone

  • Review projects and select relevant Repository and Organization ones or add "alert:NEED PROJECT ASSIGNMENT" label
  • Select milestone to relevant bugfix version

Define Related Issue(s)

Consider the impact to the other METplus components.

Bugfix Checklist

See the METplus Workflow for details.

  • Complete the issue definition above, including the Time Estimate and Funding Source.
  • Fork this repository or create a branch of main_<Version>.
    Branch name: bugfix_<Issue Number>_main_<Version>_<Description>
  • Fix the bug and test your changes.
  • Add/update log messages for easier debugging.
  • Add/update unit tests.
  • Add/update documentation.
  • Push local changes to GitHub.
  • Submit a pull request to merge into main_<Version>.
    Pull request: bugfix <Issue Number> main_<Version> <Description>
  • Define the pull request metadata, as permissions allow.
    Select: Reviewer(s), Project(s), Milestone, and Linked issues
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Complete the steps above to fix the bug on the develop branch.
    Branch name: bugfix_<Issue Number>_develop_<Description>
    Pull request: bugfix <Issue Number> develop <Description>
  • Close this issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions