From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 27899 invoked from network); 21 Apr 1998 06:27:11 -0000 Received: from smtp.paralleldata.com (HELO paralleldata.com) (38.153.145.2) by mail2.redhat.com with SMTP; 21 Apr 1998 06:27:11 -0000 Received: by paralleldata.com from localhost (router,SLMail V2.5); Tue, 21 Apr 1998 01:26:50 -0500 Received: by paralleldata.com from paralleldata.com (153.35.190.169::mail daemon; unverified,SLMail V2.5); Tue, 21 Apr 1998 01:26:48 -0500 Sender: "Wsb" Message-ID: <353C4BB4.3D8DC12C@paralleldata.com> Date: Tue, 21 Apr 1998 02:33:08 -0500 From: "Wes Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.31 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Debugging X server References: <353B3185.9C825092@voicenet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Uncle George wrote: > if my java junk ran outta mem, then java et al would die a horrible death, > courtesy of the os. > since X is fed up, as it gives up on the first sig 11, have to see why its > fed up. > > u mean a real serial line, with a serial terminal - gee how quaint :-)))) > havent seen my LSI ADM3 in a real long time. > gat > I think it's easier to just start X as you normally do. Then, telnet in from another system and use gdb to attach to the X process. Tell gdb to then continue running the program and go back to your system and cause the error. Everything should die but if you go back to the gdb session on the other screen, you'll have the info you need. I did it for the 20 windows problem and it worked. I downloaded the latest Xserver code (3.3.2) and built it with '-g' added to the compile flags to see if it's possible to trace where that problem goes belly up in the X server. The SIGSEGV is at: ProcChangeSaveSet(), at dispatch.c:473 465 pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client, 466 SecurityReadAccess); 467 if (!pWin) 468 return(BadWindow); 469 if (client->clientAsMask == (CLIENT_BITS(pWin->drawable.id))) 470 return BadMatch; 471 if ((stuff->mode == SetModeInsert) || (stuff->mode == SetModeDelete)) 472 { 473 result = AlterSaveSetForClient(client, pWin, stuff->mode); <---- Near here!!! 474 if (client->noClientException != Success) 475 return(client->noClientException); 476 else 477 return(result); 478 } 479 else 480 { 481 client->errorValue = stuff->mode; 482 return( BadValue ); 483 } Haven't figured out exactly what broke yet but at least I know where to look. If anyone else knows more about the X servers, maybe they could also look at this area to see what might be wrong. One other thing. The binary with '-g' on all source is about 17MB so you need a system with lots of memory to do this for the full server source. > Alan Cox wrote: > > > > my X setver XF86_SVGA for the alpha port gets sig 11 when i run 2 java > > > applications. I'm fed up. > > > > > HOW DOES ONE DEBUG THE X SERVER???? > > > > Compile it with -g and run it under gdb from a serial line. > > > > Are you sure the java junk isnt just running you out of virtual memory. > > > > Alan Wes