Attached is a zip file with three short Ada files in it. They have a similar structure to the problematic example 19 but do not call or link to any PLplot stuff (despite the names of some things looking PLplot-y).On 2008-08-23 18:54-0700 Jerry wrote:There have been some posts about Ada example 19 (both x19a.adb and xthick19a.adb) causing problems, possibly on 64-bit systems but not 32-bit systems. Fortunately, example 19 is short. Unfortunately, example 19 runs fine on my machine, OS X. Could someone send me detailed info about what happens? On 7/18/08, Alan indicated this runtime error:raised STORAGE_ERROR : stack overflow (or erroneous memory access)That is the only message that is given.This is an Ada exception being raised. Was there a line number associated with this output?Unfortunately, not.I would like to try to find, as exactly as possible, where this problem is arising.I surrounded the plmap and plmeridians calls with if 0 =/0 then end if; then selectively tried if 0 =/1 thenIt turns out the first two plmap(null... calls generate no run-time error,but that both the plmap(mapform19'Unrestricted_Access...and plmeridians(mapform19'Unrestricted_Access... calls individually generatethe above run-time error. BTW, I notice the x16a.adb callbacks are specified with a different access method that does not seem to generate a run-time error, i.e., plshades(... plfill'access, True, pltr1'access, cgrid1'Address); Is it possible to use that method instead for example 19? I simply tried plmap(mapform19'access... but that generated a build error of x19a.adb:113:13: subprogram must not be deeper than access type x19a.adb:118:19: subprogram must not be deeper than access type make[2]: *** [examples/ada/CMakeFiles/x19a.dir/x19a.o] Error 1I don't understand why this won't build (probably because my Ada languague skills are so limited) since pltr1, for example, is an Ada procedure similarto mapform19.If there is no easy way to mimic what example 16 does, then at least I have pinned down two separate instances of one line of code that generates the run-time error, and I hope you can use that to generate a self- containedtest example that is completely independent of PLplot that I can try. Alan
Alan (or someone else with a 64-bit Ada compiler), if you would, please unzip, cd to the directory, and type
gnatmake ./x19a_temp.adbYou should see two warnings but no errors. If it compiles, the executable will be called x19a_temp. Try to run it and see what happens. It should print out 10 lines of floats.
I think there is a low probability that this will point to a compiler error but we need to try it anyway.
This compiles and runs OK on my system. JerryP.S. My e-mail service (Qwest in U.S.) apparently blocks attachments with the .zip appendage.
Temp_PLplot_Ada_Example 19
Description: Binary data
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel