Re: [Plplot-devel] Looking into problem with Ada example 19

2008-09-05 Thread Alan W. Irwin
On 2008-09-04 17:45-0700 Alan W. Irwin wrote: On 2008-09-04 14:11-0700 Jerry wrote: I've submitted these changes to SVN so I hope to hear more good news. Sorry, but one of those changes you did (probably the cleanup) broke the Linux build. Details attached. OK. I just now svn updated to

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-09-04 Thread Alan W. Irwin
On 2008-09-04 00:46-0700 Jerry wrote: Can someone try this variation of the mock-example 19 on a 64-bit machine? I'm very hopeful that the problem is fixed. First ever success on my 64-bit platform! [EMAIL PROTECTED] . compile_and_run.sh gcc-4.3 -c x19a_temp.adb gcc-4.3 -c

Re: [Plplot-devel] Looking into problem with Ada example 19 - for loop explanation

2008-09-03 Thread trc
Hi, Jerry wrote: Just a casual browse of the C for plmap reveals this gem: for (;;) {some stuff} What does that do? Probably loops without end. 1for (;;) { 2/* read in # points in segment */ 3if (pdf_rdx(n_buff, sizeof (unsigned char)* 2, in) == 0) break; 4n = (n_buff[0]

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-09-02 Thread orion
Attached is a zip file that more closely emulates the PLPlot situation, with plmap written in C but with the callback, mapform19, written in Ada. Could a few of you test it to see if it runs or crashes on your machines? Either way, I'd like to report back to the geniuses at comp.lang.ada.

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-09-02 Thread Jerry
On Sep 2, 2008, at 7:30 PM, [EMAIL PROTECTED] wrote: Attached is a zip file that more closely emulates the PLPlot situation, with plmap written in C but with the callback, mapform19, written in Ada. Could a few of you test it to see if it runs or crashes on your machines? Either way, I'd

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-09-01 Thread Alan W. Irwin
On 2008-08-31 21:37-0700 Jerry wrote: Attached is a zip file that more closely emulates the PLPlot situation, with plmap written in C but with the callback, mapform19, written in Ada. Could a few of you test it to see if it runs or crashes on your machines? Either way, I'd like to report

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-31 Thread Werner Smekal
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). Alan (or someone else with a 64-bit Ada compiler), if you would, please

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-31 Thread Jerry
My posting of this problem at comp.lang.ada has produced some rather arcane discussion. There is one school of thought that says that my example, being all Ada, is different than the real code (in PLplot) because plmap in my posted example is in Ada where in the real situation it is in C.

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-31 Thread Alan W. Irwin
On 2008-08-31 14:14-0700 Jerry wrote: My posting of this problem at comp.lang.ada has produced some rather arcane discussion. There is one school of thought that says that my example, being all Ada, is different than the real code (in PLplot) because plmap in my posted example is in Ada

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-29 Thread Jerry
I've started a discussion of this problem on comp.lang.ada but so far it's a lot of arcane language but no solution. Is there at least one other machine besides Alan's Debian on Intel Duo that reports this runtime error on Ada example 19? Maybe I've missed it, but as far as I recall there

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-29 Thread Andrew Ross
Jerry, I get exactly the same problem on my Ubuntu box (also Intel Duo). Ubuntu packages are based on the Debian ones, but in this case are not quite the same versions of ada I think. I have another Ubuntu box with identical versions of ada, but only 32-bit. I do not see the error with this, so

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-29 Thread Alan W. Irwin
On 2008-08-29 01:43-0700 Jerry wrote: I've started a discussion of this problem on comp.lang.ada but so far it's a lot of arcane language but no solution. Is there at least one other machine besides Alan's Debian on Intel Duo that reports this runtime error on Ada example 19? Maybe I've

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-29 Thread Jerry
On Aug 29, 2008, at 10:05 AM, Alan W. Irwin wrote: On 2008-08-29 01:43-0700 Jerry wrote: I've started a discussion of this problem on comp.lang.ada but so far it's a lot of arcane language but no solution. Is there at least one other machine besides Alan's Debian on Intel Duo that reports

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-27 Thread Alan W. Irwin
On 2008-08-26 22:31-0700 Jerry wrote: Attached is a zip file (sans .zip) that contains two programs, one in Ada and one in C, which print out some machine integer and floating point attributes. (Actually, the C version doesn't to floats right now.) Also included are the results of running

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-26 Thread Alan W. Irwin
On 2008-08-25 22:02-0700 Jerry wrote: On Aug 25, 2008, at 8:18 PM, Alan W. Irwin wrote: We now have a working simple test case that generates the run-time error (at least on my 64-bit box with gnat version 4.3.1-2). [EMAIL PROTECTED] ./x19a_temp raised STORAGE_ERROR : stack overflow (or

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-26 Thread Werner Smekal
Hi, Finally, a dumb question. Is there any chance that floats, ints, doubles, etc. in C or Floats, Integers, Long_Floats, or Long_Integers in Ada have different sizes between languages on 64-bit boxes than on 32-bit boxes? float should always be 32bit, double always be 64bit in C. The type

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-26 Thread Andrew Ross
On Tue, Aug 26, 2008 at 10:26:31AM +0200, Werner Smekal wrote: Hi, Finally, a dumb question. Is there any chance that floats, ints, doubles, etc. in C or Floats, Integers, Long_Floats, or Long_Integers in Ada have different sizes between languages on 64-bit boxes than on 32-bit

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-26 Thread Alan W. Irwin
On 2008-08-26 00:56-0700 Jerry wrote: Finally, a dumb question. Is there any chance that floats, ints, doubles, etc. in C or Floats, Integers, Long_Floats, or Long_Integers in Ada have different sizes between languages on 64-bit boxes than on 32-bit boxes? I think there is a very good chance

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-26 Thread Jerry
On Aug 26, 2008, at 10:00 AM, Alan W. Irwin wrote: On 2008-08-26 00:56-0700 Jerry wrote: Finally, a dumb question. Is there any chance that floats, ints, doubles, etc. in C or Floats, Integers, Long_Floats, or Long_Integers in Ada have different sizes between languages on 64-bit boxes than

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-25 Thread Jerry
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

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-25 Thread Alan W. Irwin
On 2008-08-25 17:24-0700 Jerry wrote: 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). Alan (or someone else with a 64-bit Ada

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-24 Thread Alan W. Irwin
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

Re: [Plplot-devel] Looking into problem with Ada example 19

2008-08-24 Thread Jerry
Thanks, Alan. I'll scratch my head over this for a while. Jerry On Aug 23, 2008, at 11:02 PM, Alan W. Irwin wrote: 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

[Plplot-devel] Looking into problem with Ada example 19

2008-08-23 Thread Jerry
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