Data Migration from older version to new version using mongodump and mongorestore on linux

Hello,
Current Mongo version - 3.2.17
OS - Windows 10 - Mongodump command works fine

OS - Redhat linux
While executing mongodump command
mongodump --db=testdb --out=/tmp/test

facing issue as :
fatal error: unrecognized DWARF version in .debug_info at 6
runtime stack:
panic during panic

runtime stack:
stack trace unavailable

What could be the issue for version 3.2.17 on linux?

May try mongoexport and mongoimport instead?
mongodump uses a binary version and can cause compability issues between hardware/mongodb versions

mongoexport and mongoimport - works as expected.
Can you please help me find list of mongodump compability issues on various platforms based on versions.

Hello,
I am trying mongoexport on OS - Redhat linux facing issues. Hence tried command
mongoexport --help
mongoimport --help
gives output as

fatal error: unrecognized DWARF version in .debug_info at 6

runtime stack:
panic during panic

runtime stack:
stack trace unavailable

Note- mongod --help works fine.