Page 1 of 1

[4.20][linux] segmentation error

Posted: Thu Jun 05, 2008 10:52 am
by Chaos
My code is under 3-5k line but one the IDE the compilation block at the 1000 line and in the console mode :
chaos@chaos:/media/disk/yame/sources/Melchior$ pbcompiler Main.pb

******************************************
PureBasic 4.20 (Linux - x86)
******************************************

Loading external modules...
Starting compilation...
Including source: ClassPath.pbi
Including source: debug.pb
Including source: POO_macro.pb
Including source: constantes.pb
Including source: Constantes Magi.pbi
Including source: Sprite.pb
Including source: Fonctions XOR.pbi
Including source: Nexus.class.pb
Including source: Atlas.class.pb
Including source: Chaos.class.pb
Including source: variable.class.pb
Including source: fonction.class.pb
Including source: script.class.pb
Including source: Adonis.class.pb
Including source: window.pb
Including source: gadget.pb
Including source: event.pb
Erreur de segmentation
Sry to my bad english !

Posted: Fri Jun 06, 2008 4:57 am
by GBeebe
after Googling up segmentation error, it looks though it has to do with pointers. Don't know why you'd get that error while compiling. Seems to be in your event.pb, right? Can you show it to us so we can check it out?

Posted: Fri Jun 06, 2008 7:33 am
by Chaos
if i remove the inclusion file of "event.pb"
chaos@chaos:/media/disk/yame/sources/Melchior$ pbcompiler Main.pb

******************************************
PureBasic 4.20 (Linux - x86)
******************************************

Loading external modules...
Starting compilation...
Including source: ClassPath.pbi
Including source: debug.pb
Including source: POO_macro.pb
Including source: constantes.pb
Including source: Constantes Magi.pbi
Including source: Sprite.pb
Including source: Fonctions XOR.pbi
Including source: Nexus.class.pb
Including source: Atlas.class.pb
Including source: Chaos.class.pb
Including source: variable.class.pb
Including source: fonction.class.pb
Including source: script.class.pb
Including source: Adonis.class.pb
Including source: window.pb
Including source: gadget.pb
Erreur de segmentation
if i remove the inclusion file of "Adonis.class.pb"
chaos@chaos:/media/disk/yame/sources/Melchior$ pbcompiler Main.pb

******************************************
PureBasic 4.20 (Linux - x86)
******************************************

Loading external modules...
Starting compilation...
Including source: ClassPath.pbi
Including source: debug.pb
Including source: POO_macro.pb
Including source: constantes.pb
Including source: Constantes Magi.pbi
Including source: Sprite.pb
Including source: Fonctions XOR.pbi
Including source: Nexus.class.pb
Including source: Atlas.class.pb
Including source: Chaos.class.pb
Including source: variable.class.pb
Including source: fonction.class.pb
Including source: script.class.pb
Including source: Dionysos.class.pb
Including source: Amphore.class.pb
Erreur de segmentation

that why its really a bug at the line 1000.

Posted: Fri Jun 06, 2008 2:21 pm
by Trond
This looks like a bug in the compiler.