Hi!
Im trying to update vdr 1.4.x to 1.5.11. But my vdr keeps segfaulting every time when its started. It takes about 2-3 s after starting the vdr to the segfault. Ive tried running it only with xine-plugin (0.8.0) so far and without any patches on top of vdr. And im running vdr on Ubuntu Dapper.
GDB gives following backtrace, any ideas? It seems to be something related to fonts,.. but beyond that I have no idea.
------------------------------------- . Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212193088 (LWP 2109)] 0xb7e944dc in FT_Get_Char_Index () from /usr/lib/libfreetype.so.6 (gdb) bt #0 0xb7e944dc in FT_Get_Char_Index () from /usr/lib/libfreetype.so.6 #1 0x080b4371 in cFreetypeFont::Glyph (this=0x85da4a8, CharCode=51, AntiAliased=true) at font.c:194 #2 0x080b47dc in cFreetypeFont::Width (this=0x85da4a8, s=0x85da37c "0") at font.c:235 #3 0x080d77f8 in cBitmap::DrawText (this=0x85d97c8, x=2, y=81, s=0x85da378 "18:30", ColorFg=4294769916, ColorBg=4294710292, Font=0x85da4a8, Width=0, Height=0, Alignment=5) at osd.c:449 #4 0x080d7a23 in cOsd::DrawText (this=0x85d9750, x=2, y=81, s=0x85da378 "18:30", ColorFg=4294769916, ColorBg=4294710292, Font=0x85da4a8, Width=0, Height=0, Alignment=5) at osd.c:851 #5 0xb7a38fea in PluginXine::cXineOsd::DrawText (this=0x85d9750, x=140379792, y=140379792, s=0x85e0690 "", ColorFg=140379792, ColorBg=140379792, Font=0x85e0690, Width=140379792, Height=140379792, Alignment=140379792) at xineOsd.c:305 #6 0x080ef58a in cSkinClassicDisplayChannel::SetEvents (this=0x858a930, Present=0x82b4b48, Following=0x82b4c58) at skinclassic.c:125 #7 0x080bf488 in cDisplayChannel::DisplayInfo (this=0x858a2a0) at menu.c:3255 #8 0x080c7e1d in cDisplayChannel (this=0x858a2a0, Number=140379792, Switched=true) at menu.c:3208 #9 0x0810ff5f in main (argc=8, argv=0xbfa57a44) at vdr.c:773
----------------------------
br, Mika
Mika Orajärvi wrote:
Hi!
I’m trying to update vdr 1.4.x to 1.5.11. But my vdr keeps segfaulting every time when it’s started. It takes about 2-3 s after starting the vdr to the segfault. I’ve tried running it only with xine-plugin (0.8.0) so far and without any patches on top of vdr. And i’m running vdr on Ubuntu Dapper.
GDB gives following backtrace, any ideas? It seems to be something related to fonts,.. but beyond that I have no idea.
VDR does crash if you dont have selected font available. I can crash my 1.5.11 everytime when in OSD I select font which I dont have, I tryed with 'small font'. Then I need to manually edit 'FontSml' to existing font, Sans Serif.
Hi, I tried starting vdr without existing setup.conf and by default it seems that Sans Serif is used. But it seems that I don't have that either since Vdr still segfaults, now with following backtrace. By the way, is "fc-list" the correct way to check if certain font is available or not? According to fc-list I don't have Sans Serif..
---------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1211853120 (LWP 11533)] 0xb7ebe2f6 in FcCharSetCoverage () from /usr/lib/libfontconfig.so.1 (gdb) bt #0 0xb7ebe2f6 in FcCharSetCoverage () from /usr/lib/libfontconfig.so.1 #1 0xb7ebe837 in FcNameParseCharSet () from /usr/lib/libfontconfig.so.1 #2 0xb7ec74c1 in FcNameParse () from /usr/lib/libfontconfig.so.1 #3 0xb7eb8660 in FcBlanksIsMember () from /usr/lib/libfontconfig.so.1 #4 0xb7eba52e in FcDirCacheReadDir () from /usr/lib/libfontconfig.so.1 #5 0xb7ec00c0 in FcDirScanConfig () from /usr/lib/libfontconfig.so.1 #6 0xb7ebaa47 in FcConfigBuildFonts () from /usr/lib/libfontconfig.so.1 #7 0xb7ec3413 in FcInitLoadConfigAndFonts () from /usr/lib/libfontconfig.so.1 #8 0xb7ec3638 in FcInit () from /usr/lib/libfontconfig.so.1 #9 0x080b37cf in cFont::GetFontFileName (FontName=0x815297c "Sans Serif") at font.c:392 #10 0x080b4e59 in cFont::CreateFont (Name=0x8 <Address>, CharHeight=8, CharWidth=8) at font.c:337 #11 0x080b4ef5 in cFont::SetFont (Font=fontSml, Name=0x8 <Address>, CharHeight=8) at font.c:312 #12 0x080b4fcb in cFont::GetFont (Font=fontSml) at font.c:328 #13 0x080fc3ca in cSkinSTTNGDisplayMenu (this=0x8518268) at skinsttng.c:386 #14 0x080fcab2 in cSkinSTTNG::DisplayMenu (this=0x8515f60) at skinsttng.c:1146
#15 0x080b7348 in cInterface::LearnKeys (this=0x8515f28) at interface.c:165 #16 0x0810e8fb in main (argc=8, argv=0xbffad7e4) at vdr.c:662
-Mika
2007/11/9, Lauri Tischler lwgt@iki.fi:
Mika Orajärvi wrote:
Hi!
I'm trying to update vdr 1.4.x to 1.5.11. But my vdr keeps segfaulting
every
time when it's started. It takes about 2-3 s after starting the vdr to
the
segfault. I've tried running it only with xine-plugin (0.8.0) so far and without any patches on top of vdr. And i'm running vdr on Ubuntu Dapper.
GDB gives following backtrace, any ideas? It seems to be something
related
to fonts,.. but beyond that I have no idea.
VDR does crash if you dont have selected font available. I can crash my 1.5.11 everytime when in OSD I select font which I dont have, I tryed with 'small font'. Then I need to manually edit 'FontSml' to existing font, Sans Serif.
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Mika Orajärvi wrote:
Hi, I tried starting vdr without existing setup.conf and by default it seems that Sans Serif is used. But it seems that I don't have that either since Vdr still segfaults, now with following backtrace. By the way, is "fc-list" the correct way to check if certain font is available or not? According to fc-list I don't have Sans Serif..
If you are using Debian, try to install ttf-dejavu package, that has Sans Serif
Hi, I tried starting vdr without existing setup.conf and by default it seems that Sans Serif is used. But it seems that I don't have that either
since
Vdr still segfaults, now with following backtrace. By the way, is "fc-
list"
the correct way to check if certain font is available or not? According
to
fc-list I don't have Sans Serif..
If you are using Debian, try to install ttf-dejavu package, that has Sans Serif
I've now installed some additional packages related to fonts, including msttcorefonts package. And now vdr goes a bit further but still segfaults later on.
From the log it goes this far:
---- Nov 10 12:28:50 vdr: [24226] receiver on device 1 thread started (pid=24201, tid=24226) Nov 10 12:28:50 vdr: [24227] TS buffer on device 1 thread started (pid=24201, tid=24227) Nov 10 12:28:51 vdr: [24225] setting audio track to 1 (0) ----
And after that Segmentation fault again, here's the gdb output:
---- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1247188048 (LWP 24314)] cListBase::Sort (this=0x835ddf0) at tools.h:379 379 cListObject *Next(void) const { return next; } Current language: auto; currently c++ (gdb) bt #0 cListBase::Sort (this=0x835ddf0) at tools.h:379 #1 0x080b098b in cSchedule::Sort (this=0x835ddd0) at epg.c:782 #2 0x080ae2a0 in cEIT (this=0xb5a9530c, Schedules=0x8152ba0, Source=16384, Tid=78 'N', Data=0xb5a94ce4 "Àï", OnlyRunningStatus=false) at eit.c:271 #3 0x080ae3fb in cEitFilter::Process (this=0x84eacc8, Pid=18, Tid=78 'N', Data=0xb5a95404 "Nð!", Length=36) at eit.c:330 #4 0x080ec373 in cSectionHandler::Action (this=0x84eabe0) at sections.c:212 #5 0x08104912 in cThread::StartThread (Thread=0x84eabe0) at thread.c:244 #6 0xb7f80341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #7 0xb7d744ee in clone () from /lib/tls/i686/cmov/libc.so.6 ----
-Mika
If you are using Debian, try to install ttf-dejavu package, that has Sans Serif
I've now installed some additional packages related to fonts, including msttcorefonts package. And now vdr goes a bit further but still segfaults later on.
After all I didn't get past the font issue. There must be something fundamental missing/wrong in my system. I installed the libfontconfig1-dbg to debugging symbols for fontconfig and I get following backtrace with gdb:
--------------------------------
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212332352 (LWP 32104)] FcCharSetCopy (src=0x0) at fccharset.c:316 316 fccharset.c: No such file or directory. in fccharset.c (gdb) bt #0 FcCharSetCopy (src=0x0) at fccharset.c:316 #1 0xb7e52720 in FcValueSave (v= {type = FcTypeCharSet, u = {s = 0x0, i = 0, b = 0, d = 100, m = 0x0, c = 0x0, f = 0x0, p = 0x0, l = 0x0}}) at fcpat.c:82 #2 0xb7e53180 in FcPatternAddWithBinding (p=0x8413708, object=0x0, value= {type = FcTypeCharSet, u = {s = 0x0, i = 0, b = 0, d = 100, m = 0x0, c = 0x0, f = 0x0, p = 0x0, l = 0x0}}, binding=FcValueBindingWeak, append=1) at fcpat.c:753 #3 0xb7e533c7 in FcPatternAdd (p=0x0, object=0x0, value= {type = FcTypeCharSet, u = {s = 0x0, i = 0, b = 0, d = 100, m = 0x0, c = 0x0, f = 0x0, p = 0x0, l = 0x0}}, append=0) at fcpat.c:805 #4 0xb7e523d2 in FcNameParse (name=0x83a6260 "") at fcname.c:437 #5 0xb7e43660 in FcCacheFontSetAdd (set=0x82f9670, dirs=0x82f8380, dir=0x83480f0 "/usr/share/X11/fonts/100dpi", dir_len=27, file=0x83a6134 "ncenR08.pcf.gz", name=0x83a6143 "New Century Schoolbook-8:style=Regular:slant=0:weight=80:width=100:pixelsize=11:foundry= Adobe:antialias=False:index=0:outline=False:scalable=False:dpi=100:charset= !!!!#|>^1!|>^1!P0oWQ |>^1!|>^1!|>^1!"..., config=0x82f8308) at fccache.c:294 #6 0xb7e450d0 in FcGlobalCacheScanDir (set=0x82f9670, dirs=0x82f8380, cache=0x82fbdb8, dir=0x83480f0 "/usr/share/X11/fonts/100dpi", config=0x82f8308) at fccache.c:596 #7 0xb7e4b0f6 in FcDirScanConfig (set=0x82f9670, dirs=0x82f8380, cache=0x82fbdb8, blanks=0x82fb0a8, dir=0x83480f0 "/usr/share/X11/fonts/100dpi", force=0, config=0x82f8308) at fcdir.c:209 #8 0xb7e45a47 in FcConfigBuildFonts (config=0x82f8308) at fccfg.c:274 #9 0xb7e4e413 in FcInitLoadConfigAndFonts () at fcinit.c:83 #10 0xb7e4e638 in FcInit () at fcinit.c:101 #11 0x080b37cf in cFont::GetFontFileName (FontName=0x815297c "Times New Roman:Bold") at font.c:392 #12 0x080b4e59 in cFont::CreateFont (Name=0x0, CharHeight=0, CharWidth=0) at font.c:337 #13 0x080b4ef5 in cFont::SetFont (Font=fontSml, Name=0x0, CharHeight=0) at font.c:312 #14 0x080b4fcb in cFont::GetFont (Font=fontSml) at font.c:328 #15 0x080eef9c in cSkinClassicDisplayChannel::Flush (this=0x8352b68) at skinclassic.c:150 #16 0x080c7e28 in cDisplayChannel (this=0x83033e8, Number=0, Switched=true) at menu.c:3209 #17 0x0810ff5f in main (argc=8, argv=0xbfa35e84) at vdr.c:773