Bug 27904

Summary: r300g segfaults on M56GL
Product: Mesa Reporter: Pavel Rojtberg <pavel>
Component: Drivers/DRI/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Pavel Rojtberg 2010-04-29 15:25:46 UTC
current git, linux 2.6.32-21-generic (ubuntu lucid)

Starting program: /usr/bin/glxgears 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x004e68e9 in rc_pair_regalloc (c=0xbfffee8c, maxtemps=1)
    at radeon_pair_regalloc.c:347
Line number 347 out of range; radeon_pair_regalloc.c has 280 lines.
(gdb) bt
#0  0x004e68e9 in rc_pair_regalloc (c=0xbfffee8c, maxtemps=1)
    at radeon_pair_regalloc.c:347
#1  0x004e03dd in r3xx_compile_fragment_program (c=0xbfffee8c)
    at r3xx_fragprog.c:159
#2  0x004db6f3 in r300_translate_fragment_shader (r300=<value optimized out>, 
    shader=0x80d0ad8, tokens=0x80ef010) at r300_fs.c:276
#3  0x004dbea7 in r300_pick_fragment_shader (r300=0x8066f08) at r300_fs.c:346
#4  0x004d217f in r300_bind_fs_state (pipe=0x8066f08, shader=0x4e6780)
    at r300_state.c:718
#5  0x00628946 in cso_set_fragment_shader_handle (ctx=0x80e84d8, 
    handle=0x4e6780) at cso_cache/cso_context.c:742
#6  0x005f29e0 in update_fp (st=0x80c3e88)
    at state_tracker/st_atom_shader.c:174
#7  0x005ef9b3 in st_validate_state (st=0x80c3e88)
    at state_tracker/st_atom.c:167
#8  0x005f6859 in st_Clear (ctx=0x8087258, mask=18)
    at state_tracker/st_cb_clear.c:460
#9  0x005a3936 in _mesa_Clear (mask=0) at main/clear.c:178
#10 0x080493d7 in ?? ()
#11 0x0804a762 in ?? ()
#12 0x00305bd6 in __libc_start_main (main=0x804a230, argc=1, 
    ubp_av=0xbffff484, init=0x804ad80, fini=0x804ad70, 
    rtld_fini=0x11e0c0 <_dl_fini>, stack_end=0xbffff47c) at libc-start.c:226
Comment 1 Marek Olšák 2010-05-01 16:02:04 UTC
Could you please "make realclean" and rebuild the driver? The line numbers from the backtrace don't make sense, also the "maxtemps" parameter cannot possibly be 1, it should be either 32 or 128.
Comment 2 Pavel Rojtberg 2010-05-01 16:59:57 UTC
thanks, that helped - maybe I should start using scons for building..
Comment 3 Marek Olšák 2010-05-01 17:23:09 UTC
Or you may install makedepend to avoid such issues (xutils-dev in deb-based distros).
Comment 4 Pavel Rojtberg 2010-05-02 02:51:18 UTC
I have makedepend installed. Is it called by the makefile automatically or have I to call it myself?
Comment 5 Marek Olšák 2010-05-02 03:32:25 UTC
It's called automatically. I think we shouldn't chat like that in a bug report. If you have any questions, send me an email.

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.