Skip to content

This project aim is to narrow down openssl issue on node v4.2.2

Notifications You must be signed in to change notification settings

diegosanchez/nodeIssue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Node issue. Indeed, not isn't.

Having built node v4.2.2 I get a segmentation fault.

The binary shasum is: 6ec12774e7b80f3bc391ed0ebdc6890d9660907f v4.2.2/bin/node.

Because of this I recompile de binary using the command ./configure --prefix=<path> --gdb --debug in order to perform a backtrace.

Bellow the backtrace:

coredumpctl gdb 20259
           PID: 20259 (node)
           UID: 1000 (diegos)
           GID: 1000 (diegos)
        Signal: 4 (ILL)
     Timestamp: Mon 2015-11-30 18:49:56 ART (1 day 20h ago)
  Command Line: node index
    Executable: /home/diegos/bin/node-4.2.2/bin/node
 Control Group: /user.slice/user-1000.slice/session-c4.scope
          Unit: session-c4.scope
         Slice: user-1000.slice
       Session: c4
     Owner UID: 1000 (diegos)
       Boot ID: 258848166ac845eaa4916bab77534870
    Machine ID: 85f0595d909245e7b2a1a41e3752b3e6
      Hostname: tao
      Coredump: /var/lib/systemd/coredump/core.node.1000.258848166ac845eaa4916bab77534870.20259.1448920196000000.lz4
       Message: Process 20259 (node) of user 1000 dumped core.

GNU gdb (GDB) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/diegos/bin/node-4.2.2/bin/node...bt
done.
[New LWP 20259]
[New LWP 20267]
[New LWP 20261]
[New LWP 20263]
[New LWP 20268]
[New LWP 20262]
[New LWP 20269]
[New LWP 20260]
[New LWP 20270]

