Pending http request processed after app comes from background causes crash in DNSServiceProcessResult() with SIGSEGV - segmentation violation

Originator:arjun.sohaney
Number:rdar://19663353 Date Originated:30-Jan-2015 10:53 AM
Status:Open Resolved:
Product:iOS SDK Product Version:iPhone OS Version 8.1.2 (Build 12B440)
Classification:Crash Reproducible:Rarely
 
Summary:
The user was having network issue when a http request was made. The app was sent to background and after few seconds the app came to foreground. App crashed immediately in DNSServiceProcessResult() with SIGSEGV - segmentation violation.

{
      "StackTrace" : [
        "#0  Ambulatory                          0X003A9F83 +[Logging signalHandler:]",
        "#1  Ambulatory                          0X00386B75 -[NSURL portByScheme]",
        "#2  libsystem_platform.dylib            0X369E687B _sigtramp()",
        "#3  libsystem_network.dylib             0X369BD36D <redacted>()",
        "#4  libsystem_network.dylib             0X369BD323 <redacted>()",
        "#5  libsystem_dnssd.dylib               0X3693989D <redacted>()",
        "#6  libsystem_dnssd.dylib               0X3693968F DNSServiceProcessResult()",
        "#7  libdispatch.dylib                   0X36897253 <redacted>()",
        "#8  libdispatch.dylib                   0X368882ED <redacted>()",
        "#9  libdispatch.dylib                   0X3688E3EF <redacted>()",
        "#10 libdispatch.dylib                   0X36888F85 <redacted>()",
        "#11 libdispatch.dylib                   0X3688FB9B <redacted>()",
        "#12 libdispatch.dylib                   0X36890CD7 <redacted>()",
        "#13 libsystem_pthread.dylib             0X369E7E31 _pthread_wqthread()",
        "#14 libsystem_pthread.dylib             0X369E7B84 start_wqthread()"
      ]
    }

Steps to Reproduce:
1) Make a http request while there is a network issue(Example- wifi goes and comes back)
2) Make the app go in background.
3) After 20-30 seconds, launch the app again (make sure you have wifi connection when you are about to launch the app)
4) App crash immediately.

Expected Results:
App should not crash when it comes from background while having network issues.

Actual Results:
App crash in DNSServiceProcessResult() with SIGSEGV - segmentation violation

Version:
iPhone OS Version 8.1.2 (Build 12B440)

Notes:


Configuration:
iPad5,3

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!