On Sun, 25 Jun 2006 13:36:52 +0200
Lord Satan <[EMAIL PROTECTED]> wrote:
> When I compile a unit with a form in it which contains errors Lazarus
> crashes. It correctly stops and shows the errors if the unit in question
> does not contain a form. In my test cases this was always the main form
> and I did not try it with other forms. Here is the output of lazarus:
>
> glslform.pp(319,3) Error: Identifier not found "writelni"
> glslform.pp(319,43) Error: Illegal expression
> glslform.pp(464) Fatal: There were 2 errors compiling module, stopping
> TApplication.HandleException Access violation
> Stack trace:
> $0843EDB4 TASYNCPROCESS__GETNUMBYTESAVAILABLE, line 95 of
> asyncprocess.pp
I added a check.
Fixed?
Mattias
> $0834D594 TOUTPUTFILTER__ONASYNCREADDATA, line 1025
> of outputfilter.pas $0843EF1B TASYNCPROCESS__HANDLEPIPEINPUT, line
> 133 of asyncprocess.pp $0811C37B TGTKWIDGETSET__HANDLEPIPEEVENT, line
> 129 of gtklclintf.inc $0811C098 WAITHANDLE_IOCALLBACK, line 38 of
> gtklclintf.inc $4841D037 ADD, line 154 of debugoptionsfrm.pas
> $4841E681 ADD, line 154 of debugoptionsfrm.pas
> $4841F0F6 ADD, line 154 of debugoptionsfrm.pas
> $4874EEA0 ADD, line 154 of debugoptionsfrm.pas
> $08100DAB TGTKWIDGETSET__APPPROCESSMESSAGES, line 1754 of
> gtkobject.inc $08075083 TAPPLICATION__HANDLEMESSAGE, line 919
> of ./include/application.inc $0807548C RUNMESSAGE, line 1034
> of ./include/application.inc $080753D7 TAPPLICATION__RUNLOOP, line
> 1044 of ./include/application.inc $080B6BBB TWIDGETSET__APPRUN, line
> 42 of ./include/interfacebase.inc $08075384 TAPPLICATION__RUN, line
> 1023 of ./include/application.inc Note: GetTextBuf is overridden
> for: ______Y__________________x___________________ lazarus.pp -
> unhandled
> exception [FORMS.PP] ExceptionOccurred
>
> And here is the backtrace:
>
> (gdb) bt
> #0 0x0805e17e in fpc_raiseexception ()
> #1 0x0834b53e in TOUTPUTFILTER__READFPCOMPILERLINE (S=0xb78b007c,
> this=0xb7e04214) at outputfilter.pas:771 #2 0x0834a80f in
> TOUTPUTFILTER__READLINE (S=0xb78b007c, DONTFILTERLINE=false,
> this=0xb7e04214) at outputfilter.pas:334 #3 0x0834a5aa in
> TOUTPUTFILTER__EXECUTE (THEPROCESS=0xb7b85174, this=0xb7e04214) at
> outputfilter.pas:291 #4 0x082710c3 in TCOMPILER__COMPILE
> (APROJECT=0xb7b6d3d4, BUILDALL=false, WORKINGDIR=0xb79642dc,
> COMPILERFILENAME=0xb79a645c, COMPILERPARAMS=0xb77ae01c,
> this=0xb79918b4) at compiler.pp:160 #5 0x0809cc5f in
> TMAINIDE__DOBUILDPROJECT (AREASON=CRRUN, FLAGS=[PBFONLYIFNEEDED],
> this=0xb7cca084) at main.pp:7535 #6 0x0809d023 in
> TMAINIDE__DOINITPROJECTRUN (this=0xb7cca084) at main.pp:7603 #7
> 0x0809d17b in TMAINIDE__DORUNPROJECT (this=0xb7cca084) at main.pp:7664
> #8 0x0808b001 in TMAINIDE__ONPROCESSIDECOMMAND (SENDER=0xb7b5a2e8,
> COMMAND=1404, HANDLED=true, this=0xb7cca084) at main.pp:2439 #9
> 0x082ed559 in TSOURCENOTEBOOK__PROCESSPARENTCOMMAND (SENDER=0xb79316b4,
> COMMAND=1404, ACHAR='', DATA=0x0, HANDLED=true, this=0xb7b5a2e8) at
> uniteditor.pp:5259 #10 0x082e0035 in TSOURCEEDITOR__PROCESSUSERCOMMAND
> (SENDER=0xb785b5d8, COMMAND=1404, ACHAR='', DATA=0x0, this=0xb79316b4)
> at uniteditor.pp:1457 #11 0x084669b9 in
> TCUSTOMSYNEDIT__DOONPROCESSCOMMAND (COMMAND=1404, ACHAR='', DATA=0x0,
> this=0xb785b5d8) at synedit.pp:8409 #12 0x08463988 in
> TCUSTOMSYNEDIT__COMMANDPROCESSOR (COMMAND=1404, ACHAR='', DATA=0x0,
> this=0xb785b5d8) at synedit.pp:7425 #13 0x0845714b in
> TCUSTOMSYNEDIT__KEYDOWN (KEY=0, SHIFT=[], this=0xb785b5d8) at
> synedit.pp:2144 #14 0x081386d0 in TWINCONTROL__KEYDOWNBEFOREINTERFACE
> (KEY=0, SHIFT=[], this=0xb785b5d8) at wincontrol.inc:3607 #15
> 0x081389fb in TWINCONTROL__DOKEYDOWNBEFOREINTERFACE (MESSAGE={MSG =
> 48384, CHARCODE = 0, UNUSED = 0, KEYDATA = 4915201, RESULT = 0},
> this=0xb785b5d8) at wincontrol.inc:3743 #16 0x0813a62f in
> TWINCONTROL__CNKEYDOWN (MESSAGE={MSG = 48384, CHARCODE = 0, UNUSED = 0,
> KEYDATA = 4915201, RESULT = 0}, this=0xb785b5d8) at wincontrol.inc:4789
> #17 0x0805d6c3 in SYSTEM_TOBJECT_$__DISPATCH$formal () #18 0x081406da
> in TCONTROL__WNDPROC (THEMESSAGE= {MSG = 48384, WPARAM = 0, LPARAM =
> 4915201, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 1, LPARAMHI
> = 75, RESULTLO = 0, RESULTHI = 0}, this=0xb785b5d8) at control.inc:1542
> #19 0x08138095 in TWINCONTROL__WNDPROC (MESSAGE= {MSG = 48384, WPARAM =
> 0, LPARAM = 4915201, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO =
> 1, LPARAMHI = 75, RESULTLO = 0, RESULTHI = 0}, this=0xb785b5d8) at
> wincontrol.inc:3399 #20 0x08462716 in TCUSTOMSYNEDIT__WNDPROC (MSG=
> {MSG = 48384, WPARAM = 0, LPARAM = 4915201, RESULT = 0, WPARAMLO = 0,
> WPARAMHI = 0, LPARAMLO = 1, LPARAMHI = 75, RESULTLO = 0, RESULTHI = 0},
> this=0xb785b5d8) at synedit.pp:6966 #21 0x08155001 in DELIVERMESSAGE
> (TARGET=0xb785b5d8, AMESSAGE=void) at gtkproc.inc:3465 #22 0x08152ada
> in HANDLEGTKKEYUPDOWN (WIDGET=0x8a4af20, EVENT=0x8971c18,
> DATA=0xb7b5a2e8, BEFOREEVENT=true) at gtkproc.inc:2331 #23 0x0815d1ce
> in GTKKEYUPDOWN (WIDGET=0x8a4af20, EVENT=0x8971c18, DATA=0xb7b5a2e8) at
> gtkcallback.inc:566 #24 0x48750489 in gtk_marshal_BOOL__POINTER ()
> from /usr/lib/libgtk-1.2.so.0 #25 0x487842f5 in
> gtk_signal_connect_while_alive () from /usr/lib/libgtk-1.2.so.0 #26
> 0x487853e3 in gtk_signal_emit_stop_by_name ()
> from /usr/lib/libgtk-1.2.so.0 #27 0x48785a59 in gtk_signal_emit ()
> from /usr/lib/libgtk-1.2.so.0 #28 0x487c4246 in gtk_widget_event ()
> from /usr/lib/libgtk-1.2.so.0 #29 0x4874ff65 in gtk_propagate_event ()
> from /usr/lib/libgtk-1.2.so.0 #30 0x487501ac in gtk_main_do_event ()
> from /usr/lib/libgtk-1.2.so.0 #31 0x483ed583 in gdk_event_get ()
> from /usr/lib/libgdk-1.2.so.0 #32 0x4841e681 in g_get_current_time ()
> from /usr/lib/libglib-1.2.so.0 #33 0x4841f0f6 in g_main_add_poll ()
> from /usr/lib/libglib-1.2.so.0 #34 0x4874eea0 in gtk_main_iteration_do
> () from /usr/lib/libgtk-1.2.so.0 #35 0x08100f32 in
> TGTKWIDGETSET__APPWAITMESSAGE (this=0xb7dff094) at gtkobject.inc:1813
> #36 0x08073b8b in TAPPLICATION__IDLE (WAIT=true, this=0xb7e07014) at
> application.inc:282 #37 0x08075099 in TAPPLICATION__HANDLEMESSAGE
> (this=0xb7e07014) at application.inc:920 #38 0x0807548c in RUNMESSAGE
> (parentfp=0xbfa13264) at application.inc:1034 #39 0x080753d7 in
> TAPPLICATION__RUNLOOP (this=0xb7e07014) at application.inc:1044 #40
> 0x080b6bbb in TWIDGETSET__APPRUN (ALOOP=0x8075398
> <TAPPLICATION__RUNLOOP>, this=0xb7dff094) at interfacebase.inc:42 #41
> 0x08075384 in TAPPLICATION__RUN (this=0xb7e07014) at
> application.inc:1023 #42 0x08053e25 in main () at lazarus.pp:99
>
> Lazarus rev: 9497
> FPC: 2.0.2
> OS: Ubuntu Linux 6.06
>
> _________________________________________________________________
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject
> archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives