Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6753017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:06:42+00:00 2026-05-26T13:06:42+00:00

We get a SIGBUS (BUS_ADRALN) and it points to this thread. What is causing

  • 0

We get a SIGBUS (BUS_ADRALN) and it points to this thread. What is causing this error? Line 68 is either NSString *dateString = [dateFormat stringFromDate:currentTimestamp]; or [dateFormat release];

NSDate *currentTimestamp = self.timestamp;

if (!currentTimestamp)
    return nil; // sanity check 

[currentTimestamp retain];

NSDateComponents *otherDay = [[NSCalendar currentCalendar] components:NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit fromDate:currentTimestamp];
NSDateComponents *today = [[NSCalendar currentCalendar] components:NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit fromDate:[NSDate date]];
NSDateComponents *yesterday = [[NSCalendar currentCalendar] components:NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit fromDate:[[NSDate date] addTimeInterval: -24 * 60 * 60]];

if ([today day] == [otherDay day] &&
    [today month] == [otherDay month] &&
    [today year] == [otherDay year]) {

    NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
    [dateFormat setDateFormat:@"h:mm a"];
    NSString *dateString = [dateFormat stringFromDate:currentTimestamp];
    [dateFormat release];
    [currentTimestamp release];
    return [NSString stringWithFormat:@"Today %@", dateString];
}
else if ([yesterday day] == [otherDay day] &&
         [yesterday month] == [otherDay month] &&
         [yesterday year] == [otherDay year]) {

    NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
    [dateFormat setDateFormat:@"h:mm a"];
    NSString *dateString = [dateFormat stringFromDate:currentTimestamp];
    [dateFormat release];
    [currentTimestamp release];
    return [NSString stringWithFormat:@"Yesterday %@", dateString];
}

NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"MM/dd/yyyy h:mm a"];

// below is line 68
NSString *dateString = [dateFormat stringFromDate:currentTimestamp];
[dateFormat release];
[currentTimestamp release];

return dateString;

0   CoreFoundation                      0x33474894 CFDateFormatterCreateStringWithAbsoluteTime + 60
1   CoreFoundation                      0x33474817 CFDateFormatterCreateStringWithDate + 31
2   Foundation                          0x326c4ad7 -[NSDateFormatter stringForObjectValue:] + 91
3   Foundation                          0x326c4a75 -[NSDateFormatter stringFromDate:] + 21
4   MyApp                              0x000a81dc -[Message getFormattedTimestamp] (Message.m:68)
5   MyApp                              0x0007b7a4 -[ConversationView newBubble:withFrame:] (ConversationView.m:452)
6   MyApp                              0x0007b2fc -[ConversationView tableView:heightForRowAtIndexPath:] (ConversationView.m:520)
7   UIKit                               0x31bb3b09 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 2173
8   UIKit                               0x31bb3225 -[UITableViewRowData numberOfRows] + 73
9   UIKit                               0x31bb2c73 -[UITableView noteNumberOfRowsChanged] + 83
10  UIKit                               0x31bb27f7 -[UITableView reloadData] + 583
11  MyApp                              0x0007cccc -[ConversationView reloadAndMoveToEnd:] (ConversationView.m:147)
12  MyApp                              0x0007cc6c -[ConversationView managedObjectContext:fetchCompletedForRequest:withResults:error:] (ConversationView.m:153)
13  MyApp                              0x00197670 -[IZManagedObjectContext backgroundFetchOperation:completedWithIDs:error:] (IZManagedObjectContext.m:150)
14  MyApp                              0x001970b0 -[IZBackgroundFetchOperation fetchRequestDidCompleteWithUserInfo:] (IZBackgroundFetchOperation.m:108)
15  CoreFoundation                      0x3347df03 -[NSObject(NSObject) performSelector:withObject:] + 23
16  Foundation                          0x327237a9 __NSThreadPerformPerform + 269
17  CoreFoundation                      0x334e7a79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 13
18  CoreFoundation                      0x334e975f __CFRunLoopDoSources0 + 383
19  CoreFoundation                      0x334ea4eb __CFRunLoopRun + 231
20  CoreFoundation                      0x3347aec3 CFRunLoopRunSpecific + 231
21  CoreFoundation                      0x3347adcb CFRunLoopRunInMode + 59
22  GraphicsServices                    0x311a541f GSEventRunModal + 115
23  GraphicsServices                    0x311a54cb GSEventRun + 63
24  UIKit                               0x31b90d69 -[UIApplication _run] + 405
25  UIKit                               0x31b8e807 UIApplicationMain + 671
26  MyApp                              0x0009b578 main (main.m:5)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:06:43+00:00Added an answer on May 26, 2026 at 1:06 pm

    Well, the code above is fine, as we ended up writing a unit test for it. Turns out it was a memory issue. Weird thing is it always pointed to this line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error: Can't locate Foo.pm in @INC Is there an easier way
I get an error message from Firefox Unresponsive script. This error is due to
I get this error from my script: [Fri Apr 23 10:57:42 2010] [error] [client
I get this error when I try to call $func('something') : if(($object instanceof MyObject)
I get the following error Msg 102, Level 15, State 1, Line 11 Incorrect
We get the following error; The request was aborted: Could not create SSL/TLS secure
I get an Access is Denied error message when I use the strong name
I get the following error when running my Visual Studio 2008 ASP.NET project (start
I get the following error when building my Windows Forms solution: LC.exe exited with
I get the following error when trying to run the latest Cygwin version of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.