|Subject:||Apache Segfault with Math-Pari-2.030518|
|Date:||Wed, 23 Oct 2019 00:45:55 -0700|
Hi Mr. Zahkarevich.I'm sorry to bother you but I'm stuck on getting an Apache webserver (2.4.41) running due to a segfault occurring in Math-Pari:
httpd: segfault at e ip 00007f229009654f sp 00007ffe675a65e0 error 4 in Pari.so[7f2290042000+313000]
I've spent a couple of days trying to figure out the problem and haven't been able to do it. I've setup previous servers using Centos 6 with the same setup and while there were some hiccups along the way I was always able to get Math-Pari running.
In this case, the server is Centos 6.10 running on a Proliant dl360 G5 server. I've compiled Apache 2.4.41 with mod_perl-2.0.11 and libapreq2-2.13 and have included Crypt-Random-1.52. I tried using the yum versions of these programs but got the segmentation error so I then downloaded Math-Pari from metacpan along with Crypt-Random and ran perl Makefile.PL, make and make install on them. I also tested Math-Pari and it passed. I also compiled pari-2.3.5 which was downloaded into the Math-Pari directory and installed it.
Also, Apache is running as prefork - here is the output on that:
Server MPM: Prefork
Server MPM: Prefork
I've attached a text file with the backtrace on the Apache core dump. The key lines from that are set forth below.
Also, I've tried using the older versions of Math-Pari and pari which worked on the Centos 6.4 server we have running with essentially the same setup but none of those worked.
Any help you could give me to figure out the problem would be great as I have to use the perl module Crypt-Random in the setup, which in turn relies on Math-Pari.
#0 moveoffstack_newer_than (sv=0x1c0316a8) at Pari.xs:1382
sv1 = 0x2
nextsv = <value optimized out>
ret = <value optimized out>
#1 0x00007f22900966da in XS_Math__Pari_DESTROY (my_perl=<value optimized out>, cv=<value optimized out>)
sv = 0x1c0316a8
ostack = 0x2 <Address 0x2 out of bounds>
oldavma = 139786421803280
howmany = <value optimized out>
rv = <value optimized out>
sp = <value optimized out>
ax = 1
mark = <value optimized out>
Message body is not shown because sender requested not to inline it.