Bill Allombert on Sun, 19 Feb 2023 17:59:43 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Segmentation Fault in Pari/GP from gp2c-run
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Segmentation Fault in Pari/GP from gp2c-run
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Sun, 19 Feb 2023 17:58:12 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1676825893; c=relaxed/relaxed; bh=kE2W31KDP5hXJS9XflaYbKCM/fXTNwAqwzAR6He0zsY=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=ZqbT8z7M6Trs2Bis++mhj8MFCHKtzKQN+HrkvGrAYNIOgpDHD6grSz12LyOc15J9TjHQQof58Jk6d05tdTLt1Nck+pQj/OfKIzNd61H4WLH8w2PtcLFC9AmSe1ChL+jIJ7vvSjcdynzaSTbmXR9gHdF42mt2h0YvecDNKNZHwaZX0YGlQSP2oSRhNxJpQ9Un6O1Ho6GgD7adkUrD/Tng3KFFv4LHcYOd7NqyUGRl5Sx0jGIp7L2A+A7rDiWgj62I7QAkmfuEAUsVWw2MChDB19Q3j278oo0xtdmWacRbKOM7DM9QOCiwcWxameFPIxHnLks5VX5TdY2ZMKwF/TrVtznhcIK+mlQqGwtK1/C2Hf/ll2FjFTR75XhhJFuM8Ka9K+giquL/RE5OfOWtEdki33vfx1qax1vT8hSS3H+5c7LefCgjJWyOWvGRM/rK2P68cfs0bPgSgbSYc8tWUiNDQ9iIyLve4lv/TBP9X1NB5s2xSNjHUDt+2uKmWbV/q5m+uN7bdvNK6lZGFx4MKrbogui5G9RxK8aM55C00AexF/IDI1KyV3Yf88tcnfT8kS3smkuGX9hMBVVxPuuUSOViXsH0H2gx6yMF+iRUi2eXU87QdvBN6buGpxQHY4rY1nUfVa24oLD4oIdtK0bPN2cE8Y3Sd1vvN43iXZn76ZOeQKc=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1676825893; cv=none; b=ybpPF74WeUJV/LgXz/DZaAVxXzHkPNgkmEVB+hkHqVSD5g2X3fgTMv5d/w0grbC6Qo2GrqD2yHjYuctHNndD/5mc+CRBR05ka13ozYfAPa8K9M9J8g5A90fjPC6sBKPUSaSaCkhQznjpOnxdZsjb83qYLpSDhVWjuCx+SgrE5+ZYLs8VuMaerzm8JtHlOHnjpVFZiep1tedbZY/+vO/i4yEsQezpuXdrDTiS12+sipta/SpaSmuYDreE6U+bs7V8Q65asihitbx/BpfzkYVUN6vkljLncynZOUnq5Unx5gyeiYksRL28JwGMV1qYiXmL/fNgaSomHq65un+/BfZ5Vpcjg3RaX2G5X9Nl0d3cGHXNDSadlHe3a5+To4w3HRHur1t9SD+JJtt9U4o1Vqa70W+8OcsJ606+mYFdq3xQ00xMmLq+sIaEvS0wvS47PzaWEgVbW/DCNC2BBparU6dmlTA9+7FOA+wL49IDw5lpEkDQOtp+PeWIzVFqkyY7iihY0v6PRcYkw94D5hS8gZ9Q1f0tejfV3hkEVL2XO6sOzQrC5TcN8ONQqhGStquDKZBv/v6LoJA2/Q0Q5MM2vC6V3ULrAG1SOuoQfHkpxmgeL8leIUovaoQQnEF0jOcirqv0MFziwqm0KbfGxG2sbMfbL5gKmgwxrVxUFMwHl7fS4Zo=
- Authentication-results: smail; arc=none
- Delivery-date: Sun, 19 Feb 2023 17:59:43 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1676825893; bh=kE2W31KDP5hXJS9XflaYbKCM/fXTNwAqwzAR6He0zsY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=AW6JKZCKa8rtRmRwtX7Fj7+kD7Fuo0HGqHnrkBSwDByErIKs8/j2ii3sIcP8ET1cw H7fwr7vxa/xpR84xsFDxK/0JTu3SAyc6WFik76CNeCbf3KNmau9cxfv+JJ6XLSbLDw igmw+HTaLF32l0o8pm/xKtBr1BaLEuXNbV1zfQyrw33oVaid4MdLuKSYQ4VZpTF6yf fkWS5Flq4aE1Z8/ttG00HlcmbJawC6/zPnKiv5597LfDQS7rwbF8TKwxjnN1qFXjs2 aqsH3tzmffv4UWMeyHZNXWd6tGQhGekOFIv7fpAK0anWZgjys1KCj2tDjTxntaQUCK pk7v0kPGqYsvhXrwIEhJepC0ugaoj/tMERUvK+qP13pHph4b70swnbjoM4k53cObrj AeO1G5L6k5+812CP8d6lw1Ns5os4sICvxe9J055bogEbaHo+azduVYMO1mKcS1qpGJ vdF7Ia9JRw0lbf5YoGTEJ9RJ6pXr7tu9Uk7xnNwUJbrgKHouJCOwqa8TdBfRPMEDFg skWTrQ3LMRGNzMO4CPK8IOz5YmIIgkSA4Xv7vJeXmtMsLIqEdaGp1wqieTjP/bd+OC IK5ytrkL1iVo9TdhvvM+yqsBYHyhePIgu5l0QrGfHS7i4v5PVTTmhgbJnvzrvprYgW 58IEDYxbk0xvZLpTPWosPOdI=
- In-reply-to: <6FB850AA-F6F6-4749-B8A9-A17181801B2D@gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <6FB850AA-F6F6-4749-B8A9-A17181801B2D@gmail.com>
On Sun, Feb 19, 2023 at 07:57:32AM -0800, Edmond Griffin wrote:
> Hello,
>
> I am working on an old conjecture of Erdos-Turan using Pari/GP. Although the computations are simple, the number of them is very large. To speed things up, I hoped to convert my .gp code into C using gp2c. I am having difficulty doing so.
>
> I believe both gp and gp2c were built successfully on my machine - a quad core i7 MacBook Pro. When I compile and run the code using gp2c-run I get no warnings of undeclared or unused variables. I do get the following warning before gp starts:
>
> ld: warning: -undefined dynamic_lookup may not work with chained fixups
>
>
> Then when I call my function (extDnkc) I get
>
> ? extDnkc(15,6,0,"/Volumes/BinPolyData/Diffs/")
> *** user warning:
> *** at top-level: extDnkc(15,6,0,"/Volumes/BinPolyData/Diffs/")
> *** ^---------------------------------------------
> *** extDnkc: bug in PARI/GP (Segmentation Fault), please report.
>
>
> Can you suggest a course of action?
> fName = strjoin([fPath,strprintf("D_%d_%d_TN.csv", n, k)]);
> iferr(fIn=fileopen(fName,"r"), ERR,
> warning(strprintf("Bad input file: %s",fName)); return,errname(ERR)=="e_FILE");
Indeed, there is a bug in PARI that cause warning() to be miscompiled by gp2c.
I suggest to replace warning() by print() until we fix it.
Sorry for the trouble!
Cheers,
Bill