asfernandes / node-firebird-drivers

Node.js Firebird Drivers
MIT License
53 stars 17 forks source link

Process.exit triggering segfault #65

Closed mreis1 closed 4 years ago

mreis1 commented 4 years ago

Another scenario that might trigger a segfault is quitting the application (sigterm - ctr+c).


PID 87837 received SIGSEGV for address: 0x10664eb38
0   segfault-handler.node               0x0000000106213040 _ZL16segfault_handleriP9__siginfoPv + 304
1   libsystem_platform.dylib            0x00007fff6ac4242d _sigtramp + 29
2   ???                                 0x0000000000000000 0x0 + 0
3   libfbclient.dylib                   0x000000010806de4d _ZN6Remote10Attachment7releaseEv + 141
4   libfbclient.dylib                   0x000000010807ee86 _ZN8Firebird19IAttachmentBaseImplIN6Remote10AttachmentENS_18CheckStatusWrapperENS_21IReferenceCountedImplIS2_S3_NS_7InheritINS_14IVersionedImplIS2_S3_NS5_INS_11IAttachmentEEEEEEEEEE22cloopreleaseDispatcherEPNS_17IReferenceCountedE + 22
5   libfbclient.dylib                   0x000000010803bcac _ZN3Why11YAttachment7destroyEj + 396
6   libfbclient.dylib                   0x00000001080404bf _ZN3Why10Dispatcher8shutdownEPN8Firebird18CheckStatusWrapperEji + 1567
7   libfbclient.dylib                   0x0000000108034e82 fb_shutdown + 210
8   libfbclient.dylib                   0x00000001080bf122 _ZN8Firebird15InstanceControl11destructorsEv + 18
9   libfbclient.dylib                   0x00000001080bee06 _ZN12_GLOBAL__N_17CleanupD1Ev + 38
10  libsystem_c.dylib                   0x00007fff6aaed446 __cxa_finalize_ranges + 319
11  libsystem_c.dylib                   0x00007fff6aaed71c exit + 55
12  node                                0x00000001000285c7 _ZN4node11Environment4ExitEi + 55
13  node                                0x0000000100239c93 _ZN2v88internal25FunctionCallbackArguments4CallEPNS0_15CallHandlerInfoE + 563
14  node                                0x000000010023917e _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE + 494
15  node                                0x000000010023884a _ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE + 250
16  ???                                 0x000004b1bd85be3d 0x0 + 5161435381309
asfernandes commented 4 years ago

Not a single function of the driver in the trace. Do the problem happen in isql?

mreis1 commented 4 years ago

No. actually I just noticed that "libfbclient.dylib" is actually coming from a second firebird library. I'll close the issue since it doesn't concern this project.