[Bug 201226] graphics/lcms2: crashes with SIGBUS on armv6
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jun 30 18:29:53 UTC 2015
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 at FreeBSD.org
Reporter: mikael.urankar at gmail.com
CC: freebsd-arm at FreeBSD.org
Assignee: sunpoet at FreeBSD.org
Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
CC: freebsd-arm at 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
<snip>
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 <cmsMLUsetWide+64>: str r5, [sp, #12]
0x22892240 <cmsMLUsetWide+68>: bl 0x2285e138 <$a+96>
0x22892244 <cmsMLUsetWide+72>: strh r0, [r11, #-30]
0x22892248 <cmsMLUsetWide+76>: ldr r0, [r11, #-24]
0x2289224c <cmsMLUsetWide+80>: ldrh r0, [r0]
0x22892250 <cmsMLUsetWide+84>: bl 0x2285e138 <$a+96>
0x22892254 <cmsMLUsetWide+88>: strh r0, [sp, #32]
0x22892258 <cmsMLUsetWide+92>: ldr r0, [r11, #-16]
End of assembler dump.
(gdb) info registers
r0 0x228bc379 579584889
<snip>
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.
More information about the freebsd-ports-bugs
mailing list