Hi,

On Wednesday 10 of August 2005 10:28, you wrote:
> On 8/9/05, Vladimir Dergachev <[EMAIL PROTECTED]> wrote:
> > Hi Michal,
> >
> > > (II) RADEON(0): [drm] DRM interface version 1.2
> > > (II) RADEON(0): [drm] created "radeon" driver at busid
> > > "pci:0000:01:00.0" (II) RADEON(0): [drm] added 8192 byte SAREA at
> > > 0xffffc20000bfc000
> > >
> > > Program terminated with signal SIGKILL, Killed.
> > > The program no longer exists.
> > > (gdb) bt
> > > No stack.
> >
> > This is very interesting - the program is killed rather than receive
> > sig11 right after allocating SAREA.
> >
> > Which Linux kernel are you running ? Do you have anything like SELINUX or
> > or out-of-memory handler enabled ?
> >
> > Anyone else has seen something like this before ?
>
> A friend got something similar (IIRC in fact X wouldn't start even
> without drm) with
> kernel patched for security, maybe gentoo one got things like that
> (selinux or whatever
> else).
>
> Trying an "official" kernel should help to see if this related. In the
> list of applied patch
> to your kernel there is a patch for security but not much is say on what it
> does (i am not in shape to take a look at what this patch is really :))


Thanks for information, 
Unfortunately yesterday I built "vanilla" kernel 2.6.12.4 and 2.6.13-rc6 from 
kernel.org - I got same results as with gentoo patched kernel.


On Tuesday 09 of August 2005 19:10, Vladimir Dergachev wrote:
> On Tue, 9 Aug 2005, [iso-8859-2] Micha³ Pytasz wrote:
> > Hi,
> >
> > On Tuesday 09 of August 2005 18:04, Vladimir Dergachev wrote:
> >>> Version of my kernel is gentoo-2.6.12-r7, which is based on 2.6.12.3
> >>> (exact list of applied patches is here:
> >>> http://dev.gentoo.org/~dsd/genpatches/trunk/2.6.12/ )
> >>> I am attaching my kernel configuration.
> >>> I could build vanilla kernel if it would help debug problem.
> >>
> >> Well, I ran out of ideas. If it is not too much trouble try a vanilla
> >> kernel, on the off chance that something is different there.
> >
> > Just tested it with vanilla kernel 2.6.13-rc6 - results are the same.
>
> What about 2.6.12-4 - there were some amd64 specific changes, though I am
> not certain whether they would apply here.
>
> For comparison here is the relevant part from my Xserver log:
>
> (II) RADEON(0): [drm] added 8192 byte SAREA at 0xf99de000
> (II) RADEON(0): [drm] mapped SAREA 0xf99de000 to 0xaf87a000
> (II) RADEON(0): [drm] framebuffer handle = 0xd0000000
> (II) RADEON(0): [drm] added 1 reserved context for kernel
> (II) RADEON(0): [agp] Mode 0x1f000201 [AGP 0x8086/0x3340; Card
> 0x1002/0x4e50] (II) RADEON(0): [agp] 8192 kB allocated with handle
> 0x00000001
>
> As you can see SAREA address is high too (this is on Pentium M, 32 bits)
> and the very next messages says that it was mapped at some virtual address
> in Xserver space.
>
> The code that does this is located in
>
>    xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_dri.c
>
> If you feel like it poke around, insert some xf86DrvMsg(X_INFO, 0, "hello")
> to see what happens.
>
> In particular it would be useful for another pair of eyes to check for the
> following:
>
>      * any confusion between int, long and similar unsigned types
>      * above, especialy as applied to addresses and sizes
>      * does mmap work ok on your system ? Maybe some issues with flags
>        passed to it ?


Indeed an interesitng part is a very high address for SAREA, maybe it's some 
x86_64 specific issue? 

Look at length of displayed variable (x86_64 ponters are 8 bytes long):
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xf99de000
in the log posted by Vladimir in comparison to my:
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xffffc20000bfc000

On the other hand there are some warnings (about depricated functions, some of 
which are memory related):

/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c: In function 
`compat_radeon_cp_init':
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:74: warning: `is_pci' 
is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:495)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:87: warning: 
`fb_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:507)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)
/home/dduck/Download/DRI/drm/linux-core/radeon_ioc32.c:88: warning: 
`mmio_offset' is deprecated (declared 
at /home/dduck/Download/DRI/drm/linux-core/radeon_drm.h:508)

also there were some warnings during xc build (these are not all, selected 
mainly those for incompatible types, it's just filtered cat World.log |grep 
warning |grep radeon):

radeon_vtxfmt_c.c:808: warning: cast to pointer from integer of different size
radeon_vtxfmt_c.c:808: warning: assignment from incompatible pointer type
radeon_vtxfmt_c.c:810: warning: cast to pointer from integer of different size
radeon_vtxfmt_c.c:810: warning: assignment from incompatible pointer type
radeon_driver.c:1677: warning: long int format, different type arg (arg 6)
radeon_driver.c:1677: warning: long int format, different type arg (arg 7)
radeon_driver.c:8035: warning: 'crtcxytile' might be used uninitialized in 
this function
radeon_video.c:1256: warning: unused variable `RADEONMMIO'

radeon_video.c:2127: warning: operation on `sptr' may be undefined
radeon_video.c:2127: warning: operation on `sptr' may be undefined
radeon_bios.c:350: warning: long int format, different type arg (arg 5)
radeon_bios.c:350: warning: long int format, different type arg (arg 6)
radeon_bios.c:527: warning: long int format, different type arg (arg 4)
radeon_bios.c:527: warning: long unsigned int format, different type arg (arg 
5)
radeon_dri.c:1279: warning: assignment makes pointer from integer without a 
cast

Maybe some values just do not fit into variables such as int, since result of 
this very simple code:

#include <stdio.h>

int main (void) {
    fprintf(stdout,"sizeof\nshort %i int %i long %i long long %i int* 
%i\n",sizeof(short),sizeof(int),sizeof(long),sizeof(long long),sizeof(int*));
    return 0;
}


is:

sizeof
short 2 int 4 long 8 long long 8 int* 8


If Yoy wish I could post full log from building xorg (with all warnings), I 
just did not want to send large messages to the list.

Michal


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to