NetBSD Problem Report #56305

From www@netbsd.org  Mon Jul 12 12:41:53 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C15F71A921F
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 12 Jul 2021 12:41:52 +0000 (UTC)
Message-Id: <20210712124151.2DA991A924A@mollari.NetBSD.org>
Date: Mon, 12 Jul 2021 12:41:51 +0000 (UTC)
From: nervoso@k1.com.br
Reply-To: nervoso@k1.com.br
To: gnats-bugs@NetBSD.org
Subject: x11/qt5-qtwebkit  aborts on vmEntryToJavaScript 
X-Send-Pr-Version: www-1.0

>Number:         56305
>Category:       pkg
>Synopsis:       x11/qt5-qtwebkit  aborts on vmEntryToJavaScript
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 12 12:45:00 +0000 2021
>Originator:     sergio lenzi
>Release:        9.2 stable  pkgsrc HEAD
>Organization:
k1 sistemas
>Environment:
NetBSD lenzidorm.netbsd 9.2_STABLE NetBSD 9.2_STABLE (LZT9) #1: Mon Jun 14 11:12:50 -03 2021  NetBSD@zfs.netbsd:/home/NetBSD/BUILD/9/i386/OBJ/sys/arch/i386/compile/GENERIC i386
>Description:
when build wip/openshot-qt from pkgsrc it builds x11/qt5-qtwebkit, it works on AMD64, but NOT in i386 it opens the main window, and aborts with 
hread 1 "" received signal SIGTRAP, Trace/breakpoint trap.
0x88375ecf in vmEntryToJavaScript () from /usr/pkg/qt5/lib/libJavaScriptCore.so.5

a look at the code, points to the JIT writen in asm for the i386, if the package is compilled without JIT, it works as expected. 

May be this situation occurs every program that uses qtwebkit on i386.
>How-To-Repeat:
compile openshot-qt,  it builds x11/qt5-qtwebkit  when execute openshot-qt, the program abortds with SIGTRAP (probable invalid op code) that points to the JIT code in asm language...
>Fix:
Compile the x11/qt5-qtwidget with option  NO JIT...

CMAKE_ARGS+=		-DENABLE_JIT:BOOL=OFF

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.