[Intel-gfx] X crashes when terminating application

Maurice van der Pot griffon26 at kfk4ever.com
Wed Aug 12 16:50:39 CEST 2009


On Mon, Aug 10, 2009 at 11:23:32AM +0200, Maurice van der Pot wrote:
>   error setting MTRR (base = 0xd0000000, size = 0x10000000, type = 1) Invalid argument (22)
>   (EE) intel(0): Failed to initialize kernel memory manager

I got rid of the above two errors by just enabling MTRR cleanup support
in the kernel (CONFIG_MTRR_SANITIZER).

>   Backtrace:
>   0: Xorg(xorg_backtrace+0x3c) [0x8128b5c]
>   1: Xorg(xf86SigHandler+0x52) [0x80bf322]
>   2: [0xb809c400]
>   3: /usr/lib/xorg/modules/drivers//intel_drv.so(i830_allocate_memory+0x2f6) [0xb7b4bca6]
>   4: /usr/lib/xorg/modules/drivers//intel_drv.so(i830_allocate_framebuffer+0x321) [0xb7b4c3c1]
>   5: /usr/lib/xorg/modules/drivers//intel_drv.so(i830_allocate_2d_memory+0xf6) [0xb7b4c706]
>   6: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb7b40da5]
>   7: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb7b45d30]
>   8: Xorg(AddScreen+0x192) [0x806e3c2]
>   9: Xorg(InitOutput+0x1fe) [0x80a824e]
>   10: Xorg(main+0x1db) [0x806eabb]
>   11: /lib/libc.so.6(__libc_start_main+0xdc) [0xb7d01a4c]
>   12: Xorg [0x806e161]
> 
>   Fatal server error:
>   Caught signal 11.  Server aborting

Using gdb I found out that the actual segfault is happening in
drm_intel_bo_alloc(), because bufmgr is NULL. I found one reference to
this on the net: http://patchwork.kernel.org/patch/38489/

However, just avoiding the NULL dereference and failing allocation
causes errors:

  Dropping master
  (EE) intel(0): Failed to allocate HW cursor space.
  (EE) intel(0): Failed to allocate HW cursor space.
  (EE) intel(0): Couldn't allocate video memory

  Fatal server error:
  AddScreen/ScreenInit failed for driver 0

So I guess either bufmgr shouldn't be NULL at this point in time or the
intel driver should not be going through reinitialisation.

Maurice.

-- 
Maurice van der Pot

Gentoo Linux Developer   griffon26 at gentoo.org    http://www.gentoo.org
Gnome Planner Developer  griffon26 at kfk4ever.com  http://live.gnome.org/Planner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090812/1fff73eb/attachment.sig>


More information about the Intel-gfx mailing list