Previous Thread
Next Thread
Print Thread
Page 3 of 3 1 2 3
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35244 18 May 22 06:42 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
And in the case of cf06b ...
Code
CUSTFUNCS'BSI:27337: ?Unmapped variable:  - IF (scan'entry <> cust1.contact'phone(1))  AND (scan'entry <> cust1.contact'phone(2))
                        AND (scan'entry <> cust1.fax'phone) THEN               << custfuncs'bsi:190_cust1.contact'phone( >>

... there doesn't seem to be any such field contact'phone() mapped in the cust1 structure. So it's not clear whether this is another case of the LSX being corrupted or an actual problem in the original source.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35245 18 May 22 07:01 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Now I'm investigating.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35246 18 May 22 07:19 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Sorry, it looks like some code got changed in a repository that is shared between our customer bases and didn't conditionally compile it. Sorry for wasting your time on this one.


Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35257 20 May 22 12:56 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
No worries there, it's always a nice change when the problem isn't on my end! As it turns out, there was another problem in the compiler that I think is resolved in version 6.5.1716.3 (compiler edit 990) ...

ash-6.5.1716.3-el7-upd.tz
compil-6.5.990-w32.zip

This was related to the errors you saw in invdesc; although backing off the optimization seemed to resolve it, I think this update addresses the real issue (and the optimization has been re-enabled.)

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35258 20 May 22 01:53 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Warning:
Does the page counter accept two digit page number? grin

Last edited by Jorge Tavares - UmZero; 20 May 22 01:54 PM.

Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35259 20 May 22 03:02 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Not that I want to drag this thread out any longer, but perhaps the best way to answer your question is to keep posting messages!
Even better, messages with updates ...

ash65notes.txt
ash-6.5.1716.3-w32-upd.zip
ash-6.5.1716.3-w32c-upd.zip

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35261 20 May 22 05:12 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content
Member
Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Better hope it's not a B,1 limitiation laugh

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35262 24 May 22 01:36 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Found an issue with passing a .SUBLIST to a function. I'm guessing you can probably reproduce this one, but I've attached an LSX/LST just in case.

Attached Files
6.5.1716.3.zip.gpg (329.45 KB, 64 downloads)
SHA1: 87164d11af59971d468d78d27bd71f2505cf4a96

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35263 24 May 22 03:19 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Thanks - investigation underway...

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35264 24 May 22 07:22 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
FYI, the immediate problem is caused by the syntactic quirk that $$i.SUBLIST is actually a kind of array even though it doesn't have any trailing (). So it was fooling the new scalar vs array test that compares passed arguments to those declared in the function. That's relatively easy to fix, but in the process I've uncovered a few other issues with .SUBLIST that are more involved. Current projection is for an update by tomorrow, but it might take a little longer...

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35266 26 May 22 06:46 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35267 26 May 22 09:21 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
ten limit, ok grin


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35268 27 May 22 12:49 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35269 27 May 22 03:31 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
When I try login to our application with 6.5.1716.7 immediately Trapped Basic Error #33 and can't do anything.

I've attached the LSX of our menu program and login dialog; as well as, the ashlog.log. Let me know if you need more traces or what.

Attached Files
6.5.1716.7.zip.gpg (449.71 KB, 64 downloads)
SHA1: b2d6827e13167abdd45051802771f6b2987e16d5

Stephen Funkhouser
Diversified Data Solutions
Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35270 27 May 22 03:36 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Ugh. It's clearly due to the new trap for stack underflow, but unfortunately not clear what the cause is. I may have to just remove that trap (the underflow loophole has been there for a long time, but was apparently relatively harmless) and replace it with a trace message to allow tracking it down without so much disruption.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35271 27 May 22 06:58 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
This one is turning out to be harder to reproduce. It has actually been subject to a fair amount of field testing, so I'm reasonably confident that the circumstances triggering the underflow aren't very common. As a temporary measure to make it easier for you to test, while not covering up the existence of an error condition, I've posted a 1717.8 version that replaces the error #33 with a log message ("warning: stack underflow detected"). Perhaps we can get some additional information about the frequency / context that way.

ash-6.5.1716.8-el7-upd.tz

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35272 27 May 22 11:54 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
This turned out to be a bug in the execution of the code generated by the ++PRAGMA TRACK_LAST_ROUTINE. (While while innocuous in the source code, one such statement affects the compilation and runtime of every single function after it, which explains why you were getting inundated by them.) Also the pragma is (apparently) somewhat rarely used. Anyway, the execution bug involved an otherwise harmless dummy expression evaluation that resulted in the popping off a value that had never been pushed. It was harmless enough, since the stack gets reset at the start of each statement. But forcing the error to be reported (now traced rather than aborting the program) did force it to be discovered and fixed. So in general that's a good thing.

Anyway, should be fixed in this version ...

ash-6.5.1716.9-el7-upd.tz

I'll get to the other platforms shortly.

Re: 6.5.1713.0 compiler issues [Re: Stephen Funkhouser] #35273 28 May 22 01:13 PM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Ordmap and stack under flow resolved! Thanks.


Stephen Funkhouser
Diversified Data Solutions
Page 3 of 3 1 2 3

Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3