Date: Thu, 2 Aug 2012 18:05:03 GMT From: Marcin Cieslak <saper@saper.info> To: FreeBSD-gnats-submit@FreeBSD.org Cc: linpct@gmail.com Subject: ports/170339: www/node: segmentation violation in v8::internal::HandleScope::DeleteExtensions Message-ID: <201208021805.q72I530n027127@l.saper.info> Resent-Message-ID: <201208021810.q72IA88G087132@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 170339 >Category: ports >Synopsis: www/node: segmentation violation in v8::internal::HandleScope::DeleteExtensions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 02 18:10:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Marcin Cieslak >Release: FreeBSD 8.2-STABLE amd64 >Organization: saper.info >Environment: System: FreeBSD l.saper.info 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Dec 19 22:13:54 UTC 2011 root@l.saper.info:/usr/obj/usr/src/sys/IPSEC amd64 /usr/local/bin/node: libz.so.5 => /lib/libz.so.5 (0x800781000) librt.so.1 => /usr/lib/librt.so.1 (0x800895000) libssl.so.6 => /usr/lib/libssl.so.6 (0x80099a000) libcrypto.so.6 => /lib/libcrypto.so.6 (0x800aeb000) libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x800d82000) libkvm.so.5 => /lib/libkvm.so.5 (0x800e90000) libutil.so.8 => /lib/libutil.so.8 (0x800f99000) libv8.so => /usr/local/lib/libv8.so (0x8010a8000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x80159d000) libm.so.5 => /lib/libm.so.5 (0x8017a6000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x8018c6000) libthr.so.3 => /lib/libthr.so.3 (0x8019d3000) libc.so.7 => /lib/libc.so.7 (0x801aeb000) /usr/local/lib/libv8.so: libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x80087f000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x8010f5000) libm.so.5 => /lib/libm.so.5 (0x8012fe000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x80141e000) libthr.so.3 => /lib/libthr.so.3 (0x80152b000) libc.so.7 => /lib/libc.so.7 (0x800646000) drwxr-xr-x 2 root wheel 512 2 sie 16:54 /var/db/pkg/node-0.6.19 drwxr-xr-x 2 root wheel 512 2 sie 16:54 /var/db/pkg/v8-3.12.9 >Description: node dumps core at the end of every operation (which I think actually succeeds) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 801e041c0 (LWP 100400/initial thread)] 0x00000008011bd0f0 in v8::internal::HandleScope::DeleteExtensions () from /usr/local/lib/libv8.so (gdb) bt #0 0x00000008011bd0f0 in v8::internal::HandleScope::DeleteExtensions () from /usr/local/lib/libv8.so #1 0x00000000004293d0 in node::Start (argc=3, argv=0x7fffffffea10) at ../src/node.cc:2651 #2 0x00000000004212ff in main (argc=3, argv=0x7fffffffea10) at ../src/node_main.cc:65 >How-To-Repeat: $ more easy.js var s = function () { }; $ node easy.js Memory fault(coredump) When using node compiled with --debug (I installed it under /usr/local/bin/node_g), I get the following: $ gdb --args /usr/local/bin/node_g --debug easy.js GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... (gdb) run Starting program: /usr/local/bin/node_g --debug easy.js [New LWP 100494] [New Thread 801e041c0 (LWP 100494/initial thread)] [New Thread 801e0ae40 (LWP 100230/node_g)] [New Thread 801e0ac80 (LWP 100232/node_g)] debugger listening on port 5858 [Thread 801e0ae40 (LWP 100230/node_g) exited] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 801e041c0 (LWP 100494/initial thread)] 0x00000008011bd0f0 in v8::internal::HandleScope::DeleteExtensions () from /usr/local/lib/libv8.so (gdb) bt #0 0x00000008011bd0f0 in v8::internal::HandleScope::DeleteExtensions () from /usr/local/lib/libv8.so #1 0x00000000004293d0 in node::Start (argc=3, argv=0x7fffffffea10) at ../src/node.cc:2651 #2 0x00000000004212ff in main (argc=3, argv=0x7fffffffea10) at ../src/node_main.cc:65 (gdb) info thread 4 Thread 801e0ac80 (LWP 100232/node_g) 0x0000000801b9ff5c in accept () from /lib/libc.so.7 * 2 Thread 801e041c0 (LWP 100494/initial thread) 0x00000008011bd0f0 in v8::internal::HandleScope::DeleteExtensions () from /usr/local/lib/libv8.so (gdb) This is almost certainly an upstream problem (searching the web brings up some hits), but I wonder why it appears every time node.js is run on my FreeBSD/amd64. Might be a v8 bug as well. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208021805.q72I530n027127>