Hi, Just a bit of information collecting: - which version of GNUstep Base are you using (or, which svn revision if applicable)? - which runtime are you using (gcc libobjc, libobjc2, or something else) and which version (or svn revision)? - which compiler and version? - which OS (a Linux-based OS, or a BSD, or something else)? - if you are not using latest svn revision of GNUstep Base, did you try that?
Info above may help someone reproduce the problem or suggest a fix. Looks nasty to me, but is probably easy to fix. Regards, Ivan Vučica via phone 15. 10. 2012., u 12:04, Luboš Doležel <[email protected]> napisao: > Hi, > > I have a problem where setting NSCell's value to a string crashes. I've > tracked to problem down to a simple test that reproduces the crash: > > NSString* str = @"test"; > [str retain]; > > Backtrace: > > #0 objc_msg_lookup_internal (receiver=<optimized out>, selector=<optimized > out>, receiver=<optimized out>, selector=<optimized out>, sender=<optimized > out>) at sendmsg2.c:66 > #1 objc_msg_lookup (receiver=<optimized out>, selector=<optimized out>) at > sendmsg2.c:398 > #2 0x0000000000400796 in main () at str-retain.m:6 > > Why does the retain call cause a crash? I've learned that such constant > strings don't use refcounting internally, but I don't think it should crash > anyway. > > Thanks! > -- > Luboš Doležel > > > _______________________________________________ > Discuss-gnustep mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
