Help with g77/djgpp/Win95 runtime error 
Author Message
 Help with g77/djgpp/Win95 runtime error

My program compiled with 0.5.19 djgpp version of g77 for DOS and run
under Win95 sometimes crashes with the following message

Exiting due to signal SIGSEGV
Page fault at eip=00007f82, error=0004
eax=00000000 ebx=00000001 ecx=ffd6efbe edx=ffd6ef24 esi=ff4bf040
edi=0029104f
ebp=ffd6ecc8 esp=ffd6eca4 program=C:\PQMETHOD\PQMETHOD.EXE
cs: sel=00af  base=83189000  limit=ffd6efff
ds: sel=00b7  base=83189000  limit=ffd6efff
es: sel=00b7  base=83189000  limit=ffd6efff
fs: sel=0087  base=00006260  limit=0000ffff
gs: sel=00c7  base=00000000  limit=ffffffff
ss: sel=00b7  base=83189000  limit=ffd6efff

Call frame traceback EIPs:
  0x00007f82
  0x00003aa3
  0x00001f25
  0x0001c8c8
  0x000278da

This error seems to occur only when windows had been running for some
time, and if it happens, the error can be reproduced. But after I
restart windows the error would not occur again. I'm not quite a
professional programmer, and I do not know how to install and use a
de{*filter*} in the djgpp-g77 environment. For my low level of expertise it
would be nice if I would get the line number of the code where the
program crashed, which would be possible when I compiled the program
with Microsoft Powerstation 1.0, but as I understood, not with g77 (I
would suspect that there are uninitialized variables involved). What
information is contained in the error message quoted above? I can't
understand a word.

--
Peter Schmolck
Department of Education                       Phone :  +49-89-6004-2056
Univ. of the Federal Armed Forces Munich      Fax   :  +49-89-6004-3968
85577 NEUBIBERG, GERMANY
The QMethod Page: http://www.*-*-*.com/ ~p41bsmk/qmethod/



Sat, 01 Apr 2000 03:00:00 GMT  
 Help with g77/djgpp/Win95 runtime error

Peter :

You may want to play with the -fno-automatic and -finit-local-zero
switches to g77.

IMHO , the DJGPP version of g77 is not really stable or well maintained.

You may want to grab the f2c sources from netlib , build yourself
an f2c / libf2c for DJGPP , and use it instead of g77.

- Bob Kematick

Quote:

> My program compiled with 0.5.19 djgpp version of g77 for DOS and run
> under Win95 sometimes crashes with the following message

> Exiting due to signal SIGSEGV
> Page fault at eip=00007f82, error=0004
> eax=00000000 ebx=00000001 ecx=ffd6efbe edx=ffd6ef24 esi=ff4bf040
> edi=0029104f
> ebp=ffd6ecc8 esp=ffd6eca4 program=C:\PQMETHOD\PQMETHOD.EXE
> cs: sel=00af  base=83189000  limit=ffd6efff
> ds: sel=00b7  base=83189000  limit=ffd6efff
> es: sel=00b7  base=83189000  limit=ffd6efff
> fs: sel=0087  base=00006260  limit=0000ffff
> gs: sel=00c7  base=00000000  limit=ffffffff
> ss: sel=00b7  base=83189000  limit=ffd6efff

> Call frame traceback EIPs:
>   0x00007f82
>   0x00003aa3
>   0x00001f25
>   0x0001c8c8
>   0x000278da

> This error seems to occur only when windows had been running for some
> time, and if it happens, the error can be reproduced. But after I
> restart windows the error would not occur again. I'm not quite a
> professional programmer, and I do not know how to install and use a
> de{*filter*} in the djgpp-g77 environment. For my low level of expertise it
> would be nice if I would get the line number of the code where the
> program crashed, which would be possible when I compiled the program
> with Microsoft Powerstation 1.0, but as I understood, not with g77 (I
> would suspect that there are uninitialized variables involved). What
> information is contained in the error message quoted above? I can't
> understand a word.

> --
> Peter Schmolck
> Department of Education                       Phone :  +49-89-6004-2056
> Univ. of the Federal Armed Forces Munich      Fax   :  +49-89-6004-3968
> 85577 NEUBIBERG, GERMANY
> The QMethod Page: http://www.*-*-*.com/ ~p41bsmk/qmethod/



Sat, 01 Apr 2000 03:00:00 GMT  
 Help with g77/djgpp/Win95 runtime error

 Peter> For my low level of expertise it would be nice if I would get
 Peter> the line number of the code where the program crashed, which
 Peter> would be possible when I compiled the program with Microsoft
 Peter> Powerstation 1.0, but as I understood, not with g77

You need to compile with `-g' for debugging information.  Then it's
easy to run gdb.  The DJGPP FAQ may help (it usually does).
comp.os.msdos.djgpp is the place to ask DJGPP-specific questions taht
the FAQ doesn't answer.

 Peter> (I would suspect that there are uninitialized variables
 Peter> involved).

See the suggestions in the manual in that case.



Sun, 02 Apr 2000 03:00:00 GMT  
 Help with g77/djgpp/Win95 runtime error

 Bob> IMHO , the DJGPP version of g77 is not really stable or well
 Bob> maintained.

How so?  I've previously asked for information about anything that we
should do for DJGPP, such as to facilitate native building, and never
got any so nothing happened.  (I've only ever cross-built it.)
There's always the EMX port for MS-DOG if you think DJGPP is a dead
loss for some reason.



Sun, 02 Apr 2000 03:00:00 GMT  
 Help with g77/djgpp/Win95 runtime error


Bob> IMHO , the DJGPP version of g77 is not really stable or well
Bob> maintained.

: How so?  I've previously asked for information about anything that we
: should do for DJGPP, such as to facilitate native building, and never
: got any so nothing happened.  (I've only ever cross-built it.)
: There's always the EMX port for MS-DOG if you think DJGPP is a dead
: loss for some reason.

I have observed some problems with i/o to disk files , presumably
traceable to the djgpp / g77 version of libf2c. Others have reported
similar problems , search DJ's mail archives will turn up a few.

It appears that the problems go away if libf2c.a is replaced with one
built directly from netlib / f2c sources. This raises the question of
what are the differences between the libf2c built from g77 sources and
from netlib sources. Raised but never answered on c.o.m.d

In fact , g77 related questions tend to go unanswered on c.o.m.d , as
did your query about what to do to facilitate native building. I guess
that particular forum is dominated by  C/C++ people who have little
interest in fortran.  Sigh.



Sun, 02 Apr 2000 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Call for help with DJGPP g77

2. g77 segmentation fault possible error allocating large arrays during runtime

3. g77 runtime error (linux)

4. runtime error traceback with f2c/g77 and Linux

5. gnu g77 runtime errors I/O

6. Runtime/Sytem Error on Win95 Network

7. Clipper S87 and Win95 ... runtime error R6003

8. file i/o bug in g77 for DOS (djgpp&emx/rsx)

9. how to build g77 under DJGPP

10. g77 and djgpp

11. g77 with djgpp, is it possible?

12. Installing DJGPP binaries for g77 0.5.19

 

 
Powered by phpBB® Forum Software