Previous Thread
Next Thread
Print Thread
APPEND truncate path+filename #37207 16 Mar 24 03:45 PM
Joined: Jun 2001
Posts: 3,376
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,376
Hi Jack,

If you think the weird cases were over with the "pipe case", here is a new one grin

Generating code in LEO start to throw the following error:
Code
554 15:08:09 <APPEND:79a> Lookup C:\Users\User\OneDrive - Umzero\desenvolvimento\SOFT\DSV\657000\.dat = 0.000000
555 15:08:09 <APPEND:7b8> !Call stack trace buffer corrupted! base=151c0e8, offset=66, pop op 16, sig: fe,fd,15 (reset)
556 15:08:09 <APPEND:7b8> FindEnd: find_hdl: 0x0, sp=20


It happens while executing the following command where (prg'source'folder$+gen'file'name$) is "DSV:[657,0]gstecx.gen" and file'tabctl$ is "tabctl_TSKAAB.7101" and both exist in that moment.
Code
xcall amos,"APPEND /Z " + (prg'source'folder$+gen'file'name$)+"="+(prg'source'folder$+gen'file'name$) + "," + file'tabctl$


Guessing the culprit could be the long pathname, I changed the destination to "c:\temp\gstecx.gen" and it worked.
After I tried with "OPR:gstecx.gen" and it also worked , but wait!
The pathname is almost the same of DSV:[657,1], in fact it has one more letter shocked
Code
554 15:05:48 <APPEND:79a> Lookup C:\Users\User\OneDrive - Umzero\desenvolvimento\SOFT\DSK0\001002\gstecx.gen = 25.000000
555 15:05:48 <APPEND:79a> Lookup C:\Users\User\AppData\Local\Temp\tabctl_TSKAAB.7101 = 2.000000


Let's try using an ersatz for DSV[657,1], look below, it also worked laugh
Code
554 15:10:23 <APPEND:79a> Lookup C:\Users\User\OneDrive - Umzero\desenvolvimento\SOFT\DSV\657000\gstecx.gen = 25.000000
555 15:10:23 <APPEND:79a> Lookup C:\Users\User\AppData\Local\Temp\tabctl_TSKAAB.7101 = 2.000000


At this point, just to confirm the suspicious, I tried using DSK0:[1,2] in place of OPR: , that worked before, but this time failed with the exact same error above.
So, it seems there are some problem in the transation of [p, pn] to the full path.
Let me add this is not a problem related to these last releases, not even related to 7.0 because I tried with the 6.5.1741.1c and it also failed.

It can be related with my environment, let me know what you find on your side and what else you want me to do.

To finish, I'm not stuck with this and it's saturday so, no hurry, but I'm really curious to know what's behind this laugh

Have a nice weekend


Last edited by Jorge Tavares - UmZero; 16 Mar 24 03:47 PM.

Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: APPEND truncate path+filename [Re: Jorge Tavares - UmZero] #37208 16 Mar 24 11:48 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
I've seen this error in a few places, always connected with an XCALL AMOS operation, but appreciate the reminder and details, since I haven't yet managed to track it down. As you've discovered, it doesn't seem to be quite as simple as an overflow, and I've seen it much simpler filespecs than in your example. The good news is that the problem doesn't affect the operation of your program; it only affects the call stack tracing feature (used when an error occurs or when running the profiler). When the error occurs, it simply resets the stack trace (losing any details about nested calls up to that point).

I'll study it further here...
Thanks.

Re: APPEND truncate path+filename [Re: Jorge Tavares - UmZero] #37228 24 Mar 24 12:51 AM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
I think this problem is solved in 7.0.1757.1, which is available for most platforms/architectures from the distribution/download directions at:

https://www.microsabio.net/dist/70rel
ash70notes.txt

As mentioned in the release notes, the issue with the stack trace buffer was mainly relevant to the runprofiler (RUNPROF.LIT) which, as of the latest 1.1(115) version properly handles XCALL AMOS calls. (Use UPDCUR to update it.)


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3