• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
signal 11 (SIGSEGV) error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

signal 11 (SIGSEGV) error


  • Subject: signal 11 (SIGSEGV) error
  • From: Sandy Santra <email@hidden>
  • Date: Thu, 23 Apr 2009 20:55:17 -0400

In the interest of trying to reuse the same variable, I shortened this code:

	NSString *path = @"~";
	NSString *expandedPath = [path stringByExpandingTildeInPath];

to:

	NSString *path = @"~";
	path = [path stringByExpandingTildeInPath];

but ended up getting this error:

The Debugger has exited due to signal 11 (SIGSEGV).The Debugger has exited due to signal 11 (SIGSEGV).

The error doesn't kick in if I set a break before my (second example) array code that shows up a little later:

	NSArray *pathComponents = [path pathComponents];
	for (NSString *element in pathComponents) {
		NSLog(@"%@", element);
	}
	[path release];

Anyone know what I might be doing wrong here? I'm making a stab here at using "string convenience methods," but not really sure what I'm doing.

I also keep getting this when the debugger launches, which I don't normally see:

Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions ...


Thanks for any help!


--Sandy Santra






_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: signal 11 (SIGSEGV) error
      • From: Scott Ribe <email@hidden>
    • Re: signal 11 (SIGSEGV) error
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Where to deploy byteswap.h?
  • Next by Date: Re: signal 11 (SIGSEGV) error
  • Previous by thread: Re: Where to deploy byteswap.h?
  • Next by thread: Re: signal 11 (SIGSEGV) error
  • Index(es):
    • Date
    • Thread