Skip to content

Crash throwing exception from async callback #21

Closed

Description

@kevinsawicki
require('fs').exists('/a/b/c', function() {throw new Error()})
Process:         Atom Helper [72526]
Path:            /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper
Identifier:      com.github.atom.helper
Version:         18fa124 (18fa124)
Code Type:       X86 (Native)
Parent Process:  Atom [72517]
User ID:         501

Date/Time:       2013-06-07 15:11:21.679 -0700
OS Version:      Mac OS X 10.8.3 (12D78)
Report Version:  10

Crashed Thread:  0  CrRendererMain  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000

VM Regions Near 0:
--> __PAGEZERO             0000000000000000-0000000000001000 [    4K] ---/--- SM=NUL  /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper
    VM_ALLOCATE            0000000000001000-000000000009c000 [  620K] ---/--- SM=NUL  

Thread 0 Crashed:: CrRendererMain  Dispatch queue: com.apple.main-thread
0   libchromiumcontent.dylib        0x023c943f 0x411000 + 33260607
1   libchromiumcontent.dylib        0x023c95d9 0x411000 + 33261017
2   libchromiumcontent.dylib        0x023ceca4 0x411000 + 33283236
3   libchromiumcontent.dylib        0x005a0745 0x411000 + 1636165
4   libchromiumcontent.dylib        0x005599fe 0x411000 + 1346046
5   libchromiumcontent.dylib        0x0048c052 0x411000 + 503890
6   libchromiumcontent.dylib        0x0048bbbd 0x411000 + 502717
7   libchromiumcontent.dylib        0x00428e2c v8::Function::Call(v8::Handle<v8::Object>, int, v8::Handle<v8::Value>*) + 348
8   Atom                            0x000c838a node::MakeCallback(v8::Handle<v8::Object>, v8::Handle<v8::Function>, int, v8::Handle<v8::Value>*) + 342
9   Atom                            0x000c8494 node::MakeCallback(v8::Handle<v8::Object>, v8::Handle<v8::String>, int, v8::Handle<v8::Value>*) + 131
10  Atom                            0x000dc6fd node::After(uv_fs_s*) + 312
11  Atom                            0x001f6348 uv__fs_done + 128
12  Atom                            0x001fce10 uv__work_done + 141
13  Atom                            0x001f4817 uv__async_event + 66
14  Atom                            0x001f4995 uv__async_io + 148
15  Atom                            0x0020056a uv__io_poll + 1509
16  Atom                            0x001f4d4e uv_run + 247
17  Atom                            0x000b9cf8 atom::NodeBindingsMac::UvRunOnce() + 192
18  Atom                            0x000b9d4c ___ZN4atom15NodeBindingsMac17EmbedThreadRunnerEPv_block_invoke + 20
19  libdispatch.dylib               0x90babf8f _dispatch_call_block_and_release + 15
20  libdispatch.dylib               0x90ba7c82 _dispatch_client_callout + 46
21  libdispatch.dylib               0x90bad2e3 _dispatch_main_queue_callback_4CF + 223
22  com.apple.CoreFoundation        0x9602ec39 __CFRunLoopRun + 1961
23  com.apple.CoreFoundation        0x9602e02a CFRunLoopRunSpecific + 378
24  com.apple.CoreFoundation        0x9602de9b CFRunLoopRunInMode + 123
25  com.apple.HIToolbox             0x9015bf5a RunCurrentEventLoopInMode + 242
26  com.apple.HIToolbox             0x9015bcc9 ReceiveNextEventCommon + 374
27  com.apple.HIToolbox             0x9015bb44 BlockUntilNextEventMatchingListInMode + 88
28  com.apple.AppKit                0x926c69aa _DPSNextEvent + 724
29  com.apple.AppKit                0x926c61dc -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
30  com.apple.AppKit                0x926bc63c -[NSApplication run] + 855
31  libchromiumcontent.dylib        0x00fe8057 0x411000 + 12415063
32  libchromiumcontent.dylib        0x00fe7a2c 0x411000 + 12413484
33  libchromiumcontent.dylib        0x01032c21 base::MessageLoop::RunInternal() + 161
34  libchromiumcontent.dylib        0x01051a1e base::RunLoop::Run() + 30
35  libchromiumcontent.dylib        0x010324fa base::MessageLoop::Run() + 26
36  libchromiumcontent.dylib        0x01f825be 0x411000 + 28775870
37  libchromiumcontent.dylib        0x0259def9 0x411000 + 35180281
38  libchromiumcontent.dylib        0x0259ed21 0x411000 + 35183905
39  libchromiumcontent.dylib        0x0259dbb0 content::ContentMain(int, char const**, content::ContentMainDelegate*) + 64
40  Atom                            0x000a2df9 AtomMain + 41
41  libdyld.dylib                   0x91dfe725 start + 1

Activity

  1. zcbenz commented on Jun 10, 2013

    @zcbenz
    Contributor

    I made a mistake when updating webkit patch for latest chromium, it's now fixed.

  2. added a commit that references this issue on Jul 6, 2017
    56270a5
  3. added a commit that references this issue on May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions