[M3devel] assertion failure in Juno

Mika Nystrom mika at async.async.caltech.edu
Thu Nov 5 19:58:11 CET 2009


I had to fiddle with it a bit to get it to crash.

But no I don't think it's a Juno bug.  It's something deeper in Trestle, I would
think.

I'm running X remotely to a VNC server on a different machine and then viewing
from a viewer on a third machine.

     Mika

"Daniel Alejandro Benavides D." writes:
>Hi:
>thanks for the code, I drew it and making Grid On label show Grid Off inste=
>ad 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=B4t 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 xserv=
>er, that would explain this is not related to Juno-2 core functionality per=
>se at least in LINUXLIBC6 box as I can tell, have you tested this standalon=
>e (Juno and Xserver in same machine, did you do in this way the crash happe=
>n) or  in other platform or distributed between two different platform mach=
>ines with their xclient and xserver?=20
>
>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 =20
>
>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=F3=
>:
>
>> 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
>>=20
>> Here's the Juno code.  Turn on the grid and make a and
>> c coincide.
>>=20
>>     Mika
>>=20
>> VAR=20
>>   a ~ (-47.98, 178.3),=20
>>   b ~ (-56.62, 56.57),=20
>>   c ~ (-69.1, 179.3)=20
>> IN=20
>>   PS.MoveTo(b); PS.CurveTo(a, c, b)=20
>> END
>>=20
>> "Daniel Alejandro Benavides D." writes:
>> >Hi:
>> >I can=3DB4t get how do you get actually to draw it,
>> coould you send a screen =3D
>> >cast of it or some .juno code to run it?=3D20
>> >
>> >--- El mi=3DE9, 4/11/09, Mika Nystrom <mika at async.async.caltech.edu>
>> escribi=3D
>> >=3DF3:
>> >
>> >> De: Mika Nystrom <mika at async.async.caltech.edu>
>> >> Asunto: [M3devel] assertion failure in Juno
>> >> Para: m3devel at elegosoft.com
>> >> Fecha: mi=3DE9rcoles, 4 noviembre, 2009 8:27
>> >> Hello m3devel,
>> >>=3D20
>> >> I'm afraid the following is probably an orphan
>> bug, but in
>> >> case anyone
>> >> has a clue what's going on, here it is:
>> >>=3D20
>> >> 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).
>> >>=3D20
>> >> 2. Turn on the grid.
>> >>=3D20
>> >> 3. Move one of the control points around, so it
>> snaps to
>> >> the grid.
>> >>=3D20
>> >> 4. Move the other control point to the same spot.
>> >>=3D20
>> >> What happens on my AMD64_FREEBSD is this:
>> >>=3D20
>> >> (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,
>> <=3D3D,
>> >> dpy->request)), function process_responses,
>> file
>> >> xcb_io.c, line 242.
>> >> Assertion failed:
>> >> (XLIB_SEQUENCE_COMPARE(dpy->last_request_read,
>> <=3D3D,
>> >> dpy->request)), function process_responses,
>> file
>> >> xcb_io.c, line 242.
>> >> Abort
>> >> (324)ginger:~/cm3/scripts>
>> >>=3D20
>> >> 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?
>> =3D20
>> >>=3D20
>> >>     Mika
>> >>=3D20
>> >> P.S. More detail:
>> >>=3D20
>> >> (m3gdb) run
>> >> Starting program: /usr/local/cm3/bin/Juno=3D20
>> >> Can't disable VM GC.
>> >> Signal        Stop=20
>>   =3D20
>> >> Print   Pass to program
>> Description
>> >> SIG64    =20
>>    No  =3D20
>> >>     No    =20
>> Yes    =3D20
>> >>        Real-time event 64
>> >>=3D20
>> >> Program received signal SIGUSR2, User defined
>> signal 2.
>> >> 0x0000000802eb729c in __error () from
>> /lib/libthr.so.3
>> >> (m3gdb) handle SIGUSR2 nostop noprint
>> >> Signal        Stop=20
>>   =3D20
>> >> Print   Pass to program
>> Description
>> >> SIGUSR2       No=20
>> =3D20
>> >>     No    =20
>> Yes    =3D20
>> >>        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,
>> <=3D3D,
>> >> dpy->request)), function process_responses,
>> file
>> >> xcb_io.c, line 242.
>> >> Assertion failed:
>> >> (XLIB_SEQUENCE_COMPARE(dpy->last_request_read,
>> <=3D3D,
>> >> dpy->request)), function process_responses,
>> file
>> >> xcb_io.c, line 242.
>> >>=3D20
>> >> 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=3D3DInvalid
>> >> C/C++ type code 26 in symbol table.
>> >> ) at ../src/xvbt/XClientF.m3:362
>> >> #7  0x000000080124dfb5 in Messenger
>> (self=3D3DInvalid
>> >> C/C++ type code 26 in symbol table.
>> >> ) at ../src/xvbt/XMessenger.m3:108
>> >> #8  0x0000000801aeb7b3 in RunThread
>> (me=3D3DInvalid C/C++
>> >> type code 29 in symbol table.
>> >> ) at ../src/thread/PTHREAD/ThreadPThread.m3:509
>> >> #9  0x0000000801aeb569 in ThreadBase
>> (param=3D3DInvalid
>> >> 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)=3D20
>> >> (m3gdb) up 6
>> >> #6  0x0000000801268b1b in AdjustCoverage
>> >> (xcon=3D3D16_000000080377a2c0, d=3D3D1) 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} =3D3D
>> >> 358       BEGIN
>> >> 359         TRY
>> >> 360    =3D20
>> >>    INC(xcon.coverage, d);
>> >> 361         IF
>> xcon.coverage
>> >> =3D3D 0 THEN X.XFlush(xcon.dpy) END;
>> >> 362         IF
>> >> X.XEventsQueued(xcon.dpy, X.QueuedAfterReading) #
>> 0 THEN
>> >> 363      =3D20
>> >>    Thread.Signal(xcon.qNonEmpty)
>> >> 364         END;
>> >> 365         EXCEPT
>> X.Error
>> >> =3D3D> RAISE TrestleComm.Failure END;
>> >> 366       END
>> AdjustCoverage;
>> >> (m3gdb) print xcon.dpy
>> >> $1 =3D3D 16_000000080389f000
>> >>=3D20
>> >>=3D20
>> >>=3D20
>> >> =3D0A=3D0A=3D0A     =20
>> =0A=0A=0A      



More information about the M3devel mailing list