[lazarus] CVS Updatesuy

Marco van de Voort marcov at stack.nl
Wed Jun 18 09:41:46 EDT 2003


> 
> But I'll hunt for {$ifdef linux} and {$ifdef unix} conditionals and check
> them myself. If that doesn't reveal anything, I can always try to
> debug it then.

The problem is the fd_set call cmdlinedebugger.pp:waitforhandles. The handle
that is added is negative.

That handle traces back to the tprocess object, so that one works for
FreeBSD, but the handle is not ok.

That in turn seems to be created using "createpipestreams" and is 
named FParentInputStream;
in process.inc:47, which calls AssignPipe which is in linux.

I quick checked that, and that implementation seems sane, but I have to
rebuild FPC with debug info first before I can further get into that.

?MarcoV is confused here?

Traceback

(value of output.handle filedescriptor = -1077940440 in waitforhandles)

Program received signal SIGBUS, Bus error.
$082fb778 in _LINUX$$_FD_SET$LONGINT$FDSET ()
(gdb) (gdb)
bt
#0  $082fb778 in _LINUX$$_FD_SET$LONGINT$FDSET ()
#1  $080843a5 in WAITFORHANDLES (AHANDLES=$bfbfef1c, highAHANDLES=0) at
cmdlinedebugger.pp:130
#2  $08084af5 in TCMDLINEDEBUGGER__READLINE (APEEK=false, this=$288514a4) at
cmdlinedebugger.pp:309
#3  $08084831 in TCMDLINEDEBUGGER__READLINE (this=$288514a4) at
cmdlinedebugger.pp:246
#4  $080864e8 in TGDBMIDEBUGGER__INIT (this=$288514a4) at
gdbmidebugger.pp:767
#5  $080bf98a in TDEBUGMANAGER__DOINITDEBUGGER (this=$28826964) at
debugmanager.pas:1334
#6  $08262e76 in TMAINIDE__DOINITPROJECTRUN (this=$287c8024) at main.pp:5619
#7  $082631c7 in TMAINIDE__DORUNPROJECT (this=$287c8024) at main.pp:5656
#8  $08256849 in TMAINIDE__MNURUNPROJECTCLICKED (SENDER=$288208c4,
this=$287c8024) at main.pp:2259
#9  $082b2aae in TCONTROL__CLICK (this=$288208c4) at control.inc:1385
#10 $0829d759 in TSPEEDBUTTON__CLICK (this=$288208c4) at speedbutton.inc:74
#11 $082b2a12 in TCONTROL__WMLBUTTONUP (MESSAGE=
      {MSG = 514, KEYS = 1, XPOS = 10, YPOS = 9, POS = {X = 10, Y = 9},
RESULT = 0}, this=$288208c4)
    at control.inc:1346
#12 $083211f5 in _SYSBSD$$_$$_TOBJECT_$$_DISPATCH$$$$ ()
#13 $082b268c in TCONTROL__WNDPROC (THEMESSAGE=
      {MSG = 514, WPARAM = 1, LPARAM = 589834, RESULT = 0, WPARAMLO = 1,
WPARAMHI = 0, LPARAMLO = 10, LPARAMHI = 9, RESULTLO = 0, RESULTHI = 0},
this=$288208c4) at control.inc:1112
#14 $082b1a29 in TCONTROL__PERFORM (MSG=514, WPARAM=1, LPARAM=589834,
this=$288208c4)
    at control.inc:639
#15 $082ade07 in TWINCONTROL__ISCONTROLMOUSEMSG (THEMESSAGE=
      {MSG = 514, KEYS = 1, XPOS = 71, YPOS = 33, POS = {X = 71, Y = 33},
RESULT = 0}, this=$28812224)
    at wincontrol.inc:1109
#16 $082ae974 in TWINCONTROL__WNDPROC (MESSAGE=
      {MSG = 514, WPARAM = 1, LPARAM = 2162759, RESULT = 0, WPARAMLO = 1,
WPARAMHI = 0, LPARAMLO = 71, LPARAMHI = 33, RESULTLO = 0, RESULTHI = 0},
this=$28812224) at wincontrol.inc:1481
#17 $0827210a in DELIVERMESSAGE (TARGET=$28812224, AMESSAGE=void) at
gtkproc.inc:1175
#18 $08278152 in DELIVERMOUSEUPMESSAGE (WIDGET=$855fc00, EVENT=$854d018,
AWINCONTROL=$28812224)
    at gtkcallback.inc:1376
#19 $082781e3 in GTKMOUSEBTNRELEASE (WIDGET=$855fc00, EVENT=$854d018,
DATA=$28812224)
    at gtkcallback.inc:1422
#20 $2848dc62 in gtk_marshal_BOOL__POINTER () from
/usr/X11R6/lib/libgtk12.so.2
#21 $284be334 in gtk_handlers_run () from /usr/X11R6/lib/libgtk12.so.2
#22 $284bd750 in gtk_signal_real_emit () from /usr/X11R6/lib/libgtk12.so.2
#23 $284bb76b in gtk_signal_emit () from /usr/X11R6/lib/libgtk12.so.2
#24 $284f2da8 in gtk_widget_event () from /usr/X11R6/lib/libgtk12.so.2
#25 $2848dbad in gtk_propagate_event () from /usr/X11R6/lib/libgtk12.so.2
#26 $2848cc9a in gtk_main_do_event () from /usr/X11R6/lib/libgtk12.so.2
#27 $2853ce16 in gdk_event_dispatch () from /usr/X11R6/lib/libgdk12.so.2
#28 $285aef22 in g_main_dispatch () from /usr/local/lib/libglib12.so.3
#29 $285af52b in g_main_iterate () from /usr/local/lib/libglib12.so.3
#30 $285af5e8 in g_main_iteration () from /usr/local/lib/libglib12.so.3
#31 $2848c87a in gtk_main_iteration_do () from /usr/X11R6/lib/libgtk12.so.2
#32 $082d33d4 in TGTKOBJECT__WAITMESSAGE (this=$84e3c14) at
gtkobject.inc:1148
#33 $082a5559 in TAPPLICATION__IDLE (this=$84e3a94) at application.inc:282
#34 $082a60c4 in TAPPLICATION__HANDLEMESSAGE (this=$84e3a94) at
application.inc:679
#35 $082a6234 in TAPPLICATION__RUN (this=$84e3a94) at application.inc:769
#36 $08325ecc in main () at lazarus.pp:80







More information about the Lazarus mailing list