MTFUN question

56 views
Skip to first unread message

Bill Menger

unread,
Jul 23, 2020, 9:04:22 AM7/23/20
to CPSeis User Group
Has anyone been able to get MTFUN to work?  I think there is a memory problem somewhere in it that causes a SIGSEGV.  If anyone has found it, I will happily apply the patch and test it.
Thanks,
Bill Menger

Michael

unread,
Jul 26, 2020, 9:02:25 AM7/26/20
to cpseis-user
Bill, which revision are you using? I found an array out of bounds in mtfun.f90 and added a patch to sourceforge at revision 227. If it is still broken after that, more debugging is needed.

Bill Menger

unread,
Jul 26, 2020, 9:12:14 AM7/26/20
to CPSeis User Group
I'm on version 229.  I'll go back to find your patch, that may give me a clue.  At first I thought this was a problem with the fft code, so I rebuilt fft to use Bob Stolt's mixed radix code instead of fftw, and reran my job.  It didn't fix the issue, so I'm more certain that it lives somewhere in MTFUN.  Running valgrind and gdb on a custom-built job (using cfebld -i) allows me to do some debugging, and valgrind says that I'm writing 4 bytes over a boundary when calling mtfun_derive_function around where it calls an fft routine, so this may still be something wrong with the fft wrapper code that surrounds both fftw, craylib, and Stolt's software.  
Thanks for the note.
Bill

--
You received this message because you are subscribed to the Google Groups "cpseis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpseis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cpseis-user/334dfad2-b3f6-490f-a4bf-f7e09d236e2ao%40googlegroups.com.

Bill Menger

unread,
Jul 26, 2020, 5:01:46 PM7/26/20
to cpseis-user
I moved all my pending code changes out to a temp place and restored Rf229 version, make clean;make and got MTFUN to work.  this was likely my fault for having a mixed-build where everything wasn't built at the same time.
Bill
(fixed)

Lewis Goss

unread,
May 26, 2021, 5:57:09 PM5/26/21
to cpseis-user
Dear Bill et al:

Have you made any plans to move cpseis away from CentOS since CentOS EOL is coming in 2024?  
That could involve moving over to Fedora, which is also RedHat based, or toward Ubuntu, which is Debian based.
I have used Fedora in the past, and I wasn't using cpseis at the time.

In addition there is OracleLinux, Rocky Linux, and AlmaLinux, which I think are also RedHat based.  

For what it is worth, I did succeed in getting cpseis to work under Unbutu 16.04 LTS, and then was able to upgrade to 18.04 LTS and keep cpseis working.  
I have held off on upgrading to 20.04 LTS for now.  

--
You received this message because you are subscribed to the Google Groups "cpseis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpseis-user...@googlegroups.com.

Michael

unread,
May 27, 2021, 8:51:36 AM5/27/21
to cpseis-user
I am aware of Centos 8 problem. I have modified some of the scripts and makefiles so that CPSeis can install in distros other than RHEL family. I have installed it on openSuse Leap 15, Fedora 32, Mageia 8, Openmandriva 4.2 (all RPM linux). I haven't tried Rocky or Alma yet. I managed to get it going in Debian 10 and Ubuntu 18.04. I did try Ubuntu 20.04 last year - there was a problem with some library missing and I haven't returned to the problem to find a fix for that.
I haven't tried Fedora 34 yet: that has gcc version 11 which will probably break something. If anybody has used Fedora 34, let me know how it went.

Lewis Goss

unread,
May 27, 2021, 7:47:48 PM5/27/21
to cpseis-user
Dear Michael:

I just upgraded my system Ubuntu 18.04 LTS to 20.04 LTS.  My older version pseis continues to work after upgrading, but I was planning to upgrade to the newest version of cpseis next.  Do you recall what library was missing?  Thanks.

Michael

unread,
May 28, 2021, 6:37:37 AM5/28/21
to cpseis-user
I looked up some old notes, and it was complaining about libpng.12.so I believe that was last present in Ubuntu 16.04. So I expect it would have affected 18.04 as well, but I only recall it being an issue with 20.04
Possibly I did something wrong when trying to build it, I haven't had time to revisit it.

Bill Menger

unread,
May 29, 2021, 5:25:55 PM5/29/21
to Group, CPSeis User
Hi Lewis and Michael,
I haven't made plans to change O/S for cpseis.  With retirement, church, square dancing, volunteer work, and seven grandkids, I'm not finding much time for cpseis anymore.  I will try to keep things current (fix bugs pointed out to me, etc.) as I find time, but amazingly, life is much busier without a full time job than it was with one.  Lewis, I am pretty sure Seismick and Michael Seman have programming rights on the repository at Sourceforge, and lately I've seen some fixes by Seismick.  I'll try to look at the repo once a month to see if some things could be improved that I could work on.
Bill

Lewis Goss

unread,
May 30, 2021, 1:22:34 PM5/30/21
to cpseis-user
To fix the libpng12 missing on Ubuntu 18.04LTS or 20.04LTS, do the following:


% sudo add-apt-repository ppa:linuxuprising/libpng12
% sudo apt update 
% sudo apt install libpng12-0


Lewis Goss

unread,
Jun 2, 2021, 6:09:46 PM6/2/21
to cpseis-user
I have successfully complied the latest version of cpseis on Ubuntu 20.04 LTS.  Looks like everything is working correctly so far.  I did use the older gfortran 4.8.5 and gcc 4.8.5 to compile.  I tried initially compiling with gfortran9, and had problems with that.  I had to pore back through several old emails to figure out all of the configuration changes I had to make, and refer to my previous install under Ubuntu 18.04 LTS.  
Reply all
Reply to author
Forward
Message has been deleted
0 new messages