<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
Thanks for the bug report.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
Line 30 of application.cpp looks suspicious:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
<span>  while(p[l]!=0 && p[l]!='/');<br>
</span><span></span>Does it help to change it to</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
<span>  while(l!=0 && p[l]!='/');<br>
</span><span></span>?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
If not, I think I need to know what the char* argv[0] points to when main is  called.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
Best regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
Anders</div>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Fra:</b> Torrance, Douglas <dtorrance@piedmont.edu><br>
<b>Sendt:</b> 28. januar 2020 13:51<br>
<b>Til:</b> Tobias Hansen <thansen@debian.org>; 950008@bugs.debian.org <950008@bugs.debian.org>; Anders Nedergaard Jensen <jensen@math.au.dk><br>
<b>Emne:</b> Re: Bug#950008: gfan: assertion fails on riscv64</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Control: forwarded -1 jensen@imf.au.dk<br>
<br>
Hello!<br>
<br>
I am forwarding the bug report below from the Debian package of gfan:<br>
<br>
On Tue, Jan 28, 2020 at 4:33 AM Tobias Hansen <thansen@debian.org> wrote:<br>
> Source: gfan<br>
> Version: 0.6.2-2<br>
> Severity: normal<br>
><br>
> Hi,<br>
><br>
> many of sagemath's doctests in the interface to gfan fail on riscv64 with the following error:<br>
><br>
> gfan_*: src/application.cpp:42: char* tail(char*): Assertion `*p==*m' failed.<br>
><br>
> It looks like the pointer arithmetic in the function tail() in application.cpp does not work like this on riscv64. Unfortunately there are no porterboxes for riscv64 yet, so I can't come up with a minimal example triggering the bug.<br>
><br>
> Best,<br>
> Tobias<br>
</div>
</span></font></div>
</body>
</html>