[OGo-Bugs][Bug 1973] New: Defaults tool segfaults under certain conditons

bugs@opengroupware.org bugs@opengroupware.org
Sat, 3 May 2008 12:19:04 +0200 (CEST)


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug
report.

http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1973

           Summary: Defaults tool segfaults under certain conditons
           Product: ThirdParty
           Version: TRUNK
          Platform: PC
        OS/Version: OpenBSD
            Status: NEW
          Severity: normal
          Priority: normal
         Component: libFoundation
        AssignedTo: helge.hess@opengroupware.org
        ReportedBy: sebastia@l00-bugdead-prods.de
         QAContact: znek@mulle-kybernetik.com
                CC: bugs@opengroupware.org


>From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5) KHTML/3.5.7 (like Gecko) SUSE

Description of problem:
when entering sth. not so clever stuff like this: 
Defaults write NSGlobalDomain test '{test;test2;}'

the Defaults tool sometimes segfaults, or throws an exception like this:

Starting program: /usr/local/bin/Defaults write NSGlobalDomain test '{test;test2;}'
May 03 11:58:17 Defaults [11233]: Cannot parse the value of key 'test' for the domain name '{test;test2;}': (Exception name:Syntax error class:SyntaxErrorException reason:Syntax error in line 1: expected '=' after key in dictionary info:{
    lastLine = "        \"monition2-p";
    line = 1;
    position = 5;
    size = 13;
})

when segfaulting, it always ends up here:
(gdb) bt
#0  0x026feaa5 in _makeException (_exception=0x0, _buffer=0x8a4d6080, _idx=5, _len=13, _text=0x8a4de304)
    at PropertyListParserUnichar.m:544
#1  0x026ffde2 in _parseDict (_zone=0x0, _buffer=0x8a4d6080, _idx=0xcfbfc694, _len=13, _exception=0xcfbfc698)
    at PropertyListParserUnichar.m:966
#2  0x02700876 in _parseProperty (_zone=0x0, _buffer=0x8a4d6080, _idx=0xcfbfc694, _len=13, _exception=0xcfbfc698)
    at PropertyListParserUnichar.m:1169
#3  0x026fe169 in NSParsePropertyListFromUnichars (_buffer=0x8a4d6080, _len=13) at PropertyListParserUnichar.m:303
#4  0x026fe267 in NSParsePropertyListFromString (_string=0x81299384) at PropertyListParserUnichar.m:320
#5  0x02692285 in -[NSString propertyList] (self=0x81299384, _cmd=0x3c001af8) at NSString.m:651
#6  0x1c0013c4 in write_command (arguments=0x812993a4) at Defaults.m:164
#7  0x1c001b9e in main (argc=5, argv=0xcfbfc840, env=0xcfbfc858) at Defaults.m:273


Version-Release number of selected component (if applicable):
-trunk

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
    

Additional info:

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.