Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=6484          
     
           Summary: 64 Bit mesa-6.4.2 crashes on Solaris 9 compiled with gcc
                    4.0.2
           Product: Mesa
           Version: 6.4
          Platform: Sun
        OS/Version: SunOS
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Mesa core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


For compiling Mesa 64 Bit on Solaris 9 with the gcc 4.0.2 (with Solaris patches)
I changed configs/sunos5-gcc
diff configs/sunos5-gcc configs/sunos5-gcc.orig
12c12
< OPT_FLAGS  = -O3 -m64 -mcpu=ultrasparc -mv8plus -mvis -g -fomit-frame-pointer
-pipe
---
> OPT_FLAGS  = -O3 -g -fomit-frame-pointer -pipe
15,16c15
< #ARCH_FLAGS ?=
< ARCH_FLAGS = -m64
---
> ARCH_FLAGS ?=

And bin/mklib
##############
            #OPTS="-G" R.Egger (It should work)
            OPTS="-m64 -shared -Wl,-Bdynamic"

It compiled and linked fine. For 32 Bit I build everything without
-m64 and that compiled and linked fine, too.

The 32 Bit version runs all tests successful so far. The 64 Bit demos
starts, too and run some seconds. Then they crash e.g. teapot, gears,
glxgears ...
gdb glxgears core 
shows the following
Loaded symbols for /usr/platform/SUNW,Sun-Blade-1500/lib/sparcv9/libc_psr.so.1
#0  0xffffffff7e98f348 in choose_emit_func (ctx=0x1001205c0, count=162,
    dest=0x10067d440 "B\331\233\204B\251y\fGs\275\342?\200") at 
tnl/t_vertex.c:120
120           a[j].emit = a[j].insert[vptr->size - 1]; /* not always used */
(gdb) bt
#0  0xffffffff7e98f348 in choose_emit_func (ctx=0x1001205c0, count=162,
    dest=0x10067d440 "B\331\233\204B\251y\fGs\275\342?\200") at 
tnl/t_vertex.c:120
#1  0xffffffff7e9902cc in _tnl_build_vertices (ctx=0x1001205c0, start=0,
    end=162, newinputs=2123952832) at tnl/t_vertex.c:409
#2  0xffffffff7e975910 in run_render (ctx=0x1001205c0, stage=0x100398b48)
    at tnl/t_vb_render.c:295
#3  0xffffffff7e962f30 in _tnl_run_pipeline (ctx=0x1001205c0)
    at tnl/t_pipeline.c:158
#4  0xffffffff7e97013c in _tnl_playback_vertex_list (ctx=0x1001205c0,
    data=<value optimized out>) at tnl/t_save_playback.c:209
#5  0xffffffff7e891964 in execute_list (ctx=0x1001205c0,
    list=<value optimized out>) at main/dlist.c:5681
#6  0xffffffff7e8944fc in _mesa_CallList (list=164) at main/dlist.c:6749
#7  0x0000000100002dd8 in do_draw () at glxgears.c:254
#8  0x00000001000039cc in main (argc=<value optimized out>,
    argv=<value optimized out>) at glxgears.c:304

And the teapot seems to have the same problem:
Loaded symbols for /usr/platform/SUNW,Sun-Blade-1500/lib/sparcv9/libc_psr.so.1
#0  0xffffffff7e98f348 in choose_emit_func (ctx=0x100121fa0, count=112,
    dest=0x10067f060 "C\235/\216CRt\025GxK*?\200") at tnl/t_vertex.c:120
120           a[j].emit = a[j].insert[vptr->size - 1]; /* not always used */
(gdb) bt
#0  0xffffffff7e98f348 in choose_emit_func (ctx=0x100121fa0, count=112,
    dest=0x10067f060 "C\235/\216CRt\025GxK*?\200") at tnl/t_vertex.c:120
#1  0xffffffff7e9902cc in _tnl_build_vertices (ctx=0x100121fa0, start=0,
    end=112, newinputs=2123952832) at tnl/t_vertex.c:409
#2  0xffffffff7e975910 in run_render (ctx=0x100121fa0, stage=0x10039a748)
    at tnl/t_vb_render.c:295
#3  0xffffffff7e962f30 in _tnl_run_pipeline (ctx=0x100121fa0)
    at tnl/t_pipeline.c:158
#4  0xffffffff7e9a2cec in _tnl_flush_vtx (ctx=0x100121fa0)
    at tnl/t_vtx_exec.c:277
#5  0xffffffff7e996c00 in _tnl_FlushVertices (ctx=0x100121fa0, flags=1)
    at tnl/t_vtx_api.c:863
#6  0xffffffff7e8a78c8 in map2 (target=3511, u1=0, u2=1, ustride=12, uorder=4,
    v1=0, v2=1, vstride=3, vorder=4, points=0x100924cf0, type=5126)
    at main/eval.c:504
#7  0xffffffff7e8a7a58 in _mesa_Map2f (target=3511, u1=0.553605318,
    u2=0.287203312, ustride=12, uorder=4, v1=0, v2=0.501697302, vstride=3,
    vorder=4, points=0x7fffffff8) at main/eval.c:525
#8  0xffffffff7e892810 in execute_list (ctx=0x100121fa0,
    list=<value optimized out>) at main/dlist.c:6020
#9  0xffffffff7e8944fc in _mesa_CallList (list=64) at main/dlist.c:6749
#10 0x0000000100003dc8 in draw () at teapot.c:340
#11 0xffffffff7f024974 in glutMainLoop () at glut_event.c:962
#12 0x000000010000390c in main (ac=1, av=<value optimized out>) at teapot.c:672

The line seems to be interesting:
120           a[j].emit = a[j].insert[vptr->size - 1]; /* not always used */

(gdb) print j
$1 = 1
(gdb) print vptr
$2 = (GLvector4f *) 0x10039d6e0
(gdb) p vptr->size
$3 = 0
(gdb) p vptr->size - 1
$4 = 18446744073709551615

This seems to be the bug!

Can you please fix it and make please fix 
OPTS="-shared -Wl,-Bdynamic" for solaris 32 Bit and
OPTS="-m64 -shared -Wl,-Bdynamic" for solaris 64 Bit.
It would be nice if there'll be a config file for sunos5-gcc-64 ...

By the way, the version 6.1 works fine even if i take the new executables
of version 6.4.2. I've just to change the LD_LIBRARY_PATH.
It would be nice if you could fix the problem.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to