On Mon, Jun 14, 2010 at 09:31:25PM +0000, corvid wrote:
rogerx wrote:
Every time I visit a web page, I get an unexplained segfault (viewing with strace).
This has been occurring for 1-3 months now.
I've recently realized a GCC bug with Mozilla based browsers here: http://bugs.gentoo.org/show_bug.cgi?id=270120
I think on one segfault with Dillo, I did get a "bad var font" error, but later lost the url -- so I can only try to recall the exact error.
I doubt this is font related as I have several fonts installed. (Following is a quick search of "font" within package manager search function.)
[snip]
Without a gdb backtrace or anything, I can't help but assume that this the fltk font problem showing up again...
Well, by luck, here's a backtrace with some good info. (Most of the other back traces contained little useful info.) $ gdb dillo ... run ... CssParser::parseImport(): @import /css/0.1/screen/common/modules/sharetools.css CssParser::parseImport(): @import /css/0.1/screen/common/modules/readercomments.css CssParser::parseImport(): @import /css/0.1/screen/section/travel/modules/expedia.css CssParser::parseImport(): @import /css/0.1/screen/article/upnext.css bad font: variable Program received signal SIGSEGV, Segmentation fault. 0x4429f928 in strcmp () from /lib/libc.so.6 (gdb) bt #0 0x4429f928 in strcmp () from /lib/libc.so.6 #1 0xb7f60884 in fltk::setfont (font=0xb7fda6e0, psize=9) at x11/Font_xlfd.cxx:539 #2 0xb7f55094 in fltk::measure (str=0x80d845e "x", w=@0xbfffe998, h=@0xbfffe994, flags=0) at drawtext.cxx:659 #3 0x08097fff in FltkFont (this=0x830bd20, attrs=0xbfffeacc) at fltkplatform.cc:70 #4 0x080981a7 in dw::fltk::FltkFont::create (attrs=0xbfffeacc) at fltkplatform.cc:98 #5 0x08099447 in dw::fltk::FltkPlatform::createFont (this=0x81197a8, attrs=0xbfffeacc, tryEverything=false) at fltkplatform.cc:465 #6 0x080b1343 in dw::core::Layout::createFont (this=0x8177ef0, attrs=0xbfffeacc, tryEverything=false) at layout.hh:322 #7 0x080b033a in dw::core::style::Font::create0 (layout=0x8177ef0, attrs=0xbfffeacc, tryEverything=false) at style.cc:297 #8 0x080b035c in dw::core::style::Font::create (layout=0x8177ef0, attrs=0xbfffeacc) at style.cc:302 #9 0x0806bb5d in StyleEngine::apply (this=0x835ff30, attrs=0xbfffeb44, props=0xbfffebe4) at styleengine.cc:334 #10 0x0806c779 in StyleEngine::style0 (this=0x835ff30, nonCssProperties=0xbfffec5c) at styleengine.cc:615 #11 0x0806b3b7 in StyleEngine::setNonCssHints (this=0x835ff30, nonCssHints=0xbfffec5c) at styleengine.cc:135 #12 0x080716cc in Html_tag_open_body (html=0x8248db0, tag=0x83297b9 "<body >\n\r\n\r\n<a name=\"top\"></a>\r\n<div id=\"shell\">\r\n<ul id=\"memberTools\">\n\n<!-- ADXINFO classification=\"text_ad\" campaign=\"nyt2010-circ-bar1_non-hp-34U7K\"--><li><a href=\"http://www.nytimes.com/adx/bin/a"..., tagsize=7) at html.cc:1725 #13 0x080758d0 in Html_process_tag (html=0x8248db0, tag=0x83297b9 "<body >\n\r\n\r\n<a name=\"top\"></a>\r\n<div id=\"shell\">\r\n<ul id=\"memberTools\">\n\n<!-- ADXINFO classification=\"text_ad\" campaign=\"nyt2010-circ-bar1_non-hp-34U7K\"--><li><a href=\"http://www.nytimes.com/adx/bin/a"..., tagsize=7) at html.cc:3481 #14 0x08076525 in Html_write_raw (html=0x8248db0, buf=0x83286a0 "\n\n\n\n\n\n\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<html>\r\n<head>\r\n<title>Onshore Oil Spill Response Is Described as Chaotic - NYTimes.com</"..., bufsize=66856, Eof=0) at html.cc:3782 #15 0x0806eeca in DilloHtml::write (this=0x8248db0, Buf=0x83286a0 "\n\n\n\n\n\n\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<html>\r\n<head>\r\n<title>Onshore Oil Spill Response Is Described as Chaotic - NYTimes.com</"..., BufSize=66856, Eof=0) at html.cc:554 #16 0x0807602a in Html_callback (Op=0, Client=0x816c020) at html.cc:3673 #17 0x080621b2 in Cache_process_queue (entry=0x826a928) at cache.c:1172 #18 0x080623a7 in Cache_delayed_process_queue_callback () at cache.c:1237 #19 0xb7f8f2a7 in fltk::wait (time_to_wait=1.00000002e+20) at run.cxx:478 #20 0xb7f8f3d4 in fltk::run () at run.cxx:399 #21 0x08050ab3 in main (argc=1, argv=0xbfffef64) at dillo.cc:371 (gdb) -- Roger http://rogerx.freeshell.org/