Skip to content

Segmentation fault for small number of directions in dirorder #2271

@m-lyon

Description

@m-lyon

Whilst doing some testing using a small subset of b-vector directions, I came across the following error whilst using dirorder

dirorder: [SYSTEM FATAL CODE: SIGSEGV (11)] Segmentation fault: Invalid memory access

Using the commandline

diroder -cartesian /tmp/bvec_test /tmp/bvec_out

where bvect_test was a simple bvec array generated from dirgen as follows:

# command_history: dirgen -cartesian 4 /tmp/dirs2  (version=3.0.2)
-0.768068368363638 0.430205845005412 -0.474335232132717
0.0433100803783766 -0.968382485647422 -0.245681904968476
0.851710966808829 0.450298932048355 -0.267991232717941
0.126952687168782 -0.0878776968375553 -0.988008363132191

Presumably this is related to the small amount of directions?

MRtrix3 version: 3.0.2, on Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions