* Debugging X server
@ 1998-04-20 2:12 Uncle George
1998-04-20 3:35 ` Christopher Curtis
1998-04-20 5:06 ` adisaacs
0 siblings, 2 replies; 7+ messages in thread
From: Uncle George @ 1998-04-20 2:12 UTC (permalink / raw)
To: axp-list@redhat.com; +Cc: redhat-devel-list@redhat.com, bugs, bug
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????
any usefull hints.
gat
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Debugging X server
1998-04-20 2:12 Uncle George
@ 1998-04-20 3:35 ` Christopher Curtis
1998-04-20 5:06 ` adisaacs
1 sibling, 0 replies; 7+ messages in thread
From: Christopher Curtis @ 1998-04-20 3:35 UTC (permalink / raw)
To: axp-list@redhat.com
On Sun, 19 Apr 1998, Uncle George wrote:
> HOW DOES ONE DEBUG THE X SERVER????
> any usefull hints.
> gat
I would suggest ptrace but it doesn't seem to have come with my Alpha.
You can always attach to the X server with gdb immediately before it
crashes, and I think there's an X option to generate core on error. Try:
"startx -- -core"
Of course, it helps if your X is compiled with debugging symbols.
--
Christopher Curtis - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology - System Administrator, Programmer
Melbourne, Florida USA - http://www.lp.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Debugging X server
1998-04-20 2:12 Uncle George
1998-04-20 3:35 ` Christopher Curtis
@ 1998-04-20 5:06 ` adisaacs
1998-04-20 7:24 ` Harald Koenig
1 sibling, 1 reply; 7+ messages in thread
From: adisaacs @ 1998-04-20 5:06 UTC (permalink / raw)
To: axp-list
On Sun, Apr 19, 1998 at 10:12:12PM -0400, Uncle George 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????
The best way is either over a network, or via a serial terminal. Grab an
XFree86 source tree from ftp.xfree86.org, compile it (with debugging
symbols, preferably), and gdb away. Don't try this on console, though.
-andy
--
Andy Isaacson adisaacs@mtu.edu adi@acm.org Fight Spam, join CAUCE:
http://www.csl.mtu.edu/~adisaacs/ http://www.cauce.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Debugging X server
1998-04-20 5:06 ` adisaacs
@ 1998-04-20 7:24 ` Harald Koenig
0 siblings, 0 replies; 7+ messages in thread
From: Harald Koenig @ 1998-04-20 7:24 UTC (permalink / raw)
To: axp-list
On Apr 20, adisaacs@trurl.resnet.mtu.edu wrote:
> On Sun, Apr 19, 1998 at 10:12:12PM -0400, Uncle George 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????
>
> The best way is either over a network, or via a serial terminal. Grab an
> XFree86 source tree from ftp.xfree86.org, compile it (with debugging
> symbols, preferably), and gdb away. Don't try this on console, though.
compiling the whole X server with `-g' isn't necessary nor usefull,
this will only create _huge_ binaries and quires even more memory in gdb.
first check the trace back of a core dump or run the normal X server once
in gdb from remote login or similar. then just compile the last few routines
in the traceback with `-g' (or the directories including them, e.g.
..../xfree86/vga256/drivers/s3v for SVGA/s3_virge) and link a new server binary.
usual commands are:
cd ..../xfree86/vga256/drivers/s3v
rm *.o
make "CDEBUGFLAGS=-O2 -g" # check original settings in Makefile!!
make -C .. SUBDIRS=s3v
cd ..../xc/programs/Xserver
make loadXF86_SVGA
Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Debugging X server
[not found] <m0yRCNo-000aNhC@the-village.bc.nu>
@ 1998-04-20 11:29 ` Uncle George
1998-04-21 7:33 ` Wes Bauske
0 siblings, 1 reply; 7+ messages in thread
From: Uncle George @ 1998-04-20 11:29 UTC (permalink / raw)
To: axp-list
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
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Debugging X server
1998-04-20 11:29 ` Debugging X server Uncle George
@ 1998-04-21 7:33 ` Wes Bauske
1998-04-21 11:12 ` Uncle George
0 siblings, 1 reply; 7+ messages in thread
From: Wes Bauske @ 1998-04-21 7:33 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Debugging X server
1998-04-21 7:33 ` Wes Bauske
@ 1998-04-21 11:12 ` Uncle George
0 siblings, 0 replies; 7+ messages in thread
From: Uncle George @ 1998-04-21 11:12 UTC (permalink / raw)
To: axp-list
have u looked at the addr in stuff? if the last hex digit is not a 0 of 8, u are
probably dying of an alignment fault.
gat
Wes Bauske wrote:
> 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
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1998-04-21 12:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <m0yRCNo-000aNhC@the-village.bc.nu>
1998-04-20 11:29 ` Debugging X server Uncle George
1998-04-21 7:33 ` Wes Bauske
1998-04-21 11:12 ` Uncle George
1998-04-20 2:12 Uncle George
1998-04-20 3:35 ` Christopher Curtis
1998-04-20 5:06 ` adisaacs
1998-04-20 7:24 ` Harald Koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox