From owner-freebsd-ports-bugs@freebsd.org Tue Jun 30 18:29:53 2015 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 B66F5990E91 for ; Tue, 30 Jun 2015 18:29:53 +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 9B15D2028 for ; Tue, 30 Jun 2015 18:29:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t5UITrsH087560 for ; Tue, 30 Jun 2015 18:29:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 201226] graphics/lcms2: crashes with SIGBUS on armv6 Date: Tue, 30 Jun 2015 18:29:53 +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: mikael.urankar@gmail.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Target-Milestone: --- 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 cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 18:29:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201226 Bug ID: 201226 Summary: graphics/lcms2: crashes with SIGBUS on armv6 Product: Ports & Packages Version: Latest Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: mikael.urankar@gmail.com CC: freebsd-arm@FreeBSD.org Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) CC: freebsd-arm@FreeBSD.org Created attachment 158195 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158195&action=edit sigbus fix Hi, I hit the following sigbus on armv6 (texstudio is triggering the sigbus): gdb texstudio Program received signal SIGBUS, Bus error. [Switching to Thread 2c462300 (LWP 100271/texstudio)] cmsMLUsetWide (mlu=0x2cc381e0, Language=0x228bc91c "en", Country=0x228bc379 "US", WideString=0x228bc128) at cmsnamed.c:224 224 cmsUInt16Number Cntry = _cmsAdjustEndianess16(*(cmsUInt16Number*) Country); Current language: auto; currently minimal (gdb) where #0 cmsMLUsetWide (mlu=0x2cc381e0, Language=0x228bc91c "en", Country=0x228bc379 "US", WideString=0x228bc128) at cmsnamed.c:224 #1 0x22897730 in SetTextTags (hProfile=0x2ccd1c00, Description=0x228bc128) at cmsvirt.c:44 #2 0x228972f8 in cmsCreateRGBProfileTHR (ContextID=0x0, WhitePoint=0xbe5f0aa0, Primaries=0xbe5f0a58, TransferFunction=0xbe5f0a4c) at cmsvirt.c:141 #3 0x22898b3c in cmsCreate_sRGBProfileTHR (ContextID=0x0) at cmsvirt.c:658 #4 0x22898c8c in cmsCreate_sRGBProfile () at cmsvirt.c:672 #5 0x224dd158 in GfxColorSpace::setupColorProfiles () from /usr/local/lib/libpoppler.so.49 #6 0x224f1180 in GfxState::GfxState () from /usr/local/lib/libpoppler.so.49 #7 0x2cc3f140 in ?? () (gdb) disassemble $pc-18 $pc+16 Dump of assembler code from 0x2289223c to 0x2289225c: 0x2289223c : str r5, [sp, #12] 0x22892240 : bl 0x2285e138 <$a+96> 0x22892244 : strh r0, [r11, #-30] 0x22892248 : ldr r0, [r11, #-24] 0x2289224c : ldrh r0, [r0] 0x22892250 : bl 0x2285e138 <$a+96> 0x22892254 : strh r0, [sp, #32] 0x22892258 : ldr r0, [r11, #-16] End of assembler dump. (gdb) info registers r0 0x228bc379 579584889 r0 is not 2-byte aligned. The attached patch (from debian [1]) fixes that. It was successfully tested by Ulrich Grey. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644473 Thanks. -- You are receiving this mail because: You are the assignee for the bug.