Re: Bus error when writing in a typed file
Baudouin Le Charlier <[email protected]>
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
Here is a very simple example where the bus error occurs : I executed the following commands : Soeur-Sourire:Cours17 blc$ gp busError.pas Soeur-Sourire:Cours17 blc$ ./busError Bus error Soeur-Sourire:Cours17 blc$ After executing the program, the file toto.pers exists and is empty (Zero bytes). Baudouin Le 18 nov. 2012 à 02:44, Waldek Hebisch a écrit : >> >> Le 17/11/2012 16:13, Baudouin Le Charlier a =E9crit : >>> I am using a Mac OS X 10.6.8. I have downloaded GNU Pascal for Mac Os f= >> romhttp://www.microbizz.nl/gpc.html. I have been using GNU Pascal for writi= >> ng very simple programs for an introductory programming course and it worke= >> d fine until I wrote the following program for which I got a "bus error" wh= >> en writing a first record in the file (at line 128). Notice that the progra= >> m executes without errors when compiled with free pascal compiler. >> >> It works also with old BP ! >> I find the same error (SIGSEGV) under DJGPP, MingW and Linux 64bits >> Seems to be a serious bug of GPC. > > Hmm, quick test with Debian gpc did not produce a crash. It certainly > would help to have example without a lot of interaction. > > > -- > Waldek Hebisch > [email protected] > > _______________________________________________ > Gpc mailing list > [email protected] > https://www.g-n-u.de/mailman/listinfo/gpc _______________________________________________ Gpc mailing list [email protected] https://www.g-n-u.de/mailman/listinfo/gpc
busError.pas
(application/octet-stream, 685 B) - not displayed