http://bugs.freedesktop.org/show_bug.cgi?id=14094

           Summary: DRI version GIT - Intel 956GM DRI crash - Segmentation
                    fault in intel_fbo.c:369
           Product: DRI
           Version: DRI CVS
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: critical
          Priority: high
         Component: libdrm
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=13742)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=13742)
Xorg conf file

Hi. I have a laptop which has Intel 965GM on board video device. Recently I
have reported a bug to the mesa developers:

https://bugs.freedesktop.org/show_bug.cgi?id=13492

Eric Anholt fixed it and I would like to thank him about that.

After I saw that the bug has been marked as resolved I decided to install the
latest mesa and dri git versions on my system so I can test and eventually play
games that need 3d ac
celeration and OpenGL with wine. Before those were failing due to a bug in the
mesa library. Ok. I re-installed MESA and DRI from the _GIT_ as per
instructions available on the fo
llowing web address: 

http://dri.freedesktop.org/wiki/Building

After that the glxinfo binary and the applications which were previously dying
in the mesa part of the 3d handling are now crashing in the DRI part. Here we
go.

In the mesa/configs/linux-dri config file I have:

OPT_FLAGS  = -pipe -O2 -march=prescott -mtune=prescott -fomit-frame-pointer -g 
DRI_DIRS = i810 i915 i965

Some other things that might be usefull:

Portage 2.1.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.7-r1,
2.6.23-gentoo-r5-sunshine i686)

=================================================================
System uname: 2.6.23-gentoo-r5-sunshine i686 Intel(R) Core(TM)2 Duo CPU T7100 @
1.80GHz
Timestamp of tree: Wed, 16 Jan 2008 06:30:08 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r8, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=prescott -mtune=prescott -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=prescott -mtune=prescott -fomit-frame-pointer"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
USE="X a52 aac acl acpi alsa amr battery berkdb bitmap-fonts bluetooth bzip2
cdr cli cpudetection cpufreq cracklib crypt doc dri dv dvd dvdnav dvdr dvdread
ermt exif ffmpeg fortran gdbm gif glitz gpm gtk hal iconv imlib imlib2 isdnlog
jpeg jpeg2k lame lm_sensors mad midi mmx mmxext mp2 mp3 mpeg mudflap ncurses
nls nptl nptlonly ogg opengl openmp pam pcmcia
 pcre perl pmu png pppd python qt-static qt3 quicktime radio readline real
realmedia reflection sdl sensord session slang smp socks5 sound spl srt sse
sse2 ssl ssse3 svg symlink t
cpd tk truetype truetype-fonts truetype2 type1-fonts unicode usb vidix vorbis
wifi win32codecs wxwindows x86 xgetdefault xml xorg xvid zlib"
ALSA_CARDS="ali5451 als4000 atiixp ati
ixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968
fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx
via82xx-modem ymfpci" ALSA_PCM_P
LUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958
ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm
softvol" APACHE2_MODUL
ES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default
authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner
authz_user autoindex cache da
v dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif spel
ing status unique_id userdir usertrack vhost_alias" CAMERAS="canon"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk 
hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en bg" USERLAND="GNU"
VIDEO_CARDS="i810 vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

Manually compilled and installed mesa and dri from the git repo. I have
restarted the X server and DRI is reported to be working correctly:

charged [EMAIL PROTECTED]:/usr/local/src$  glxinfo | grep Yes
Failed to initialize TTM buffer manager.  Falling back to classic.
direct rendering: Yes

For your reference you can also check the Xorg.log and xorg.conf files
attached.

However when I try to run glxgears here is what I get:

charged [EMAIL PROTECTED]:/usr/local/src$ ./mesa/progs/xdemos/glxgears
Failed to initialize TTM buffer manager.  Falling back to classic.
Segmentation fault
charged [EMAIL PROTECTED]:/usr/local/src$

Here the crash report goes:

charged [EMAIL PROTECTED]:/usr/local/src/mesa/progs/xdemos$ gdb ./glxgears
2>&1 | tee /tmp/g,xinfo
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) handle SIG33 pass nostop noprint
Signal        Stop      Print   Pass to program Description
SIG33         No        No      Yes             Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /usr/local/src/mesa/progs/xdemos/glxgears 
[Thread debugging using libthread_db enabled]
[New Thread 0xb7acf6d0 (LWP 8083)]
Failed to initialize TTM buffer manager.  Falling back to classic.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7acf6d0 (LWP 8083)]
intel_renderbuffer_set_region (rb=0x8339310, region=0x0) at intel_fbo.c:369
369        rb->pfMap = region->map;
(gdb) backtrace full
#0  intel_renderbuffer_set_region (rb=0x8339310, region=0x0) at intel_fbo.c:369
        old = (struct intel_region *) 0x0
#1  0xb78b55e1 in intelMakeCurrent (driContextPriv=0x8054b70,
driDrawPriv=0x8055260, driReadPriv=0x8055260) at intel_context.c:686
        irbDepth = (struct intel_renderbuffer *) 0x83393b0
        irbStencil = (struct intel_renderbuffer *) 0x83393b0
        intel = (struct intel_context *) 0x805a700
        intel_fb = (struct intel_framebuffer *) 0x8338eb0
#2  0xb78aac70 in driBindContext (ctx=0x80554cc, pdraw=0x80782e0,
pread=0x80782e0) at ../common/dri_util.c:221
        __ret = <value optimized out>
        pdp = (__DRIdrawablePrivate *) 0x8055260
        prp = (__DRIdrawablePrivate *) 0x8055260
        pcp = (__DRIcontextPrivate * const) 0x8054b70
        psp = (__DRIscreenPrivate *) 0x8055048
#3  0xb7e6cc7e in MakeContextCurrent (dpy=0x804d008, draw=14680066,
read=14680066, gc=0x8055418) at glxext.c:1647
        reply = {type = 16 '\020', unused = 184 '', sequenceNumber = 47093,
length = 0, contextTag = 1, pad2 = 1, pad3 = 0, pad4 = 134514792, pad5 = 0,
pad6 = 134529040}
        oldGC = (const GLXContext) 0xb7ead1a0
        opcode = <value optimized out>
        oldOpcode = 160 ''
        bindReturnValue = <value optimized out>
#4  0xb7e6cf63 in glXMakeCurrent (dpy=0x804d008, draw=14680066, gc=0x8055418)
at glxext.c:1822
No locals.
#5  0x0804a1fb in main (argc=-1080179052, argv=0xb7f5afc4) at glxgears.c:601
        winWidth = 300
        winHeight = 0
        x = 0
        y = 0
        dpy = (Display *) 0x804d008
        win = 1
        ctx = (GLXContext) 0xe00002
        dpyName = 0x8055418 "[EMAIL PROTECTED]"
        printInfo = 0 '\0'
        i = <value optimized out>
(gdb) info registers
eax            0xbf9dc30c       -1080179956
ecx            0x0      0
edx            0x0      0
ebx            0xb7ab4ff4       -1213509644
esp            0xbf9dc2f0       0xbf9dc2f0
ebp            0x8055260        0x8055260
esi            0x8339310        137597712
edi            0x0      0
eip            0xb78b99c3       0xb78b99c3 <intel_renderbuffer_set_region+66>
eflags         0x210286 [ PF SF IF RF ID ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
(gdb) thread apply all backtrace

Thread 1 (Thread 0xb7acf6d0 (LWP 8083)):
#0  intel_renderbuffer_set_region (rb=0x8339310, region=0x0) at intel_fbo.c:369
#1  0xb78b55e1 in intelMakeCurrent (driContextPriv=0x8054b70,
driDrawPriv=0x8055260, driReadPriv=0x8055260) at intel_context.c:686
#2  0xb78aac70 in driBindContext (ctx=0x80554cc, pdraw=0x80782e0,
pread=0x80782e0) at ../common/dri_util.c:221
#3  0xb7e6cc7e in MakeContextCurrent (dpy=0x804d008, draw=14680066,
read=14680066, gc=0x8055418) at glxext.c:1647
#4  0xb7e6cf63 in glXMakeCurrent (dpy=0x804d008, draw=14680066, gc=0x8055418)
at glxext.c:1822
#5  0x0804a1fb in main (argc=-1080179052, argv=0xb7f5afc4) at glxgears.c:601
(gdb) quit
The program is running.  Exit anyway? (y or n) y
xb7e6cf63 in glXMakeCurrent (dpy=0x804d008, draw=14680066, gc=0x8055418) at
glxext.c:1822
#5  0x0804a1fb in main (argc=-1080179052, argv=0xb7f5afc4) at glxgears.c:601
(gdb) quit

Please do not hesitate to request more information if you need such. I am not
to good in the bug reports but I did my best :)


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to