Previous Thread
Next Thread
Print Thread
xcall JSON segfault Debian 12 #37693 04 Dec 24 05:23 PM
Joined: Aug 2016
Posts: 403
J
John Andreasen Offline OP
Member
OP Offline
Member
J
Joined: Aug 2016
Posts: 403
Hi Jack,

Hope all is well. We're doing some testing to prepare for upgrading our customers to Debian 12 and it looks like I have found an issue. It appears that XCALL JSON is triggering a segfault on the Debian 12 build (EL7 is unaffected.) The A-Shell version in this case is 7.0.1765.1. I also tried upgrading to 7.0.1765.6, but I see numerous syntax errors generated by the compiler. Let me know if you need more info or an example.

Thanks,
John Andreasen
Diversified Data Software

Re: xcall JSON segfault Debian 12 [Re: John Andreasen] #37694 05 Dec 24 12:25 AM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925
Hi John,

The compile problem I believe is fixed in compiler 1048 (7.0.1765.9) but I need to do a little more testing before releasing it. (The problem is triggered by structure-type function parameters with default values, which was broken in 1765.6.) The JSON problem I haven't figured out yet. It seems we ran into this problem back in August, as there is actually some debug code embedded to test for the anomaly, but I can't recall now how it got resolved. It's definitely a 64 bit issue, but it acts like the standard memory allocator is returning bogus addresses. I'll work on that in the morning.

Jack

Re: xcall JSON segfault Debian 12 [Re: John Andreasen] #37695 05 Dec 24 01:33 PM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925
Actually, the JSON issue did come up (and was supposedly resolved), as discussed in this thread.

I'm reviewing the code changes and compilations to see if it's really a platform-specific issue, or some code patch that didn't get booked properly.

Re: xcall JSON segfault Debian 12 [Re: John Andreasen] #37696 05 Dec 24 01:39 PM
Joined: Sep 2003
Posts: 4,178
Steve - Caliq Offline
Member
Offline
Member
Joined: Sep 2003
Posts: 4,178
And JSON under ash-7.0.1759.2-u20-x86_64 still working strong (from that thread) not that I’ve updates since!

Re: xcall JSON segfault Debian 12 [Re: John Andreasen] #37697 05 Dec 24 02:39 PM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925
I've also just now confirmed that the very latest 7.0.1765.9 version (not yet released) also works on Ubuntu 20. So it is starting to look like some kind of platform-level difference. Next step: system updates and double-check that the source is identical between my u20 and d12 platforms.

Re: xcall JSON segfault Debian 12 [Re: John Andreasen] #37698 05 Dec 24 03:50 PM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925
Ok, updating all of the tools didn't change things. But rearranging the central JSON node structure for better 64 bit packing efficiency seems to have done the trick...

ash70notes.txt
ash-7.0.1765.9-d12-x86_64-upd.tz

I'll post updates for the other platforms separately.

Re: xcall JSON segfault Debian 12 [Re: John Andreasen] #37701 06 Dec 24 09:59 AM
Joined: Aug 2016
Posts: 403
J
John Andreasen Offline OP
Member
OP Offline
Member
J
Joined: Aug 2016
Posts: 403
Hi Jack, this seems to fix the issue. Thanks a lot!

Re: xcall JSON segfault Debian 12 [Re: John Andreasen] #37705 06 Dec 24 12:18 PM
Joined: Nov 2006
Posts: 2,262
S
Stephen Funkhouser Online Content
Member
Online Content
Member
S
Joined: Nov 2006
Posts: 2,262
Can we get an EL7 variant, please?


Stephen Funkhouser
Diversified Data Solutions
Re: xcall JSON segfault Debian 12 [Re: John Andreasen] #37706 06 Dec 24 12:56 PM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3