From owner-freebsd-ports-bugs@freebsd.org Wed Oct 25 13:41:44 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A056E4AA47 for ; Wed, 25 Oct 2017 13:41:44 +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 mx1.freebsd.org (Postfix) with ESMTPS id 479B06DBCC for ; Wed, 25 Oct 2017 13:41:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9PDfiU1031155 for ; Wed, 25 Oct 2017 13:41:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 222118] multimedia/handbrake handbrake dumps core when navigating to select source Date: Wed, 25 Oct 2017 13:41:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Many People X-Bugzilla-Who: naito.yuichiro@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2017 13:41:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222118 --- Comment #17 from naito.yuichiro@gmail.com --- I'm wondering why Handbrake fails by segmentation fault. Gdb shows following stack trace. It seems segmentation fault occurs when thread is created. In Handbrake application, threads are created in many components (gtk and graphic components) very of= ten. ``` Core was generated by `/usr/local/bin/ghb'. Program terminated with signal SIGSEGV, Segmentation fault. #0 x86_64_freebsd_fallback_frame_state (context=3D0x7fffdedf4e20, context=3D0x7fffdedf4e20, fs=3D0x7fffdedf4b70) at ./md-unwind-support.h= :60 60 ./md-unwind-support.h: No such file or directory. [Current thread is 1 (LWP 100099)] (gdb) bt #0 x86_64_freebsd_fallback_frame_state (context=3D0x7fffdedf4e20, context=3D0x7fffdedf4e20, fs=3D0x7fffdedf4b70) at ./md-unwind-support.h= :60 #1 uw_frame_state_for (context=3Dcontext@entry=3D0x7fffdedf4e20, fs=3Dfs@entry=3D0x7fffdedf4b70) at /usr/ports/lang/gcc6/work/gcc-6.4.0/libgcc/unwind-dw2.c:1249 #2 0x0000000808141ffb in _Unwind_ForcedUnwind_Phase2 ( exc=3Dexc@entry=3D0x8145d7430, context=3Dcontext@entry=3D0x7fffdedf4e20) at /usr/ports/lang/gcc6/work/gcc-6.4.0/libgcc/unwind.inc:155 #3 0x0000000808142334 in _Unwind_ForcedUnwind (exc=3D0x8145d7430, stop=3D0x8061cb7b0 , stop_argument=3D) at /usr/ports/lang/gcc6/work/gcc-6.4.0/libgcc/unwind.inc:207 #4 0x00000008061cb613 in _Unwind_ForcedUnwind (ex=3D, stop_func=3D0x7fffdedf4948, stop_arg=3D0x8145d7200) at /usr/src/lib/libthr/thread/thr_exit.c:106 #5 thread_unwind () at /usr/src/lib/libthr/thread/thr_exit.c:172 #6 _pthread_exit_mask (status=3D, mask=3D) at /usr/src/lib/libthr/thread/thr_exit.c:257 #7 0x00000008061cb42b in _pthread_exit (status=3D0x8145d7200) at /usr/src/lib/libthr/thread/thr_exit.c:206 #8 0x00000008061bdbcd in thread_start (curthread=3D0x8145d7200) at /usr/src/lib/libthr/thread/thr_create.c:289 #9 0x00007fffdebf5000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffdedf5000 ``` I don't know why #9 stack points to unknown function address. It seems as same as following topic of current-ml. https://lists.freebsd.org/pipermail/freebsd-current/2017-August/066855.html If the reason of this problem is same as the topic, using gcc-4.9 is a good answer now. After the topic is fixed, we can change to use gcc6 or later. I think Handbrake source codes are intended to be compiled by gcc not clang. If we change the compiler, we need to patch more source code. And most of patches could be patch of patches. If my opinion is acceptable, please apply "patch_handbrake_107_2" to Ports tree. I will be a maintainer of this port, and watch the topic. Also I'm planning to upgrade Handbrake-1.1.0, when it's released. --=20 You are receiving this mail because: You are the assignee for the bug.=