From owner-freebsd-ports-bugs@freebsd.org Sat May 12 16:00:42 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24F07FAD110 for ; Sat, 12 May 2018 16:00:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AEF8C6B9C7 for ; Sat, 12 May 2018 16:00:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 68F7BFAD10C; Sat, 12 May 2018 16:00:41 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44429FAD103 for ; Sat, 12 May 2018 16:00:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D36C76B9BF for ; Sat, 12 May 2018 16:00:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 2B54E193AF for ; Sat, 12 May 2018 16:00:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w4CG0epc077958 for ; Sat, 12 May 2018 16:00:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w4CG0e2e077955 for ports-bugs@FreeBSD.org; Sat, 12 May 2018 16:00:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 228199] [patch] graphics/okular: fix crash when opening files Date: Sat, 12 May 2018 16:00:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tijl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2018 16:00:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228199 Bug ID: 228199 Summary: [patch] graphics/okular: fix crash when opening files Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: tijl@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) Assignee: kde@FreeBSD.org Created attachment 193330 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193330&action= =3Dedit patch Okular crashes when opening a PDF attachment in Kmail. It also crashes when starting Okular, opening a first file and then opening a second file. The crashes happen because some dynamic_cast calls return NULL. The attached p= atch replaces these with qobject_cast. I'm not familiar enough with C++ to understand why dynamic_cast fails. The object is actually of type Okular::= Part and the casts are side casts from one parent class to another, not up or do= wn casts. I thought dynamic_cast could handle this though. Another way to fix the crash was to down cast to Okular::Part, but then the linker complained = that the typeinfo wasn't available and okular had to be linked to okularpart.so = to fix that. So, the problem may be that the side cast needs the typeinfo of Okular::Part at runtime and that it isn't available? Using qobject_cast fi= xes it because it doesn't rely on typeinfo. Can someone reproduce this, because maybe this is some toolchain problem? --=20 You are receiving this mail because: You are the assignee for the bug.=