URL:
  <http://savannah.gnu.org/bugs/?34782>

                 Summary: calling -[NSUserDefaults setObject:forKey:] with nil
object can cause crashes
                 Project: GNUstep
            Submitted by: julian_
            Submitted on: Mi 09 Nov 2011 13:26:18 GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

hello again

as the title says this code can lead to crashes:


        [[NSUserDefaults standardUserDefaults] setObject:0 forKey:@"bla"];

i've attached a small sample. choosing the "choose me" in the popup button
opens a sheet. clicking the close button in the sheet makes the faulty user
defaults call.

trying to open the sheet again terminates the app with a segfault. weirdly
again i can't get a backtrace from gdb, because everything just freezes and i
have to kill -9 the process from a virtual terminal.

weirdly the same call additionally causes an X11 error "X-Windows error -
RenderBadPicture (invalid Picture parameter)" in my full app but not in this
sample - but i guess something just goes horribly wrong and if this bug is
fixed the X11 error will vanish too.

btw sorry i just now realized that is probably a bad idea to submit minimal
samples that contain "@synthesize". now in pure obj-c 1.0 ;-) 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mi 09 Nov 2011 13:26:18 GMT  Name: gnustepbug.zip  Size: 119kB   By:
julian_

<http://savannah.gnu.org/bugs/download.php?file_id=24333>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34782>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to