Re: NSRegularExpression segfault
Re: NSRegularExpression segfault
- Subject: Re: NSRegularExpression segfault
- From: Jens Alfke <email@hidden>
- Date: Mon, 15 Dec 2014 08:44:57 -0800
> On Dec 15, 2014, at 8:38 AM, ecir hana <email@hidden> wrote:
>
> Please, can anyone explain to me why does the following program
> consistently segfault after 50000 characters? I'm running 10.9.5…
What's the backtrace? Whenever investigating a crash you should always start by looking at the stack. (To get this in a text form you can paste into a message, use the debugger command "bt".)
My first guess was that you've hit one of those cases where certain regular expressions can take huge amounts of memory to match on long strings, but as you're running on OS X you've presumably got a 64-bit process, so that shouldn't be an issue.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden