[Mesa-dev] [Bug 87658] [llvmpipe] SEGV in sse2_has_daz on ancient Pentium4-M

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 23 15:59:21 PST 2014


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

            Bug ID: 87658
           Summary: [llvmpipe] SEGV in sse2_has_daz on ancient Pentium4-M
           Product: Mesa
           Version: 10.3
          Hardware: x86 (IA32)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: chris at edesix.com

Hi,

I'm trying to run some modern OpenGL 3.3 code on an ancient machine. When I set
LIBGL_ALWAYS_SOFTWARE the llvmpipe driver seems to be chosen, but it raises a
segv in sse2_has_daz()...

I'm running Fedora mesa-*-10.3.3-1.20141110.fc20.i686


Program received signal SIGSEGV, Segmentation fault.
sse2_has_daz () at util/u_cpu_detect.c:285
285       __asm __volatile ("fxsave %0" : "+m" (fxarea));
(gdb) bt
#0  sse2_has_daz () at util/u_cpu_detect.c:285
#1  0xb72d4805 in util_cpu_detect () at util/u_cpu_detect.c:378
#2  0xb75c9407 in llvmpipe_create_screen (winsys=winsys at entry=0x8141a98) at
lp_screen.c:555
#3  0xb7006b38 in sw_screen_create_named (driver=<optimized out>,
winsys=0x8141a98) at
../../../../src/gallium/auxiliary/target-helpers/inline_sw_helper.h:30
#4  sw_screen_create (winsys=0x8141a98) at
../../../../src/gallium/auxiliary/target-helpers/inline_sw_helper.h:57
#5  drisw_create_screen (lf=lf at entry=0xb779d744 <drisw_lf>) at
../../../../src/gallium/auxiliary/target-helpers/inline_sw_helper.h:84
#6  0xb727507e in drisw_init_screen (sPriv=0x812eac8) at drisw.c:363
#7  0xb726ffc6 in driCreateNewScreen2 (scrn=scrn at entry=0, fd=fd at entry=-1,
extensions=extensions at entry=0xb7b7d378 <loader_extensions>, 
    driver_extensions=driver_extensions at entry=0xb779d724
<galliumsw_driver_extensions>, driver_configs=driver_configs at entry=0xbfffed30,
data=data at entry=0x81311a0) at dri_util.c:159
#8  0xb7270108 in driSWRastCreateNewScreen2 (scrn=0, extensions=0xb7b7d378
<loader_extensions>, driver_extensions=0xb779d724
<galliumsw_driver_extensions>, driver_configs=0xbfffed30, 
    data=0x81311a0) at dri_util.c:214
#9  0xb7b0bc78 in driswCreateScreen (screen=0, priv=0x812ebb0) at
drisw_glx.c:686
#10 0xb7ae53f9 in AllocAndFetchScreenConfigs (priv=0x812ebb0, dpy=0x8120a38) at
glxext.c:796
#11 __glXInitialize (dpy=dpy at entry=0x8120a38) at glxext.c:902
#12 0xb7ae166e in GetGLXPrivScreenConfig (dpy=dpy at entry=0x8120a38,
scrn=scrn at entry=0, ppriv=ppriv at entry=0xbfffedd8, ppsc=ppsc at entry=0xbfffeddc) at
glxcmds.c:172
#13 0xb7ae1fe7 in GetGLXPrivScreenConfig (ppsc=0xbfffeddc, ppriv=0xbfffedd8,
scrn=0, dpy=0x8120a38) at glxcmds.c:168
#14 glXChooseVisual (dpy=0x8120a38, screen=0, attribList=0xbfffef34) at
glxcmds.c:1249
#15 0xb7c47491 in X11_GL_GetVisual (_this=_this at entry=0x8120310,
display=display at entry=0x8120a38, screen=screen at entry=0) at
/usr/src/debug/SDL2-2.0.3/src/video/x11/SDL_x11opengl.c:525
#16 0xb7c4770e in X11_GL_InitExtensions (_this=0x8120310) at
/usr/src/debug/SDL2-2.0.3/src/video/x11/SDL_x11opengl.c:323
#17 X11_GL_LoadLibrary (_this=0x8120310, path=<optimized out>) at
/usr/src/debug/SDL2-2.0.3/src/video/x11/SDL_x11opengl.c:218
#18 0xb7c3a16f in SDL_GL_LoadLibrary_REAL (path=path at entry=0x0) at
/usr/src/debug/SDL2-2.0.3/src/video/SDL_video.c:2401
#19 0xb7c3bfd8 in SDL_CreateWindow_REAL (title=title at entry=0xb7c612b2 "OpenGL
test", x=x at entry=-32, y=y at entry=-32, w=w at entry=32, h=h at entry=32,
flags=flags at entry=10)
    at /usr/src/debug/SDL2-2.0.3/src/video/SDL_video.c:1240
#20 0xb7c3bcb1 in ShouldUseTextureFramebuffer () at
/usr/src/debug/SDL2-2.0.3/src/video/SDL_video.c:192
#21 SDL_VideoInit_REAL (driver_name=driver_name at entry=0x0) at
/usr/src/debug/SDL2-2.0.3/src/video/SDL_video.c:506
#22 0xb7b8aad4 in SDL_InitSubSystem_REAL (flags=16416) at
/usr/src/debug/SDL2-2.0.3/src/SDL.c:173
#23 0xb7bbe09d in SDL_Init (a=32) at
/usr/src/debug/SDL2-2.0.3/src/dynapi/SDL_dynapi_procs.h:89


$ cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 15
model        : 2
model name    : Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
stepping    : 7
microcode    : 0x39
cpu MHz        : 1200.000
cache size    : 512 KB
fdiv_bug    : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 2
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid
bogomips    : 2392.96
clflush size    : 64
cache_alignment    : 128
address sizes    : 36 bits physical, 32 bits virtual
power management:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141223/023380ee/attachment.html>


More information about the mesa-dev mailing list