Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/extend.js crashing with Bus error: 10 #24

Closed
subtleGradient opened this issue Oct 15, 2012 · 4 comments
Closed

test/extend.js crashing with Bus error: 10 #24

subtleGradient opened this issue Oct 15, 2012 · 4 comments

Comments

@subtleGradient
Copy link

./test/run.sh test/extend.js

   extend.js ./test/run.sh: line 4: 67899 Bus error: 10

In the console.log:

10/15/12 9:25:55.000 AM kernel[0]: Data/Stack execution not permitted: node[pid 67899] at virtual address 0x102a83000, protections were read-write

The crash report:

Process:         node [67899]
Path:            /usr/local/bin/node
Identifier:      node
Version:         ???
Code Type:       X86-64 (Native)
Parent Process:  bash [67898]
User ID:         1822561186

Date/Time:       2012-10-15 09:25:55.135 -0700
OS Version:      Mac OS X 10.8.2 (12C60)
Report Version:  10
Sleep/Wake UUID: 71F47080-F03F-430B-A4BB-3F464DE1B05B

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

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

VM Regions Near 0x102a83120:
    MALLOC_TINY            0000000102700000-0000000102a00000 [ 3072K] rw-/rwx SM=PRV  
--> MALLOC_TINY            0000000102a00000-0000000102b00000 [ 1024K] rw-/rwx SM=COW  
    MALLOC_LARGE           0000000102b00000-0000000102c00000 [ 1024K] rw-/rwx SM=PRV  

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                             0x0000000102a83120 0 + 4339544352
1   ???                             0x0000000102a827e0 0 + 4339541984

Thread 1:: SamplerThread
0   libsystem_kernel.dylib          0x00007fff8624b386 __semwait_signal + 10
1   libsystem_c.dylib               0x00007fff880ea800 nanosleep + 163
2   libsystem_c.dylib               0x00007fff880ea717 usleep + 54
3   node                            0x00000001003948a9 v8::internal::SamplerThread::Run() + 127
4   node                            0x0000000100393b4d v8::internal::ThreadEntry(void*) + 61
5   libsystem_c.dylib               0x00007fff88060742 _pthread_start + 327
6   libsystem_c.dylib               0x00007fff8804d181 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000002  rcx: 0x000020bb886044f1  rdx: 0x0000000000000018
  rdi: 0x0000000102a36e00  rsi: 0x00007fff875a9cc0  rbp: 0x00007fff5fbfedf0  rsp: 0x00007fff5fbfede8
   r8: 0x0000000000000000   r9: 0x000038aeef8a7339  r10: 0x0000000102a83700  r11: 0x0000000102a83120
  r12: 0xffffffffffffffff  r13: 0x0000000000000001  r14: 0x0000000000000000  r15: 0x00007fff5fbfedf0
  rip: 0x0000000102a83120  rfl: 0x0000000000010246  cr2: 0x0000000102a83120
Logical CPU: 4

Binary Images:
       0x100000000 -        0x1005befff +node (???) <C022726C-5D50-3128-8B8B-FD1ADB5573E4> /usr/local/bin/node
       0x1009f6000 -        0x1009f7fff  Foundation.dylib (72) <559C5AA5-AC7B-3E38-B085-AD09E9FB4D4A> /System/Library/Frameworks/Foundation.framework/Resources/BridgeSupport/Foundation.dylib
       0x1009fc000 -        0x1009fcfff  CFNetwork.dylib (72) <43FE215F-9FE3-3AD7-BD86-9F9EF722F085> /System/Library/Frameworks/CFNetwork.framework/Resources/BridgeSupport/CFNetwork.dylib
       0x100bba000 -        0x100bc5ff7 +ffi_bindings.node (0) <B41A41D2-24A7-33C5-BE7A-9355499FA66B> /Users/USER/*/ffi_bindings.node
       0x100bd0000 -        0x100bdafff +libxmljs.node (0) <A1EF1AA1-933D-323E-9A73-CBEA0FF95D4C> /Users/USER/*/libxmljs.node
       0x100be7000 -        0x100be7ff7  CoreFoundation.dylib (72) <1098EF51-8F87-3F96-BAC3-7FE2F30A1CEE> /System/Library/Frameworks/CoreFoundation.framework/Resources/BridgeSupport/CoreFoundation.dylib
       0x100bec000 -        0x100becff7  IOKit.dylib (72) <EA3AED5F-73C3-3EDB-90F4-251292E4FD8B> /System/Library/Frameworks/IOKit.framework/Resources/BridgeSupport/IOKit.dylib
    0x7fff63162000 -     0x7fff6319693f  dyld (210.2.3) <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
    0x7fff8260e000 -     0x7fff82615fff  com.apple.NetFS (5.0 - 4.0) <82E24B9A-7742-3DA3-9E99-ED267D98C05E> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff82616000 -     0x7fff8284bff7  com.apple.CoreData (106.1 - 407.7) <24E0A6B4-9ECA-3D12-B26A-72B9DCF09768> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff828af000 -     0x7fff828bbfff  com.apple.CrashReporterSupport (10.8.2 - 415) <55783BF9-125E-3F9C-A412-6A095ECD9353> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fff828bc000 -     0x7fff828bdff7  libremovefile.dylib (23.1) <DBBFAF35-AC78-3856-92F6-6E4FD9DF14A2> /usr/lib/system/libremovefile.dylib
    0x7fff828c1000 -     0x7fff829beff7  libxml2.2.dylib (22.3) <47B09CB2-C636-3024-8B55-6040F7829B4C> /usr/lib/libxml2.2.dylib
    0x7fff82ab0000 -     0x7fff82aefff7  com.apple.QD (3.42 - 285) <8DF36FCA-C06B-30F4-A631-7BE2FF7E56D1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff83b4d000 -     0x7fff83b91fff  libcups.2.dylib (327) <9B3F3321-D2BC-3195-BF20-4008FC52A390> /usr/lib/libcups.2.dylib
@TooTallNate
Copy link
Owner

Confirmed. It has to do with the old node-ffi that's being used. Once I finish the update to ffi v1.0, this should be fixed.

@eelcocramer
Copy link

Is there a temporary workaround for this issue?

@matths
Copy link

matths commented Dec 21, 2012

I get exactly the same error, when using the following method within the "Cocoa GUI window with NodObjC" demo at https://gist.github.com/1203944

// AppDelegate.addMethod('applicationDidFinishLaunching:', 'v@:@', ...

Does both relate in some way?

eelcocramer referenced this issue in eelcocramer/node-bluetooth-serial-port Mar 9, 2013
@TooTallNate
Copy link
Owner

This should be fixed with v0.0.15 guys. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants