Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Browser crashes #1481

Closed
ghost opened this issue Oct 2, 2014 · 10 comments
Closed

Browser crashes #1481

ghost opened this issue Oct 2, 2014 · 10 comments

Comments

@ghost
Copy link

ghost commented Oct 2, 2014

Qt version: 4.8.5 (compiled with 4.8.5)
QupZilla version: 1.8.0
WebKit version: 534.34

============== BACKTRACE ==============
#0: [0x403584]
#1: /lib64/libc.so.6(+0x385e0) [0x7fd81ec125e0]
#2: /lib64/libc.so.6(memset+0xa0) [0x7fd81ec62960]
#3: /usr/lib64/qt4/libQtGui.so.4(_ZNK12QFontMetrics5widthERK7QStringii+0x111) [0x7fd81fd67d21]
@JHooverman
Copy link
Member

What did you do exactly before Qupzilla crashes?

@ghost
Copy link
Author

ghost commented Oct 2, 2014

Search on page

@JHooverman
Copy link
Member

On which web-page? Is your issue reproducible?

@ghost
Copy link
Author

ghost commented Oct 3, 2014

link

ctrl+f

search text

em

my settings.ini

[SessionRestore]
isRunning=true

[Bookmarks]
showOnlyIconsInToolbar=false

[ClickToFlash]
Enable=true
whitelist=@Invalid()
Enabled=true

[AdBlock]
lastUpdate=@Variant(\0\0\0\x10\0%}e\x2\x1f\xde\xbe\0)
enabled=true
useLimitedEasyList=true
disabledRules=@Invalid()

[Web-URL-Settings]
homepage=qupzilla:start
afterLaunch=3
newTabUrl=qupzilla:speeddial

[Browser-View-Settings]
showStatusBar=true
showBookmarksToolbar=true
showNavigationToolbar=true
showHomeButton=true
showBackForwardButtons=true
showWebSearchBar=true
useTransparentBackground=false
showAddTabButton=false
showReloadButton=true
settingsDialogPage=1
WindowMaximised=true
LocationBarWidth=951
WebSearchBarWidth=277
SideBarWidth=250
WebViewWidth=2000
WindowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\0\0\0\0\x1f\0\0\x5U\0\0\x2\xff\0\0\0\0\0\0\0\0\0\0\x3\x1f\0\0\x2%\0\0\0\0\x2\0)

[Browser-Tabs-Settings]
hideTabsWithOneTab=false
ActivateLastTabWhenClosingActual=false
newTabAfterActive=true
newEmptyTabAfterActive=false
AlwaysSwitchTabsWithWheel=false
OpenNewTabsSelected=false
dontCloseWithOneTab=false
AskOnClosing=false
showClosedTabsButton=false
showTabPreviews=false
tabPreviewAnimationsEnabled=true
showCloseOnInactiveTabs=0
TabsOnTop=true

[DownloadManager]
defaultDownloadPath=
CloseManagerOnFinish=false
useNativeDialog=true
UseExternalManager=false
ExternalManagerExecutable=
ExternalManagerArguments=

[Browser-Fonts]
StandardFont=Nimbus Roman No9 L
CursiveFont=DejaVu Sans
FantasyFont=DejaVu Sans
FixedFont=Liberation Mono
SansSerifFont=Nimbus Sans L
SerifFont=Nimbus Roman No9 L
DefaultFontSize=13
FixedFontSize=11
MinimumFontSize=0
MinimumLogicalFontSize=0

[Shortcuts]
useTabNumberShortcuts=true
useSpeedDialNumberShortcuts=true
useSingleKeyShortcuts=false

[Web-Browser-Settings]
allowFlash=true
allowJavaScript=false
allowJava=false
DNS-Prefetch=false
IncludeLinkInFocusChain=false
zoomTextOnly=false
SpatialNavigation=false
CaretBrowsing=false
AnimateScrolling=true
PrintElementBackground=true
wheelScrollLines=3
DoNotTrack=true
CheckUpdates=false
LoadTabsOnActivation=true
DefaultZoomLevel=6
XSSAuditing=false
enableFormsUndoRedo=false
closeAppWithCtrlQ=true
maximumCachedPages=3
AllowLocalCache=true
LocalCacheSize=50
CachePath=/home/test/.config/qupzilla/profiles/default/networkcache/534.34-Qt4.8.5/
userStyleSheet=
SavePasswordsOnSites=true
allowHistory=true
deleteHistoryOnClose=true
HTML5StorageEnabled=false
deleteHTML5StorageOnClose=false
SendReferer=true
allowJavaScriptCloseWindow=false
allowJavaScriptOpenWindow=false
allowJavaScriptGeometryChange=false
allowJavaScriptHideMenuBar=false
allowJavaScriptHideStatusBar=false
allowJavaScriptHideToolBar=true
allowJavaScriptAccessClipboard=false
SSLv3Sites=centrum.sk, centrum.cz, oneaccount.com, hdi.de, live.com, i0.cz, sermepa.es
AutomaticallyOpenProtocols=@Invalid()
BlockOpeningProtocols=@Invalid()
UserAgent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0"

[Notifications]
Timeout=6000
Enabled=true
UseNativeDesktop=true
Position=@Point(10 10)

[AddressBar]
showSuggestions=0
useInlineCompletion=true
alwaysShowGoIcon=false
showSwitchTab=true
SelectAllTextOnDoubleClick=true
SelectAllTextOnClick=false
AddCountryDomainWithAltKey=true
ShowLoadingProgress=false
ProgressStyle=0
UseCustomProgressColor=false
CustomProgressColor=@Variant(\0\0\0\x43\x1\xff\xff\x62\x62\x8c\x8c\xb2\xb2\0\0)

[SearchEngines]
SearchWithDefaultEngine=false
activeEngine=DuckDuckGo
DefaultEngine=StartPage

[Language]
language=ru_RU

[Web-Proxy]
ProxyType=1
UseProxy=3
HostName=127.0.0.1
Port=9050
Username=
Password=
UseDifferentProxyForHttps=false
HttpsHostName=
HttpsPort=0
HttpsUsername=
HttpsPassword=
PacUrl=@Variant(\0\0\0\x11\xff\xff\xff\xff)
ProxyExceptions=@Invalid()

[Plugin-Settings]
EnablePlugins=true
AllowedPlugins=/usr/lib/qupzilla/libGreaseMonkey.so, /usr/lib/qupzilla/libStatusBarIcons.so

[Themes]
activeTheme=linux

[SSL-Configuration]
CACertPaths=@Invalid()
IgnoreAllSSLWarnings=false
DisableWeakCiphers=true

[SpeedDial]
pages="url:\"http://www.qupzilla.com\"|title:\"QupZilla\";url:\"http://blog.qupzilla.com\"|title:\"QupZilla Blog\";url:\"https://github.com/QupZilla/qupzilla\"|title:\"QupZilla GitHub\";url:\"https://duckduckgo.com\"|title:\"DuckDuckGo\";"
background=
backsize=auto
pagesrow=4
sdsize=231
sdcenter=0

[User-Agent-Settings]
UsePerDomainUA=false
DomainList=@Invalid()
UserAgentsList=@Invalid()

[HTML5Notifications]
NotificationsGranted=@Invalid()
NotificationsDenied=@Invalid()
GeolocationGranted=@Invalid()
GeolocationDenied=@Invalid()

[ClearPrivateData]
state=@ByteArray(\0\0\0\x1\0\0\0\x3\x1\x1\x1\x1\x1)

[Cookie-Settings]
allowCookies=true
deleteCookiesOnClose=true
allowCookiesFromVisitedDomainOnly=1
filterTrackingCookie=true
whitelist=@Invalid()
blacklist=@Invalid()

@ghost
Copy link
Author

ghost commented Oct 3, 2014

Just more backtrace, if it can be useful:

Qt version: 4.8.5 (compiled with 4.8.5)
QupZilla version: 1.8.0 (135514379b)
WebKit version: 537.21

============== BACKTRACE ==============
#0: ../bin/qupzilla() [0x403506]
#1: /lib64/libc.so.6() [0x39ecc326b0]
#2: /lib64/libc.so.6() [0x39ecc895d9]
#3: /opt/qt/lib64/libQtGui.so.4(_ZNK12QFontMetrics5widthERK7QStringii+0x142) [0x7f113cc6a9c2]
#4: /opt/qt/lib64/libQtWebKit.so.4(+0xddef2f) [0x7f113e2faf2f]
#5: /opt/qt/lib64/libQtWebKit.so.4(+0xa8ceac) [0x7f113dfa8eac]
#6: /opt/qt/lib64/libQtWebKit.so.4(+0xa993c5) [0x7f113dfb53c5]
#7: /opt/qt/lib64/libQtWebKit.so.4(+0xb54b8c) [0x7f113e070b8c]
#8: /opt/qt/lib64/libQtWebKit.so.4(+0xb57906) [0x7f113e073906]
#9: /opt/qt/lib64/libQtWebKit.so.4(+0xb4e582) [0x7f113e06a582]
#10: /opt/qt/lib64/libQtWebKit.so.4(+0xcb3b18) [0x7f113e1cfb18]
#11: /opt/qt/lib64/libQtWebKit.so.4(+0xc283e9) [0x7f113e1443e9]
#12: /opt/qt/lib64/libQtWebKit.so.4(+0xb5c4fd) [0x7f113e0784fd]
#13: /opt/qt/lib64/libQtWebKit.so.4(+0xb7da90) [0x7f113e099a90]
#14: /opt/qt/lib64/libQtWebKit.so.4(+0xb5aa7f) [0x7f113e076a7f]
#15: /opt/qt/lib64/libQtWebKit.so.4(+0xb5c96b) [0x7f113e07896b]
#16: /opt/qt/lib64/libQtWebKit.so.4(+0xb5e680) [0x7f113e07a680]
#17: /opt/qt/lib64/libQtWebKit.so.4(+0xb5c4a4) [0x7f113e0784a4]
#18: /opt/qt/lib64/libQtWebKit.so.4(+0xb7da90) [0x7f113e099a90]
#19: /opt/qt/lib64/libQtWebKit.so.4(+0xb5aa7f) [0x7f113e076a7f]
#20: /opt/qt/lib64/libQtWebKit.so.4(+0xb5c96b) [0x7f113e07896b]
#21: /opt/qt/lib64/libQtWebKit.so.4(+0xb5e680) [0x7f113e07a680]
#22: /opt/qt/lib64/libQtWebKit.so.4(+0xb5c4a4) [0x7f113e0784a4]
#23: /opt/qt/lib64/libQtWebKit.so.4(+0xb7da90) [0x7f113e099a90]
#24: /opt/qt/lib64/libQtWebKit.so.4(+0xb5aa7f) [0x7f113e076a7f]
#25: /opt/qt/lib64/libQtWebKit.so.4(+0xc1349e) [0x7f113e12f49e]
#26: /opt/qt/lib64/libQtWebKit.so.4(+0xc13d61) [0x7f113e12fd61]
#27: /opt/qt/lib64/libQtWebKit.so.4(+0xc14b9e) [0x7f113e130b9e]
#28: /opt/qt/lib64/libQtWebKit.so.4(+0xc1265d) [0x7f113e12e65d]
#29: /opt/qt/lib64/libQtWebKit.so.4(+0xc13d61) [0x7f113e12fd61]
#30: /opt/qt/lib64/libQtWebKit.so.4(+0xc14b9e) [0x7f113e130b9e]
#31: /opt/qt/lib64/libQtWebKit.so.4(+0xc1265d) [0x7f113e12e65d]
#32: /opt/qt/lib64/libQtWebKit.so.4(+0xc13d61) [0x7f113e12fd61]
#33: /opt/qt/lib64/libQtWebKit.so.4(+0xc14d8c) [0x7f113e130d8c]
#34: /opt/qt/lib64/libQtWebKit.so.4(+0xa4e7f7) [0x7f113df6a7f7]
#35: /opt/qt/lib64/libQtWebKit.so.4(+0x3cfc5f) [0x7f113d8ebc5f]
#36: /opt/qt/lib64/libQtWebKit.so.4(_ZN9QWebFrame6renderEP8QPainterRK7QRegion+0x52) [0x7f113d8ebf02]
#37: /opt/qt/lib64/libQtWebKit.so.4(_ZN8QWebView10paintEventEP11QPaintEvent+0x6b) [0x7f113d90764b]
#38: /opt/qt/lib64/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x77e) [0x7f113ca7c06e]
#39: /opt/qt/lib64/libQtWebKit.so.4(_ZN8QWebView5eventEP6QEvent+0x7a) [0x7f113d90772a]
#40: /opt/qt/lib64/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac) [0x7f113ca2d6fc]
#41: /opt/qt/lib64/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x13d) [0x7f113ca343bd]
#42: /opt/qt/lib64/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c) [0x7f113c50fb6c]
#43: /opt/qt/lib64/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3bc) [0x7f113ca7ea7c]
#44: /opt/qt/lib64/libQtGui.so.4(+0x3e2916) [0x7f113cc4b916]
#45: /opt/qt/lib64/libQtGui.so.4(_ZN14QWidgetPrivate16syncBackingStoreEv+0x80) [0x7f113ca72700]
#46: /opt/qt/lib64/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0xcfc) [0x7f113ca7c5ec]
#47: /opt/qt/lib64/libQtGui.so.4(_ZN11QMainWindow5eventEP6QEvent+0x6b) [0x7f113ce4bb3b]
#48: ./libQupZilla.so.1(_ZN13BrowserWindow5eventEP6QEvent+0x1e) [0x7f113f84d13e]
#49: /opt/qt/lib64/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac) [0x7f113ca2d6fc]
#50: /opt/qt/lib64/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x13d) [0x7f113ca343bd]
#51: /opt/qt/lib64/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c) [0x7f113c50fb6c]
#52: /opt/qt/lib64/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x3d3) [0x7f113c513cc3]
#53: /opt/qt/lib64/libQtCore.so.4(+0x1a4243) [0x7f113c53d243]
#54: /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x1f2) [0x39ee43feb2]
#55: /lib64/libglib-2.0.so.0() [0x39ee443d68]
#56: /lib64/libglib-2.0.so.0(g_main_context_iteration+0x6c) [0x39ee443f1c]
#57: /opt/qt/lib64/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x73) [0x7f113c53cd83]
#58: /opt/qt/lib64/libQtGui.so.4(+0x26847e) [0x7f113cad147e]
#59: /opt/qt/lib64/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32) [0x7f113c50e852]
#60: /opt/qt/lib64/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x164) [0x7f113c50ebb4]
#61: /opt/qt/lib64/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xb9) [0x7f113c514089]
#62: ../bin/qupzilla() [0x402ce3]
#63: /lib64/libc.so.6(__libc_start_main+0xfd) [0x39ecc1ed5d]
#64: ../bin/qupzilla() [0x4023b9]

@JHooverman
Copy link
Member

This issue is reproducible for me with QtTestBrowser (Qt version: 4.8.6, WebKit version: 537.21). This is the output in a terminal window:

com@puter:> ./QtTestBrowser
Object::connect: No such slot WebPage::requestPermission(QWebFrame*, QWebPage::Feature)
Object::connect: No such slot WebPage::featurePermissionRequestCanceled(QWebFrame*, QWebPage::Feature)
Object::connect: No such slot WebPage::requestPermission(QWebFrame*, QWebPage::Feature)
Object::connect: No such slot WebPage::featurePermissionRequestCanceled(QWebFrame*, QWebPage::Feature)
QPainter::end: Painter ended with 3 saved states
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted

This QupZilla-version is not affected:
Application version: 1.8.0 (1355143)
Qt version: 5.4.0
WebKit version: 538.1
Build time: Sep 27 2014 10:25:06
Platform: openSUSE Tumbleweed (Linux)

Conclusion: This is rather a Qt/ QtWebKit issue.

@JHooverman
Copy link
Member

A comment by moulei has been moved to #1448. Please continue discussing there.

@ghost
Copy link
Author

ghost commented Oct 21, 2014

I experience this issue too trying to search text on several different web pages.
Qupzilla 1.8.3
WebKit 534.34
Qt 4.8.6
Debian 7 "Wheezy"

Backtrace from gdb:

GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/qupzilla...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/qupzilla
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffecb0c700 (LWP 8092)]
[New Thread 0x7fffec30b700 (LWP 8093)]
QupZilla: 0 extensions loaded
[New Thread 0x7fffe9a1f700 (LWP 8095)]
[New Thread 0x7fffe911e700 (LWP 8097)]
[New Thread 0x7fff217b8700 (LWP 8098)]
[New Thread 0x7fff20fb7700 (LWP 8099)]
[New Thread 0x7fff1e5a0700 (LWP 8116)]
[New Thread 0x7fff13ce8700 (LWP 8121)]
[New Thread 0x7fff134e7700 (LWP 8122)]
[New Thread 0x7fff12ce6700 (LWP 8123)]
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-5~deb7u1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
[New Thread 0x7fff0c0d1700 (LWP 8140)]
[New Thread 0x7fff0b8d0700 (LWP 8141)]
[New Thread 0x7fff0b0cf700 (LWP 8142)]
[New Thread 0x7fff0a8ce700 (LWP 8143)]
[New Thread 0x7fff08bdb700 (LWP 8146)]
[New Thread 0x7fff083da700 (LWP 8147)]

Program received signal SIGSEGV, Segmentation fault.
memset_sse2 () at ../sysdeps/x86_64/multiarch/../memset.S:311
311 ../sysdeps/x86_64/multiarch/../memset.S: No such file or directory.
(gdb) backtrace
#0 memset_sse2 () at ../sysdeps/x86_64/multiarch/../memset.S:311
#1 0x00007fffffffa5d0 in ?? ()
#2 0x00007ffff4a834d9 in QFontMetrics::width(QString const&, int, int) const () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3 0x00007ffff6acb0c2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#4 0x00007ffff6962a6c in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#5 0x00007ffff696aaa5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#6 0x00007ffff69d6fea in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#7 0x00007ffff69d8aa4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#8 0x00007ffff69d284c in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#9 0x00007ffff6ab17c9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#10 0x00007ffff6a5952d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#11 0x00007ffff69f2732 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#12 0x00007ffff69dbcb3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#13 0x00007ffff69de5a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#14 0x00007ffff69f2732 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#15 0x00007ffff69dbcb3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#16 0x00007ffff69de5a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#17 0x00007ffff69f2732 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#18 0x00007ffff69dbcb3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#19 0x00007ffff69de5a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#20 0x00007ffff69f2732 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#21 0x00007ffff69dbcb3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#22 0x00007ffff6a4ddc6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#23 0x00007ffff6a4eaaa in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#24 0x00007ffff6a4d4df in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#25 0x00007ffff6a4eaaa in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#26 0x00007ffff6a4d4df in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#27 0x00007ffff6a4ebb4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#28 0x00007ffff6938b99 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#29 0x00007ffff6548f22 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#30 0x00007ffff6549162 in QWebFrame::render(QPainter
, QRegion const&) () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#31 0x00007ffff6561409 in QWebView::paintEvent(QPaintEvent
) () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#32 0x00007ffff48a255e in QWidget::event(QEvent
) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#33 0x00007ffff65614e7 in QWebView::event(QEvent
) () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#34 0x00007ffff48529ec in QApplicationPrivate::notify_helper(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007ffff4856e96 in QApplication::notify(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#36 0x00007ffff3fd36de in QCoreApplication::notifyInternal(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#37 0x00007ffff489e124 in QWidgetPrivate::drawWidget(QPaintDevice_, QRegion const&, QPoint const&, int, QPainter_, QWidgetBackingStore_) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#38 0x00007ffff4a69fbd in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#39 0x00007ffff48929a0 in QWidgetPrivate::syncBackingStore() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#40 0x00007ffff48a2a04 in QWidget::event(QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#41 0x00007ffff4c692cb in QMainWindow::event(QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#42 0x00007ffff790a23e in BrowserWindow::event(QEvent_) () from /usr/lib/x86_64-linux-gnu/libQupZilla.so.1
#43 0x00007ffff48529ec in QApplicationPrivate::notify_helper(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
---Type to continue, or q to quit---
#44 0x00007ffff4856e96 in QApplication::notify(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#45 0x00007ffff3fd36de in QCoreApplication::notifyInternal(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#46 0x00007ffff3fd7651 in QCoreApplicationPrivate::sendPostedEvents(QObject_, int, QThreadData_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#47 0x00007ffff4002113 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#48 0x00007ffff1288355 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007ffff1288688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007ffff1288744 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007ffff40022a6 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#52 0x00007ffff48f3ece in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#53 0x00007ffff3fd22df in QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#54 0x00007ffff3fd2568 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#55 0x00007ffff3fd7968 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#56 0x0000000000402e78 in ?? ()
#57 0x00007ffff3129ead in __libc_start_main (main=, argc=, ubp_av=, init=, fini=,
rtld_fini=, stack_end=0x7fffffffe368) at libc-start.c:244
#58 0x0000000000403171 in ?? ()
#59 0x00007fffffffe368 in ?? ()
#60 0x000000000000001c in ?? ()
#61 0x0000000000000001 in ?? ()
#62 0x00007fffffffe611 in ?? ()
#63 0x0000000000000000 in ?? ()

@JHooverman
Copy link
Member

I have opened an issue on QTBUG

@JHooverman JHooverman added the Qt label Nov 1, 2014
@JHooverman JHooverman self-assigned this Nov 1, 2014
@JHooverman
Copy link
Member

This issue has been fixed upstream in QtWebKit 2.3 trunk.

The patch avoids creating raw QString with invalid data.
If for some reason a selection is attempted made of data outside a sanitized string of a TextRun we can end up making a QString pointing at the end of valid data in the string. This patch detects the case and returns an empty string instead.

Please get a recent qt-version, that contains this patch. I close this issue as solved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants