* Debugging X server
@ 1998-04-20 2:12 Uncle George
1998-04-20 3:35 ` Christopher Curtis
` (2 more replies)
0 siblings, 3 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 Debugging X server Uncle George
@ 1998-04-20 3:35 ` Christopher Curtis
1998-04-20 5:06 ` adisaacs
[not found] ` <199804200244.WAA15361@lacrosse.redhat.com>
2 siblings, 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 Debugging X server Uncle George
1998-04-20 3:35 ` Christopher Curtis
@ 1998-04-20 5:06 ` adisaacs
1998-04-20 7:24 ` Harald Koenig
[not found] ` <199804200244.WAA15361@lacrosse.redhat.com>
2 siblings, 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
* X server bug on DIGITAL alpha
[not found] ` <199804200244.WAA15361@lacrosse.redhat.com>
@ 1998-04-21 12:08 ` Uncle George
1998-04-21 15:19 ` Harald Koenig
1998-04-21 18:59 ` Michal Jaegermann
0 siblings, 2 replies; 7+ messages in thread
From: Uncle George @ 1998-04-21 12:08 UTC (permalink / raw)
To: bugs; +Cc: axp-list@redhat.com, xbugs
in XFree86-3.3.1/xc/programs/Xserver/cfb32/cfb8segC.c there is a statement
RROP_SOLID_MASK(( unsigned long *) addrp, e )
on my alpha addrp = PixelType * which equals a CARD32 * which equals to an
unsigned int *
UNFORTUNATELY, when u cast addrp to a long pointer, the macro RROP_SOLID_MASK,
will try to fetch
it as a long pointer ( ie get 8 bytes of a long value ). Thats ok, except that u
get an alignment fault when the address
doesn't point to an aligned long address, as it was in my case when the last
nibble of the addr was a 4.
i SUSPECT u want to keep the 32'ness of the addrp, and really don't want to go a
64 bit long pointer.
ergo use:
RROP_SOLID_MASK(( unsigned int *) addrp, e )
or better yet, if u have the typedef:
RROP_SOLID_MASK(( unsigned long32 *) addrp, e )
or
RROP_SOLID_MASK(( unsigned int32 *) addrp, e )
gat
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: X server bug on DIGITAL alpha
1998-04-21 12:08 ` X server bug on DIGITAL alpha Uncle George
@ 1998-04-21 15:19 ` Harald Koenig
1998-04-21 18:59 ` Michal Jaegermann
1 sibling, 0 replies; 7+ messages in thread
From: Harald Koenig @ 1998-04-21 15:19 UTC (permalink / raw)
To: axp-list; +Cc: AXP-XFree86
On Apr 21, Uncle George wrote:
> in XFree86-3.3.1/xc/programs/Xserver/cfb32/cfb8segC.c there is a statement
XFree86 3.3.2 still looks the same:(
> RROP_SOLID_MASK(( unsigned long *) addrp, e )
>
> on my alpha addrp = PixelType * which equals a CARD32 * which equals to an
> unsigned int *
>
> UNFORTUNATELY, when u cast addrp to a long pointer, the macro RROP_SOLID_MASK,
> will try to fetch
> it as a long pointer ( ie get 8 bytes of a long value ). Thats ok, except that u
> get an alignment fault when the address
> doesn't point to an aligned long address, as it was in my case when the last
> nibble of the addr was a 4.
>
> i SUSPECT u want to keep the 32'ness of the addrp, and really don't want to go a
> 64 bit long pointer.
>
> ergo use:
> RROP_SOLID_MASK(( unsigned int *) addrp, e )
>
> or better yet, if u have the typedef:
> RROP_SOLID_MASK(( unsigned long32 *) addrp, e )
> or
> RROP_SOLID_MASK(( unsigned int32 *) addrp, e )
this typedef already exists and is called `CARD32', so I'd suggest using
RROP_SOLID_MASK(( CARD32 *) addrp, e )
which looks reasonable to me...
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: X server bug on DIGITAL alpha
1998-04-21 12:08 ` X server bug on DIGITAL alpha Uncle George
1998-04-21 15:19 ` Harald Koenig
@ 1998-04-21 18:59 ` Michal Jaegermann
1 sibling, 0 replies; 7+ messages in thread
From: Michal Jaegermann @ 1998-04-21 18:59 UTC (permalink / raw)
To: axp-list
>
> in XFree86-3.3.1/xc/programs/Xserver/cfb32/cfb8segC.c there is a statement
>
> RROP_SOLID_MASK(( unsigned long *) addrp, e )
I wonder how much this, and possibly similar other places, had to do
with the fact that after an attempt to recompile 3.3.2 I ended up
with a server which worked only in 8-bit colour. Maybe nothing?
I never had an opportunity to investigate this problem in depth.
In any case, smells like a good candidate for causing these "unaligned
access" messages all over the place.
--mj
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1998-04-21 18:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-20 2:12 Debugging X server Uncle George
1998-04-20 3:35 ` Christopher Curtis
1998-04-20 5:06 ` adisaacs
1998-04-20 7:24 ` Harald Koenig
[not found] ` <199804200244.WAA15361@lacrosse.redhat.com>
1998-04-21 12:08 ` X server bug on DIGITAL alpha Uncle George
1998-04-21 15:19 ` Harald Koenig
1998-04-21 18:59 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox