segfault on phoronix.com

Bug #583600 reported by whwi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lightspark
Fix Released
High
Unassigned

Bug Description

amd64
ii firefox-3.5 3.6.3+nobinonly-0ubuntu4
ii mozilla-plugin-lightspark 0.3.6-ubuntu1

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffce7fb710 (LWP 4723)]
0x00007ffff1eb0a75 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0x00007ffff1eb0a75 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007ffff1eb45c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007fffd68c7165 in lightspark::RenderThread::commonGLInit(int, int, unsigned int*) () from /usr/lib/mozilla/plugins/liblightsparkplugin.so
No symbol table info available.
#3 0x00007fffd68c8dc9 in lightspark::RenderThread::npapi_worker(lightspark::RenderThread*) () from /usr/lib/mozilla/plugins/liblightsparkplugin.so
No symbol table info available.
#4 0x00007ffff7bb89ca in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5 0x00007ffff1f6369d in clone () from /lib/libc.so.6
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.

i need an debug built ?

whwi (whitewindow)
description: updated
Revision history for this message
whwi (whitewindow) wrote :

with the swf (advertising)

INFO: RenderThread this=0x7fffdb696040
[New Thread 0x7fffcfdfc710 (LWP 5012)]
INFO: Creating input thread
INFO: Newstream for http://s0.2mdn.net/1785842/Avis_SpringPromotion2010_PackMoreIn_AT_160x600.swf
INFO: Compressed SWF file: Version 8 Length 99440
INFO: FrameRate 30.0
INFO: End of parsing @ 99440

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffcfdfc710 (LWP 5012)]
0x00007ffff1eb0a75 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0x00007ffff1eb0a75 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007ffff1eb45c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007fffd76c7165 in lightspark::RenderThread::commonGLInit(int, int, unsigned int*) () from /usr/lib/mozilla/plugins/liblightsparkplugin.so
No symbol table info available.
#3 0x00007fffd76c8dc9 in lightspark::RenderThread::npapi_worker(lightspark::RenderThread*) () from /usr/lib/mozilla/plugins/liblightsparkplugin.so
No symbol table info available.
#4 0x00007ffff7bb89ca in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5 0x00007ffff1f6369d in clone () from /lib/libc.so.6
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.

Revision history for this message
whwi (whitewindow) wrote :

ohh with the command line client i get

ERROR: Video card does not support OpenGL 2.0... Aborting

Mobile 945GM/PM/GMS

glxinfo | grep OpenGL
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 945GM GEM 20091221 2009Q4
OpenGL version string: 1.4 Mesa 7.7.1

Revision history for this message
whwi (whitewindow) wrote :

   if(!GLEW_VERSION_2_0)
        {
                LOG(LOG_ERROR,"Video card does not support OpenGL 2.0... Aborting");
                ::abort();
        }

only > openGl 2.0 is supported ?

i think the problem are the shaders for lower opengl

Revision history for this message
whwi (whitewindow) wrote :

enabled software sharder in driconf

 glxinfo | grep OpenGL
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 945GM GEM 20091221 2009Q4
OpenGL version string: 2.0 Mesa 7.7.1
OpenGL shading language version string: 1.20
OpenGL extensions:

INFO: RenderThread this=0x7f65eb185c40
INFO: Creating input thread
INFO: Newstream for http://s0.2mdn.net/1785842/Avis_SpringPromotion2010_PackMoreIn_AT_160x600.swf
INFO: Compressed SWF file: Version 8 Length 99440
INFO: FrameRate 30.0
INFO: End of parsing @ 99440
INFO: Fragment shader compilation
INFO: Vertex shader compilation
Segmentation fault

Vertex shader problem ?

OpenGL shading language version string: 1.20 is this enough ?

Revision history for this message
whwi (whitewindow) wrote :

driconf

cat .drirc
<driconf>
    <device screen="0" driver="i915">
        <application name="Default">
            <option name="force_s3tc_enable" value="true" />
            <option name="no_rast" value="false" />
            <option name="fthrottle_mode" value="2" />
            <option name="always_flush_cache" value="false" />
            <option name="stub_occlusion_query" value="true" />
            <option name="vblank_mode" value="1" />
            <option name="always_flush_batch" value="false" />
            <option name="bo_reuse" value="1" />
            <option name="texture_tiling" value="true" />
            <option name="early_z" value="false" />
            <option name="allow_large_textures" value="2" />
            <option name="fragment_shader" value="true" />
        </application>
    </device>

Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

Hi,

GLSL 1.2 should be definitely enough. Could you please using gdb get a backtrace of the fault?

Changed in lightspark:
importance: Undecided → High
milestone: none → lightspark-0.4.0
Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

May you try with the current release? (0.3.8)

Revision history for this message
whwi (whitewindow) wrote :
Download full text (3.1 KiB)

git head 0dec69d9e4cee321140d46dadee3b46cb7dc96df

