[M3devel] assertion failure in Juno

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Thu Nov 5 16:40:32 CET 2009


Hi:
thanks for the code, I drew it and making Grid On label show Grid Off instead and making a and c coincide (using both Drag function button and source code coordinates change as pointed on 3. and 4. instructions of your first email) but so far I can´t get to see anything wrong happen (i.e. it doesn`t terminate). It looks like  your Xserver showed an error on stderr.
Perhaps this can be xclient crash handling Trestle client messages to xserver, that would explain this is not related to Juno-2 core functionality perse at least in LINUXLIBC6 box as I can tell, have you tested this standalone (Juno and Xserver in same machine, did you do in this way the crash happen) or  in other platform or distributed between two different platform machines with their xclient and xserver? 

compiler version (cm3 -version)
test at fbd-desktop:~$ cm3 -version
Critical Mass Modula-3 version d5.8.2
  last updated: 2009-07-15
  compiled: 2009-07-20 04:36:35
  configuration: /usr/local/cm3/bin/cm3.cfg
  host: LINUXLIBC6
  target: LINUXLIBC6  

My xorg xserver is running standalone (i.e not distributed).
Thanks in advance

--- El jue, 5/11/09, Mika Nystrom <mika at async.async.caltech.edu> escribió:

> De: Mika Nystrom <mika at async.async.caltech.edu>
> Asunto: Re: [M3devel] assertion failure in Juno
> Para: "Daniel Alejandro Benavides D." <dabenavidesd at yahoo.es>
> CC: m3devel at elegosoft.com
> Fecha: jueves, 5 noviembre, 2009 1:02
> 
> Here's the Juno code.  Turn on the grid and make a and
> c coincide.
> 
>     Mika
> 
> VAR 
>   a ~ (-47.98, 178.3), 
>   b ~ (-56.62, 56.57), 
>   c ~ (-69.1, 179.3) 
> IN 
>   PS.MoveTo(b); PS.CurveTo(a, c, b) 
> END
> 
> "Daniel Alejandro Benavides D." writes:
> >Hi:
> >I can=B4t get how do you get actually to draw it,
> coould you send a screen =
> >cast of it or some .juno code to run it?=20
> >
> >--- El mi=E9, 4/11/09, Mika Nystrom <mika at async.async.caltech.edu>
> escribi=
> >=F3:
> >
> >> De: Mika Nystrom <mika at async.async.caltech.edu>
> >> Asunto: [M3devel] assertion failure in Juno
> >> Para: m3devel at elegosoft.com
> >> Fecha: mi=E9rcoles, 4 noviembre, 2009 8:27
> >> Hello m3devel,
> >>=20
> >> I'm afraid the following is probably an orphan
> bug, but in
> >> case anyone
> >> has a clue what's going on, here it is:
> >>=20
> >> 1. Put down three points in Juno, draw a curve
> using them
> >> (looping from
> >> one point back to itself, with the other two as
> control
> >> points).
> >>=20
> >> 2. Turn on the grid.
> >>=20
> >> 3. Move one of the control points around, so it
> snaps to
> >> the grid.
> >>=20
> >> 4. Move the other control point to the same spot.
> >>=20
> >> What happens on my AMD64_FREEBSD is this:
> >>=20
> >> (323)ginger:~/cm3/scripts>Juno
> >> Xlib:  extension "Generic Event Extension"
> missing on
> >> display "rover:1.0".
> >> Assertion failed:
> >> (XLIB_SEQUENCE_COMPARE(dpy->last_request_read,
> <=3D,
> >> dpy->request)), function process_responses,
> file
> >> xcb_io.c, line 242.
> >> Assertion failed:
> >> (XLIB_SEQUENCE_COMPARE(dpy->last_request_read,
> <=3D,
> >> dpy->request)), function process_responses,
> file
> >> xcb_io.c, line 242.
> >> Abort
> >> (324)ginger:~/cm3/scripts>
> >>=20
> >> now if it had crashed in Juno's M3 code I wouldn't
> be
> >> concerned, but it
> >> seems to be crashing in X code, which just sounds
> wrong...
> >> and it seems
> >> to crash in some sort of messaging queue code?
> =20
> >>=20
> >>     Mika
> >>=20
> >> P.S. More detail:
> >>=20
> >> (m3gdb) run
> >> Starting program: /usr/local/cm3/bin/Juno=20
> >> Can't disable VM GC.
> >> Signal        Stop 
>   =20
> >> Print   Pass to program
> Description
> >> SIG64     
>    No  =20
> >>     No     
> Yes    =20
> >>        Real-time event 64
> >>=20
> >> Program received signal SIGUSR2, User defined
> signal 2.
> >> 0x0000000802eb729c in __error () from
> /lib/libthr.so.3
> >> (m3gdb) handle SIGUSR2 nostop noprint
> >> Signal        Stop 
>   =20
> >> Print   Pass to program
> Description
> >> SIGUSR2       No 
> =20
> >>     No     
> Yes    =20
> >>        User defined signal 2
> >> (m3gdb) cont
> >> Continuing.
> >> Xlib:  extension "Generic Event Extension"
> missing on
> >> display "rover:1.0".
> >> Assertion failed:
> >> (XLIB_SEQUENCE_COMPARE(dpy->last_request_read,
> <=3D,
> >> dpy->request)), function process_responses,
> file
> >> xcb_io.c, line 242.
> >> Assertion failed:
> >> (XLIB_SEQUENCE_COMPARE(dpy->last_request_read,
> <=3D,
> >> dpy->request)), function process_responses,
> file
> >> xcb_io.c, line 242.
> >>=20
> >> Program received signal SIGABRT, Aborted.
> >> 0x000000080300ea9c in thr_kill () from
> /lib/libc.so.7
> >> (m3gdb) where
> >> #0  0x000000080300ea9c in thr_kill () from
> >> /lib/libc.so.7
> >> #1  0x000000080309df8b in abort () from
> >> /lib/libc.so.7
> >> #2  0x0000000803085f55 in __assert () from
> >> /lib/libc.so.7
> >> #3  0x0000000802ba7451 in process_responses
> () from
> >> /usr/local/lib/libX11.so.6
> >> #4  0x0000000802ba7cc7 in _XEventsQueued ()
> from
> >> /usr/local/lib/libX11.so.6
> >> #5  0x0000000802b91b8b in XEventsQueued ()
> from
> >> /usr/local/lib/libX11.so.6
> >> #6  0x0000000801268b1b in AdjustCoverage
> (xcon=3DInvalid
> >> C/C++ type code 26 in symbol table.
> >> ) at ../src/xvbt/XClientF.m3:362
> >> #7  0x000000080124dfb5 in Messenger
> (self=3DInvalid
> >> C/C++ type code 26 in symbol table.
> >> ) at ../src/xvbt/XMessenger.m3:108
> >> #8  0x0000000801aeb7b3 in RunThread
> (me=3DInvalid C/C++
> >> type code 29 in symbol table.
> >> ) at ../src/thread/PTHREAD/ThreadPThread.m3:509
> >> #9  0x0000000801aeb569 in ThreadBase
> (param=3DInvalid
> >> C/C++ type code 35 in symbol table.
> >> ) at ../src/thread/PTHREAD/ThreadPThread.m3:490
> >> #10 0x0000000802ead4d1 in pthread_getprio () from
> >> /lib/libthr.so.3
> >> #11 0x0000000000000000 in ?? ()
> >> (m3gdb)=20
> >> (m3gdb) up 6
> >> #6  0x0000000801268b1b in AdjustCoverage
> >> (xcon=3D16_000000080377a2c0, d=3D1) at
> >> ../src/xvbt/XClientF.m3:362
> >> 362         IF
> >> X.XEventsQueued(xcon.dpy, X.QueuedAfterReading) #
> 0 THEN
> >> Current language:  auto; currently Modula-3
> >> (m3gdb) list
> >> 357       RAISES
> >> {TrestleComm.Failure} =3D
> >> 358       BEGIN
> >> 359         TRY
> >> 360    =20
> >>    INC(xcon.coverage, d);
> >> 361         IF
> xcon.coverage
> >> =3D 0 THEN X.XFlush(xcon.dpy) END;
> >> 362         IF
> >> X.XEventsQueued(xcon.dpy, X.QueuedAfterReading) #
> 0 THEN
> >> 363      =20
> >>    Thread.Signal(xcon.qNonEmpty)
> >> 364         END;
> >> 365         EXCEPT
> X.Error
> >> =3D> RAISE TrestleComm.Failure END;
> >> 366       END
> AdjustCoverage;
> >> (m3gdb) print xcon.dpy
> >> $1 =3D 16_000000080389f000
> >>=20
> >>=20
> >>=20
> >> =0A=0A=0A      
> 


      



More information about the M3devel mailing list