List Info

Thread: use of uninitialized counter in GSXftFontInfo.m




use of uninitialized counter in GSXftFontInfo.m
country flaguser name
United States
2008-05-23 15:59:52
URL:
  <http://sa
vannah.gnu.org/support/?106379>

                 Summary: use of uninitialized counter in
GSXftFontInfo.m
                 Project: GNUstep
            Submitted by: buzzdee
            Submitted on: Friday 05/23/2008 at 20:59
                Category: Foundation
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: *BSD

    _______________________________________________________

Details:

on OpenBSD sparc64, applications segfault on startup,
because of usage of
uninitialized counter in gnustep-back GSXftFontInfo.m. It
ends up with
following backtrace:

(gdb) bt
#0  0x000000005028ec88 in -[GSXftFontInfo
coveredCharacterSet] (
    self=0x48b19c10, _cmd=0x459a2c68) at
GSXftFontInfo.m:348
#1  0x0000000045409cb4 in -[NSFont coveredCharacterSet]
(self=0x4e19cf90,
    _cmd=0x4597b018) at NSFont.m:1118
#2  0x000000004533c1e8 in
-[NSMutableAttributedString(AppKit)
fixFontAttributeInRange:] (self=0x43133090, _cmd=0x4597afa8,
range={location =
0, length = 18})
    at NSAttributedString.m:1129
#3  0x000000004533b1f4 in
-[NSMutableAttributedString(AppKit)
fixAttributesInRange:] (self=0x43133090, _cmd=0x459eb658,
range={location = 0,
length = 18})
    at NSAttributedString.m:983
#4  0x0000000045586b94 in -[NSTextStorage
invalidateAttributesInRange:] (
    self=0x43133090, _cmd=0x459eb5d8, range={location = 0,
length = 18})
    at NSTextStorage.m:337
#5  0x000000004558640c in -[NSTextStorage processEditing]
(self=0x43133090,
    _cmd=0x459eb578) at NSTextStorage.m:220
#6  0x0000000045585efc in -[NSTextStorage endEditing]
(self=0x43133090,
    _cmd=0x459df020) at NSTextStorage.m:128
#7  0x000000004553ab20 in cache_lookup_string
(string=0x30ca28,
    attributes=0x4e19cd90, hasSize=0, size={width = 0,
height = 0},
    useScreenFonts=1) at NSStringDrawing.m:290
#8  0x000000004553cd9c in -[NSString(NSStringDrawing)
sizeWithAttributes:] (
    self=0x30ca28, _cmd=0x45a1b8e0, attrs=0x4e19cd90) at
NSStringDrawing.m:651
#9  0x0000000045691db4 in -[GSTitleView titleSize]
(self=0x410cc810,

...

patch that fixes the problem for me, is appended.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Friday 05/23/2008 at 20:59  Name: bugreport  Size:
902B   By: buzzdee

<http://savannah.gnu.org/support/download.php?file_
id=15719>

    _______________________________________________________

Reply to this item at:

  <http://sa
vannah.gnu.org/support/?106379>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




_______________________________________________
Bug-gnustep mailing list
Bug-gnustepgnu.org
htt
p://lists.gnu.org/mailman/listinfo/bug-gnustep

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )