Re: [vdr] Segfault with xine-0.7.9

2006-11-12 Thread Gregoire Favre
On Sun, Nov 12, 2006 at 01:50:51PM +0100, Reinhard Nissl wrote:
> Hi,
> 
> Gregoire Favre wrote:
> 
> >Any idea what I shall change ?
> 
> Find the following two lines in xineLib.c
> 
>   #define ASSERT_PALETTE(x)
>   //#define ASSERT_PALETTE(x) x
> 
> and change them to
> 
>   //#define ASSERT_PALETTE(x)
>   #define ASSERT_PALETTE(x) x
> 
> Maybe a debug message appears before the segfault.

No, it's directly the 
"Segmentation fault (core dumped)" with your change it comes later on.
And I think it's the same with your modification :

Program terminated with signal 11, Segmentation fault.
#0  0x2b9b73805a8a in PluginXine::cXinePalette::cEntry::getIndex 
(this=0x300f30)
at xineLib.c:331
331 return m_index;
(gdb) bt
#0  0x2b9b73805a8a in PluginXine::cXinePalette::cEntry::getIndex 
(this=0x300f30)
at xineLib.c:331
#1  0x2b9b7380427b in ScaleBitmapHQ (src=0x2bb3900 "°Ä\004", x0=25, y0=50, 
w=672, 
h=465, stride=672, ws=503, hs=426, x1=26, y1=40, w1=439, h1=341, 
transparentIndex=1, 
colors=0x24009b8, numColors=8, [EMAIL PROTECTED], [EMAIL PROTECTED], 
currentPaletteSize=16, currentPalette=0x23c35b0, xineLib=0x23bed78) at 
xineLib.c:1245
#2  0x2b9b73804aa8 in PluginXine::cXineLib::execFuncOsdDrawBitmap 
(this=0x23bed78, 
needsScaling=PluginXine::cXineLib::yes, videoWidth=503, videoHeight=426, 
xineOsd=0x24011d0, window=0, bitmap=0x24009b0, x=13, y=5, width=627, 
height=460, 
stride=672) at xineLib.c:1570
#3  0x2b9b73805666 in PluginXine::cXineLib::sendWindow (this=0x23bed78, 
xineOsd=0x24011d0, windowNum=0, bitmap=0x24009b0, videoLeft=20, 
videoTop=75, 
videoWidth=503, videoHeight=426, videoZoomX=108, videoZoomY=135, 
dontOptimize=false)
at xineLib.c:1849
#4  0x2b9b73805818 in PluginXine::cXineLib::SendWindow (this=0x23bed78, 
xineOsd=0x24011d0, windowNum=0, bitmap=0x24009b0, videoLeft=0, videoTop=0, 
videoWidth=544, videoHeight=576, videoZoomX=108, videoZoomY=135, 
dontOptimize=false)
at xineLib.c:1690
#5  0x2b9b73807191 in PluginXine::cXineOsd::Flush (this=0x24011d0) at 
xineOsd.c:356
#6  0x004da3ea in cSkinSTTNGDisplayMenu::Flush (this=0x2401100) at 
skinsttng.c:646
#7  0x004d130f in cSkins::Flush (this=0x74e580) at skins.c:356
#8  0x004837c6 in cInterface::GetKey (this=0x19c88d0, Wait=true) at 
interface.c:35
#9  0x004f747a in main (argc=17, argv=0x7fff392e0788) at vdr.c:866
Current language:  auto; currently c++

> Another idea is to use valgrind on vdr to see whether there are any 
> memory corruptions in vdr-xine.

I'll try to undestand how then...

Thank,
-- 
Grégoire FAVRE  http://gregoire.favre.googlepages.com  http://www.gnupg.org

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Segfault with xine-0.7.9

2006-11-12 Thread Reinhard Nissl

Hi,

Gregoire Favre wrote:


Any idea what I shall change ?


Find the following two lines in xineLib.c

#define ASSERT_PALETTE(x)
//#define ASSERT_PALETTE(x) x

and change them to

//#define ASSERT_PALETTE(x)
#define ASSERT_PALETTE(x) x

Maybe a debug message appears before the segfault.

Another idea is to use valgrind on vdr to see whether there are any 
memory corruptions in vdr-xine.


Bye.
--
Dipl.-Inform. (FH) Reinhard Nissl
mailto:[EMAIL PROTECTED]

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] Segfault with xine-0.7.9

2006-11-11 Thread Gregoire Favre
Hello,

when I use xine I got some segfaults :
Program terminated with signal 11, Segmentation fault.
#0  0x2ac4c1f949be in PluginXine::cXinePalette::cEntry::getIndex (
this=0xafea30bfd4d472bb) at xineLib.c:331
331 return m_index;
(gdb) bt  
#0  0x2ac4c1f949be in PluginXine::cXinePalette::cEntry::getIndex (
this=0xafea30bfd4d472bb) at xineLib.c:331
#1  0x2ac4c1f931af in ScaleBitmapHQ (src=0x2cc06b0 "", x0=25, y0=411, 
w=672, h=104, 
stride=672, ws=544, hs=576, x1=18, y1=411, w1=509, h1=104, 
transparentIndex=1, 
colors=0x2cae5e8, numColors=7, [EMAIL PROTECTED], [EMAIL PROTECTED], 
currentPaletteSize=0, currentPalette=0x27dee10, xineLib=0x27da5d8) at 
xineLib.c:1245
#2  0x2ac4c1f939dc in PluginXine::cXineLib::execFuncOsdDrawBitmap 
(this=0x27da5d8, 
needsScaling=PluginXine::cXineLib::yes, videoWidth=544, videoHeight=576, 
xineOsd=0x2839410, window=0, bitmap=0x2cae5e0, x=0, y=0, width=672, 
height=104, 
stride=672) at xineLib.c:1570
#3  0x2ac4c1f9459a in PluginXine::cXineLib::sendWindow (this=0x27da5d8, 
xineOsd=0x2839410, windowNum=0, bitmap=0x2cae5e0, videoLeft=0, videoTop=0, 
videoWidth=544, videoHeight=576, videoZoomX=100, videoZoomY=100, 
dontOptimize=false)
at xineLib.c:1849
#4  0x2ac4c1f9474c in PluginXine::cXineLib::SendWindow (this=0x27da5d8, 
xineOsd=0x2839410, windowNum=0, bitmap=0x2cae5e0, videoLeft=0, videoTop=0, 
videoWidth=544, videoHeight=576, videoZoomX=100, videoZoomY=100, 
dontOptimize=false)
at xineLib.c:1690
#5  0x2ac4c1f95de5 in PluginXine::cXineOsd::Flush (this=0x2839410) at 
xineOsd.c:356
#6  0x004d30f8 in cSkinSTTNGDisplayReplay::Flush (this=0x2855d30)
at skinsttng.c:792
#7  0x0048754f in cReplayControl::ShowProgress (this=0x2cce510, 
Initial=true)
at menu.c:4160
#8  0x004875f2 in cReplayControl::ShowTimed (this=0x2cce510, Seconds=0)
at menu.c:4087
#9  0x00487c56 in cReplayControl::Show (this=0x2cce510) at menu.c:4094
#10 0x00487c0d in cReplayControl::ProcessKey (this=0x2cce510, Key=kOk)
at menu.c:4434
#11 0x004f84df in main (argc=17, argv=0x7fffeab4d548) at vdr.c:1042
Current language:  auto; currently c++

Any idea what I shall change ?

Thank,
-- 
Grégoire FAVRE  http://gregoire.favre.googlepages.com  http://www.gnupg.org

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr