Bug 19542 - assertion failure when starting xserver 1.6beta3, intel 2.5.1 with libdrm 2.4.3
Summary: assertion failure when starting xserver 1.6beta3, intel 2.5.1 with libdrm 2.4.3
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-13 11:20 UTC by Timo Aaltonen
Modified: 2009-01-14 18:32 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Timo Aaltonen 2009-01-13 11:20:14 UTC
libdrm 2.4.1 worked fine, but when I tried 2.4.3 the xserver fails to start:

Xorg: ../../src/i830_batchbuffer.h:56: intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)' failed.

(gdb) bt full
#0  0xb7fcf430 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7bb26a0 in raise () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2  0xb7bb4068 in abort () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#3  0xb7bab5be in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#4  0xb7a04efe in IntelEmitInvarientState (pScrn=0x9907f18)
    at ../../src/i830_batchbuffer.h:56
	pI830 = (I830Ptr) 0x98f0480
	__PRETTY_FUNCTION__ = "IntelEmitInvarientState"
	__FUNCTION__ = "IntelEmitInvarientState"
#5  0xb7a05368 in I830EnterVT (scrnIndex=0, flags=0)
    at ../../src/i830_driver.c:3762
	pScrn = (ScrnInfoPtr) 0x9907f18
	pI830 = (I830Ptr) 0x98f0480
#6  0xb7a069f8 in I830ScreenInit (scrnIndex=0, pScreen=0x98f4fa0, argc=1, 
    argv=0xbfdeb9f4) at ../../src/i830_driver.c:3410
	pScrn = (ScrnInfoPtr) 0x9907f18
	hwp = (vgaHWPtr) 0x98f1cd8
	pI830 = (I830Ptr) 0x98f0480
	visual = <value optimized out>
	pI8301 = (I830Ptr) 0x0
#7  0x080711dd in AddScreen ()
No symbol table info available.
#8  0x080adea6 in InitOutput ()
No symbol table info available.
#9  0x080718d1 in main ()
No symbol table info available.
Comment 1 Wang Zhenyu 2009-01-13 17:36:12 UTC
Could you test with xf86-video-intel 2.5.99.2?
Comment 2 Timo Aaltonen 2009-01-13 22:07:39 UTC
I would, but it doesn't build using the drm headers from 2.6.28:

../doltcompile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -I/usr/include/xorg -I/usr/include/pixman-1    -I/usr/include/drm   -Wall -Wpointer-arith -Wstrict-prototypes 	-Wmissing-prototypes -Wmissing-declarations 	-Wnested-externs -fno-strict-aliasing -I/usr/include/xorg -I/usr/include/pixman-1   -I/usr/include/drm   -I/usr/include/X11/dri -I../../uxa -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -Wall -g -O2 -MT i830_dri.lo -MD -MP -MF .deps/i830_dri.Tpo -c -o i830_dri.lo ../../src/i830_dri.c
../../src/i830_dri.c: In function 'I830DRISwapContext':
../../src/i830_dri.c:1168: error: 'drm_i915_flip_t' undeclared (first use in this function)
../../src/i830_dri.c:1168: error: (Each undeclared identifier is reported only once
../../src/i830_dri.c:1168: error: for each function it appears in.)
../../src/i830_dri.c:1168: error: expected ';' before 'flip'
../../src/i830_dri.c:1174: error: 'flip' undeclared (first use in this function)
make[5]: *** [i830_dri.lo] Error 1

what commits am I missing from the kernel?
Comment 3 Timo Aaltonen 2009-01-14 04:56:32 UTC
I had to copy drm.h, drm_mode.h and i915_drv.h from libdrm 2.4.3 to make it compile, and it doesn't crash with 2.5.99.2.

The build failure needs to be sorted though, some compat stuff is clearly missing, also from 2.6.29 it seems.
Comment 4 Wang Zhenyu 2009-01-14 18:32:43 UTC
yeah, that should be fixed. Please open another one, hope Jesse could sort out.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.