audioscience / avdecc-lib

Simple C++ library for implementing IEEE1722.1 (AVB Device Enumeration, Discovery and Control)
MIT License
79 stars 45 forks source link

Cmdline -i option segfault #337

Closed ahogen closed 7 years ago

ahogen commented 7 years ago

When I attempt to start the command line app with an -i option specified, it immediately crashes without warning.

Normal startup execution (works fine)...

$ sudo ./avdecc-lib/controller/app/cmdline/avdecccmdline

AVDECC Controller version: v0.6.2
1 (lo, address: <127.0.0.1>)
2 (enp0s3, address: <10.10.10.125>)
Enter the interface number (1-2):

Attempting to use -i option...

$ sudo ./avdecc-lib/controller/app/cmdline/avdecccmdline -i 2
// ...OR...
$ sudo ./avdecc-lib/controller/app/cmdline/avdecccmdline -i enp0s3

AVDECC Controller version: v0.6.2
Segmentation fault

Doesn't tell me why it crashed, what went wrong, nothing. Just *splat*.

How is this -i option actually supposed to be used?

System environment: 
- Linux Mint 18.1 Serena
- Linux 4.4.0-81-generic (x86_64)
- gcc/g++ 5.4.0 20160609
ahogen commented 7 years ago

Just noticed that v0.6.2 isn't the newest version. Not sure how I got v0.6.2 because I just pulled/cloned the repo 2 days ago.

Anyway, did a full wipe and re-cloned the repo, got v0.6.13, and entering the command shown above with -i 2 and everything works as I would have expected.