[fpc-pascal] FPC 2.6.2 for DOS/Go32V2 FP.EXE cannot run a second time

Lubomír Čabla kladno at gmail.com
Thu Sep 19 21:03:31 CEST 2013


Yes, I know these DSK-file crashes, but this is something else.

Anyway,
I deleted the file fp.dsk - SIGSEGV.
I deleted the remaining files - SIGSEGV.

Always helps run old fp.exe 0.9.2 18.05.2004 from 1.0.11
before run fp.exe from 2.6.2. Both versions use CWSDPMI v7.

I still think that fp.exe will something set in the memory
and after completion of the program does not reset this.

Of course this is only my assumption.
When I have the source program hopefully learn more.

Anyway thanks for the help.

Lubomir Cabla


On Thu, Sep 19, 2013 at 8:06 AM, Pierre Free Pascal
<pierre at freepascal.org>wrote:

>   Could you try to delete the files generated by fp.exe****
>
> before restarting it:****
>
> ** **
>
> fp.exe generates three files:****
>
>   -fp.ini****
>
> -fp.cfg****
>
> and****
>
> fp.dsk****
>
> ** **
>
> Try first to only remove fp.dsk****
>
> and see if it cures your sigsegv or not.****
>
>   fp.dsk is a binary file that contains configuration information****
>
> that mighr be corrupted.****
>
> ** **
>
> If remove fp.dsk alone does not remove the crash, try removing the three
> files.****
>
> ** **
>
> Could you please report to the list if any of the above helped?****
>
> ** **
>
> Thanks in advance,****
>
> ** **
>
> Pierre Muller****
>
> ** **
>
> *De :* fpc-pascal-bounces at lists.freepascal.org [mailto:
> fpc-pascal-bounces at lists.freepascal.org] *De la part de* Lubomír Cabla
> *Envoyé :* mercredi 18 septembre 2013 20:50
> *À :* FPC-Pascal users discussions
> *Objet :* Re: [fpc-pascal] FPC 2.6.2 for DOS/Go32V2 FP.EXE cannot run a
> second time****
>
> ** **
>
> I am running pure DOS 7 from Windows 98 US, no drivers, no TSR programs.**
> **
>
> Just COMMAND.COM, no AUTOEXEC.BAT and CONFIG.SYS.****
>
> ** **
>
> Run****
>
> ** **
>
> CWSDPMI -p -x****
>
> ** **
>
> DPMI stays in memory, start FP.EXE - again SIGSEGV.****
>
> ** **
>
> But I found an interesting thing.****
>
> ** **
>
> When I run FP.EXE from FPC 1.0.11 (it started always O.K.),****
>
> nothing done, just exit program,****
>
> and then try run IDE from FPC 2.6.2 - the program starts!****
>
> ** **
>
> *Further attempts to start IDE from FPC 2.6.2 causes an exception SIGSEV.*
> ****
>
> ** **
>
> *If previously run IDE from FPC 1.0.11, then IDE from FPC 2.6.2 starts.***
> **
>
> ** **
>
> It is really funny...****
>
> ** **
>
> Can you tell me where can I download source for IDE from FPC 2.6.2****
>
> and how to compile it?****
>
> ** **
>
> I will try it when I have a free weekend.****
>
> ** **
>
> Thank you.****
>
> ** **
>
> ** **
>
> On Wed, Sep 18, 2013 at 8:52 AM, Tomas Hajny <XHajT03 at hajny.biz> wrote:***
> *
>
> On Tue, September 17, 2013 20:57, Lubomír Čabla wrote:
> > FPC 2.6.2 for DOS/Go32V2
> >
> > There is the fatal IDE unstability in FPC 2.6.2 under pure DOS.
> >
> > IDE almost always starts only first time (after installation or reboot).
> > I start the IDE, compile and run the program (e.g. Hello.pas) and close
> > IDE. But when I want to start IDE again it crashes with SIGSEGV message.
> >
> >  Exiting due to signal SIGSEGV
> >  FPC General Protection Fault at eip=006EDE95
> >  eax=65672D6C ebx=0000002A ecx=00000088 edx=00000000 esi=008E91F8
> > edi=0083B504
> >  ebp=008C0CA0 esp=008C0C90 program=C:\PP\BIN\GO32V2\FP.EXE
> >  cs: sel=00A7 base=00400000 limit=008EFFFF
> >  ds: sel=00AF base=00400000 limit=008EFFFF
> >  es: sel=00AF base=00400000 limit=008EFFFF
> >  fs: sel=00C7 base=00000000 limit=0010FFFF
> >  gs: sel=00C7 base=00000000 limit=0010FFFF
> >  ss: sel=00AF base=00400000 limit=008EFFFF
> >
> >  Call frame traceback EIPs:
> >  $006EDE95
> >  $005BD905
> >  $005BCD84
> >  $005BC83D
> >  $005BC7F8
> >  $00308AF8
> >  $0030B9F4
> >  $0002DB50
> >  $0002DC5A
> >  $00002040
> >
> > To be able to start IDE again in DOS I have to reboot the computer.
> > I think IDE set something in memory and warm restart does not erase the
> > memory contents.
> >
> > Compilation from command prompt with FPC.EXE works everywhere.
> > But IDE is good for debugging and help.
> >
> > Can someone please help me or advise what I'm doing wrong.
> >
> > The main problem is running IDE in pure DOS.****
>
> Which DOS version is it? Is there any DPMI provider running before
> starting the IDE (some DOS versions include DPMI host themselves)?
>
> If there is no other DPMI host (running) and thus CWSDPMI.EXE is used, I'd
> recommend starting with a check whether there is just one (the latest)
> CWSDPMI.EXE and just for test purposes try loading it into memory as TSR
> with options "-p -x" (see cwsdpmi.txt included in directory doc\fpc) to
> see if it makes any difference.
>
> Obviously, the next step would be compiling the IDE with debug information
> (including -gl) to see where exactly it fails.
>
> Tomas
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal****
>
> ** **
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130919/06288507/attachment.html>


More information about the fpc-pascal mailing list