warning: Could not load shared library symbols for 4 libraries, e.g. linux-vdso.so.1.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `node index'.
Program terminated with signal SIGILL, Illegal instruction.
#0  aesni_cbc_sha256_enc () at ../deps/openssl/asm/x64-elf-gas/aes/aesni-sha256-x86_64.s:29
29		ud2
[Current thread is 1 (Thread 0x7f1dda383740 (LWP 20259))]
(gdb) bt
#0  aesni_cbc_sha256_enc () at ../deps/openssl/asm/x64-elf-gas/aes/aesni-sha256-x86_64.s:29
#1  0x0000000000c8a259 in aesni_cbc_hmac_sha256_cipher (ctx=0x2a227c0, 
    out=0x2abe268 "\332\367\331\065\370h\210\366_g({\272\226>\231POST /agent_listener/invoke_raw_method?marshal_format=json&protocol_version=14&license_key=insertKeyHere&method=get_redirect_host HTTP/1.1\r\nHost: collector.newrelic.com\r\nUser-Agent: Ne"..., 
    in=0x2abe268 "\332\367\331\065\370h\210\366_g({\272\226>\231POST /agent_listener/invoke_raw_method?marshal_format=json&protocol_version=14&license_key=insertKeyHere&method=get_redirect_host HTTP/1.1\r\nHost: collector.newrelic.com\r\nUser-Agent: Ne"..., len=400) at ../deps/openssl/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c:506
#2  0x0000000000c92059 in EVP_Cipher (ctx=0x2a227c0, 
    out=0x2abe268 "\332\367\331\065\370h\210\366_g({\272\226>\231POST /agent_listener/invoke_raw_method?marshal_format=json&protocol_version=14&license_key=insertKeyHere&method=get_redirect_host HTTP/1.1\r\nHost: collector.newrelic.com\r\nUser-Agent: Ne"..., 
    in=0x2abe268 "\332\367\331\065\370h\210\366_g({\272\226>\231POST /agent_listener/invoke_raw_method?marshal_format=json&protocol_version=14&license_key=insertKeyHere&method=get_redirect_host HTTP/1.1\r\nHost: collector.newrelic.com\r\nUser-Agent: Ne"..., inl=400) at ../deps/openssl/openssl/crypto/evp/evp_lib.c:203
#3  0x0000000000beb5c1 in tls1_enc (s=0x294fac0, send=1) at ../deps/openssl/openssl/ssl/t1_enc.c:880
#4  0x0000000000bca693 in do_ssl3_write (s=0x294fac0, type=23, 
    buf=0x2b05d70 "POST /agent_listener/invoke_raw_method?marshal_format=json&protocol_version=14&license_key=insertKeyHere&method=get_redirect_host HTTP/1.1\r\nHost: collector.newrelic.com\r\nUser-Agent: NewRelic-NodeAgent"..., len=341, create_empty_fragment=0) at ../deps/openssl/openssl/ssl/s3_pkt.c:1042
#5  0x0000000000bca08d in ssl3_write_bytes (s=0x294fac0, type=23, buf_=0x2b05d70, len=341) at ../deps/openssl/openssl/ssl/s3_pkt.c:830
#6  0x0000000000bc88e1 in ssl3_write (s=0x294fac0, buf=0x2b05d70, len=341) at ../deps/openssl/openssl/ssl/s3_lib.c:4399
#7  0x0000000000bdf728 in SSL_write (s=0x294fac0, buf=0x2b05d70, num=341) at ../deps/openssl/openssl/ssl/ssl_lib.c:1046
#8  0x00000000015d8f47 in node::TLSWrap::ClearIn (this=0x28331a0) at ../src/tls_wrap.cc:467
#9  0x00000000015da611 in node::TLSWrap::Cycle (this=0x28331a0) at ../src/tls_wrap.h:100
#10 0x00000000015d993f in node::TLSWrap::DoRead (this=0x28331a0, nread=300, buf=0x7ffedb271570, pending=UV_UNKNOWN_HANDLE) at ../src/tls_wrap.cc:700
#11 0x00000000015d96d0 in node::TLSWrap::OnReadImpl (nread=300, buf=0x7ffedb271570, pending=UV_UNKNOWN_HANDLE, ctx=0x28331a0) at ../src/tls_wrap.cc:640
#12 0x000000000155f3fb in node::StreamResource::OnRead (this=0x294f6d0, nread=300, buf=0x7ffedb271570, pending=UV_UNKNOWN_HANDLE) at ../src/stream_base.h:160
#13 0x00000000015af24c in node::StreamWrap::OnReadCommon (handle=0x294f720, nread=300, buf=0x7ffedb271570, pending=UV_UNKNOWN_HANDLE) at ../src/stream_wrap.cc:250
#14 0x00000000015af2e4 in node::StreamWrap::OnRead (handle=0x294f720, nread=300, buf=0x7ffedb271570) at ../src/stream_wrap.cc:265
#15 0x0000000001619409 in uv__read (stream=0x294f720) at ../deps/uv/src/unix/stream.c:1178
#16 0x0000000001619695 in uv__stream_io (loop=0x1e925c0 <default_loop_struct>, w=0x294f7a8, events=1) at ../deps/uv/src/unix/stream.c:1241
#17 0x000000000161f169 in uv__io_poll (loop=0x1e925c0 <default_loop_struct>, timeout=0) at ../deps/uv/src/unix/linux-core.c:345
#18 0x000000000160c17b in uv_run (loop=0x1e925c0 <default_loop_struct>, mode=UV_RUN_ONCE) at ../deps/uv/src/unix/core.c:341
#19 0x000000000156bff0 in node::StartNodeInstance (arg=0x7ffedb2748c0) at ../src/node.cc:4045
#20 0x000000000156c2b4 in node::Start (argc=2, argv=0x27c5c20) at ../src/node.cc:4121
#21 0x000000000159a6c7 in main (argc=2, argv=0x7ffedb274a38) at ../src/node_main.cc:44
(gdb) 

SO Information

uname -a
Linux tao 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64 GNU/Linux

I don't want to overwhelm you with immaterial information so that I'm eager to supply requested information.

About

This project aim is to narrow down openssl issue on node v4.2.2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published