INFO: End of parsing @ 99440
terminate called after throwing an instance of 'lightspark::RunTimeException'
  what(): Lightspark error

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe9d78710 (LWP 28914)]
0x00007ffff5128a75 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0x00007ffff5128a75 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007ffff512c5c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007ffff59dd8e5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
No symbol table info available.
#3 0x00007ffff59dbd16 in ?? () from /usr/lib/libstdc++.so.6
No symbol table info available.
#4 0x00007ffff59dbd43 in std::terminate() () from /usr/lib/libstdc++.so.6
No symbol table info available.
#5 0x00007ffff59dbe3e in __cxa_throw () from /usr/lib/libstdc++.so.6
No symbol table info available.
#6 0x00000000005eca3a in lightspark::RenderThread::loadShaderPrograms (this=0x7fffffffddb0) at /home/arpu/sources/lightspark/swf.cpp:1263
        __PRETTY_FUNCTION__ = "bool lightspark::RenderThread::loadShaderPrograms()"
        ret = false
        str = "\020u\327\351\377\177\000\000\020@\033\001\000\000\000\000Й\376\000\000\000\000\000@.G\365\377\177\000\000\020@\033\001\000\000\000\000\020\000\000\000\000\000\000\000 ", '\000' <repeats 15 times>, "D\232\376\000\000\000\000\000\216\025\027\365\377\177\000\000\000\001\000\000\000\000\000\000@.G\365\377\177\000\000\340\242\000\000\000\000\000\000\312j\336\367\377\177\000\000\020@\033\001\000\000\000\000\200u\327\351\377\177\000\000\020@\033\001\000\000\000\000\350\255\001\001\000\000\000\000\370v\327\351\377\177\000\000J\000\000\000\000\000\000\000ʖ\223\034\000\000\000\000wt\336\367\377\177\000\000\060u\327\351\377\177\000\000[Nr\000\000\000\000\000\n\000\000\000\000\000\000\000\004k\336\367\377\177\000\000\000\000\000\000\000\000\000\000\340u\327\351\377\177\000\000(\214\017\365\377\177\000\000\210\255\001\001\000\000\000\000Xw\327\351\377\177\000\000J\000\000\000\000\000\000\000ƃ\356\317\000\000\000\000"...
        a = 0
        f = 1
        fs = 0x0
        v = 0
#7 0x00000000005edd6b in lightspark::RenderThread::commonGLInit (this=0x7fffffffddb0, width=160, height=600, t2=0x7fffe9d77cf0)
    at /home/arpu/sources/lightspark/swf.cpp:1528
        err = 0
        tex = 8388608
        dt = 32767
        status = 3923213808
#8 0x00000000005ee4e5 in lightspark::RenderThread::sdl_worker (th=0x7fffffffddb0) at /home/arpu/sources/lightspark/swf.cpp:1632
        t2 = {0, 0, 0}
        profile = 0x0
        size = {Xmin = 0, Xmax = 3200, Ymin = 0, Ymax = 12000}
        width = 160
        height = 600

---Type <return> to continue, or q <return> to quit---
        font = {<FTFont> = {_vptr.FTFont = 0x0, impl = 0x0}, <No data fields>}
#9 0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#10 0x00007ffff51db69d in clone () from /lib/libc.so.6
No symbol table info available.
#11 0x0000000000000000 in ?? ()
No symbol table info available.

/home/arpu/tmp/Avis_SpringPromotion2010_PackMoreIn_AT_160x600.swf
 found on phor...

Read more...

Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

You are missing shader sources, when compiling from source please run make install to install needed files. The README has been updated to reflect this

Revision history for this message
whwi (whitewindow) wrote :

ok thx again

it works with libgl1-mesa-dri-gallium 7.9.0~git20100520.f4905256-0ubuntu0sarvatt2~lucid

OpenGL renderer string: Gallium 0.4 on i915 (chipset: 945GM)
OpenGL version string: 1.3 Mesa 7.9-devel

but with

OpenGL renderer string: Mesa DRI Intel(R) 945GM GEM 20100330 DEVELOPMENT
OpenGL version string: 1.4 Mesa 7.9-devel

INFO: End of parsing @ 99440
INFO: Fragment shader compilation
INFO: Vertex shader compilation
i915_program_error: Bad inst->DstReg.Index: 2
INFO: Mutex ThreadProfile waited 0 times
INFO: Faking 11 renderings

mesa bug/problem ?

Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

I suspect it's a mesa bug, but i've seen your using a development version, so maybe it will be fixed. I'm also having some issue with my own 965GM

Revision history for this message
whwi (whitewindow) wrote :

hello

latest lightspark give me little more debug output

INFO: End of parsing @ 99440
INFO: Fragment shader compilation
INFO: Vertex shader compilation
i915_program_error: Bad inst->DstReg.Index: 2
INFO: Mutex ThreadProfile waited 0 times
INFO: Faking 50 renderings
lightspark: intel_regions.c:274: intel_region_release: Assertion `region->map_refcount == 0' failed.
Aborted

Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

I think this is a bug caused by mesa, not by lightspark. Sorry.

Changed in lightspark:
status: New → Invalid
Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

Try 0.4.0-rc2, this issue should be fixed

Changed in lightspark:
status: Invalid → Confirmed
status: Confirmed → Fix Released
Revision history for this message
whwi (whitewindow) wrote :

hello again

same problem with lightspark 0.4.1-0ubuntu1

but works with latest git :> (1006f1c20ec44788aa3b380db9707467200ef165)

thx a lot for your great work

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.