Segmentation Fault (core dumped) error during mt_prep_snap

@ABraun Your solution has been perfect.
Thanks for your help!

Very nice solution.

worked like a charm. thanks

1 Like

It doesn’t work for Ubuntu 20.1

It will work, but Ubuntu 18.04 is very comfortable (as per my suggestion) compared to Ubuntu20.1. And one more advantage of Ubuntu 18.04 is, it will come python2 as a default (snap2stamps code will run only on python2).

It would be helpful to tell us the actual error. Please review the
this thread to see if your issue is covered:

Snap2stamps error - s1tbx / StaMPS - STEP Forum (esa.int)

The problem is installing gcc-7. I did not be able to run StaMPS because I get “Segmentation Fault”. I tried to install multiple gcc compiler, but the older one available for Ubuntu 21.1 is gcc-8.

I’m going to reinstall ubuntu 20.04, I successfully installed multiple gcc compilers on it.

Newer versions of linux distros generally try to support software built using “slightly older” versions, unless the changes that cause your segmentation fault were needed for security reasons. Posting the details of the segmentation fault on an Ubuntu forum may lead to a quick fix (sometimes as simple as
copying a library from an older release to your system).

It is generally not difficult to install older or newer gcc versions from source, so that is generally preferable to doing a full install of an older version.

It may be useful for you.

pleease I have this proplem


Try this, excellent explanation by @ABraun

Solved “Segmentation fault (core dumped)” on Ubuntu20.04. Thank you very much!

you are savior

Dear all,i have the same problem " Segmentation Fault (core dumped) error ",but mine happened during ‘mt_prep_gamma’,how can i solve it?

Usually the segmentation error is solved by compiling the StaMPS/src folder with an older gcc version (there are already threads in the STEP Forum talking about it).

If you followed the good way to compile it, then please provide more info about the error logs and more.

I’d really appreciate any guidance or suggestions!

dear everyone,i’ve installed gcc7 and g++7.And i’ve re-install StaMPS.but the question happened as picture.may i check the enviroment?thanks
QQ图片20240903205737

Please confirm that you are using the mt_prep_snap script

it’s ok. data is produced by gamma,so i use ‘mt_prep_gamma’.the problem has been solved by install gcc-7.

So then maybe you need also an additional variable to define ‘f’???

I am not sure which is its usage, so you can also run it without parameters to see if you are running it correctly.

That means that you can now run it without problem? or that the usage of mt_prep_gamma is correct in your case?