[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Debug microwindow: nxclient:Corrupted packet
From: "ShingYuen Wong" ####@####.#### Date: 21 Mar 2002 04:48:01 -0000 Message-Id: <F2738yxdZjfNLnlyg3500017b0b@hotmail.com> Dear all, I have met a problem when running mircrowindow, how can I debug it? :nxclient: Corrupted packet :nxclient bad readblock -1 :242 Segmentation fault ./nano-X I know the the error is printed from nanox/client.c in the function GrReadBlock() and GrCheckBlockType(), and I would like to know which call those function that caused the segmentation fauld? I have use the multibyte patch for displaying chinese TTF, when I run the demo, the error message printed out. Please Help. Thank a lot, Gary _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Debug microwindow: nxclient:Corrupted packet
From: Alex Holden ####@####.#### Date: 21 Mar 2002 09:43:14 -0000 Message-Id: <3C99A9AA.7000005@linuxhacker.org> ShingYuen Wong wrote: > I have met a problem when running mircrowindow, how can I debug it? > :nxclient: Corrupted packet > :nxclient bad readblock -1 > :242 Segmentation fault ./nano-X > I know the the error is printed from nanox/client.c in the function > GrReadBlock() and GrCheckBlockType(), and I would like to know which > call those function that caused the segmentation fauld? The nxclient message means that the client library got confused when the server suddenly closed the connection. The "Segmentation fault ./nano-X" error means that that nano-X crashed with a segmentation fault, which explains why it suddenly closed the connection. You need to build Microwindows with DEBUG=Y, possibly increase ulimit -c, and try to get it to do it again and dump core when it does so. When you have a core file, run gdb -c core ./nano-X then try to figure out why it crashed ("bt" is useful, and if it died in a library function you can use "up" to go up until you find the function that called it). Also, running with LD_PRELOAD=libefence.so.0.0 can be very helpful. -- ------------ Alex Holden - http://www.linuxhacker.org ------------ If it doesn't work, you're not hitting it with a big enough hammer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Debug microwindow: nxclient:Corrupted packet
From: ####@####.#### Date: 21 Mar 2002 10:55:39 -0000 Message-Id: <OF6474741E.73CD2365-ON80256B83.00393EE9@diamond.philips.com> Hi, What format are you using in your calls to GrText and GrGetGCTextSize? UTF8 or UCS16? Regards, Jon Foster | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Debug microwindow: nxclient:Corrupted packet
From: Jordan Crouse ####@####.#### Date: 21 Mar 2002 15:46:30 -0000 Message-Id: <1016725074.1068.1.camel@cosmic> Corrupted packets are almost always the result of having a different versions of the client library and the server. Rebuild everything to the same versions, and you should be fine. Happy hacking! Jordan On Wed, 2002-03-20 at 21:41, ShingYuen Wong wrote: > Dear all, > > I have met a problem when running mircrowindow, how can I debug it? > :nxclient: Corrupted packet > :nxclient bad readblock -1 > :242 Segmentation fault ./nano-X > > I know the the error is printed from nanox/client.c in the function > GrReadBlock() and GrCheckBlockType(), and I would like to know which call > those function that caused the segmentation fauld? > > I have use the multibyte patch for displaying chinese TTF, when I run the > demo, the error message printed out. Please Help. > > > Thank a lot, > Gary > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Debug microwindow: nxclient:Corrupted packet
From: "ShingYuen Wong" ####@####.#### Date: 22 Mar 2002 04:30:50 -0000 Message-Id: <F1288Niz8lcNIPSMcNH0001a877@hotmail.com> Here is the applictaion , and I am using the multibyte patch in CVS GR_Font_ID font_a; ... int main(void) { font_a = GrCCreateFont ("bkai00mp", 20, NULL); ... ... GrMainLoop(event_handler); return 0; } void event_handler (GR_EVENT *event) { switch (event->type) { case GR_EVENT_TYPE_EXPOSURE: GrSetGCFont(gc, font_a); GrText(wid, gc, 20, 20, "XXXX", -1, GR_TFASCII | MWTF_BIG5); break; case GR_EVENT_TYPE-CLOSE-REQ: GrClose(); eixt(0); } } I find that in the GrMainLoop(), there is a GrServiceSelect() calling GrTypeedReadBlock, which have called GrCheckBlockType, and in GrCheckBlockType, it has a statement: while (GrReadBlock(&b, sizeof(b)) != -1) { ... ... ... The GrReadBlock cannot return TRUE, and it seems it cannot read some data from the server can cause the segmentation falut. I want to find why this happened. Please help. Thank you for helping Cheer, Gary >From: ####@####.#### To: ShingYuen Wong ####@####.#### >CC: ####@####.#### >Subject: Re: [nanogui] Debug microwindow: nxclient:Corrupted packet >Date: Thu, 21 Mar 2002 10:40:34 +0000 > >Hi, > >What format are you using in your calls to GrText and GrGetGCTextSize? >UTF8 or UCS16? > >Regards, > >Jon Foster > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: ####@####.#### >For additional commands, e-mail: ####@####.#### > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |