On Fri, Mar 3, 2017 at 10:32 AM, sven falempin <sven.falem...@gmail.com> wrote:
> xterm.js is a modern implementation for tty in browser. > > https://github.com/tsl0922/ttyd provides a backend in c to use with > xterm.js. > > A few patches are needed for openbsd compilation (thus i am not sure why > cmake > is used if putting c99 is such a hassle ) > > I wanted to make a real complete package and <yarn> the html <source> file > and encountered a few iccups : > bison is not compiling ( ports tree at -rOPENBSD_6_0) > node is required to run the yarn thingy and it requires bison > to build. > > I just pkg_add node to workaround. > > But running node just do not work, the device is 6.0 GENERIC#2148 amd64 > # pkg_info | grep node > node-4.4.5 V8 JavaScript for clients and servers > > # npm install yarn > Abort trap (core dumped) > > The attached package is working ( compilation ) and maybe the yarn > packaging > would not pass the review before integration. > > Another way would be to yarn this somewhere else and put the result > file in ./pkg > along with a rcscript , the package would be build without node and > without the > npm package. > > Please advice. > > Cheers. > > > About the core : Core was generated by `node'. Program terminated with signal SIGABRT, Aborted. #0 0x00000a6a9b7af17a in _thread_sys___syscall () at <stdin>:2 2 <stdin>: No such file or directory. [Current thread is 1 (process 87071)] (gdb) bt #0 0x00000a6a9b7af17a in _thread_sys___syscall () at <stdin>:2 #1 0x00000a6a9b7e688a in *_libc_mmap (addr=0x39804a722000, len=4096, prot=-1686441606, flags=4098, fd=-1, offset=<optimized out>) at /usr/src/lib/libc/sys/mmap.c:47 #2 0x00000a67d6746271 in v8::base::OS::Allocate(unsigned long, unsigned long*, bool) () #3 0x00000a67d65905c5 in v8::internal::CreateSqrtFunction() () #4 0x00000a67d62d8779 in v8::internal::init_fast_sqrt_function() () #5 0x00000a67d6563134 in v8::internal::V8::InitializeOncePerProcessImpl() () #6 0x00000a67d6745240 in v8::base::CallOnceImpl(long*, void (*)(void*), void*) () #7 0x00000a67d65631a6 in v8::internal::V8::Initialize() () #8 0x00000a67d627f799 in v8::V8::Initialize() () #9 0x00000a67d61efb0e in node::Start(int, char**) () #10 0x00000a67d61ce8e2 in _start () (gdb) info frame [26/1213] Stack level 8, frame at 0x7f7ffffeff20: rip = 0xa67d627f799 in v8::V8::Initialize(); saved rip = 0xa67d61efb0e called by frame at 0x7f7fffff0080, caller of frame at 0x7f7ffffeff10 Arglist at 0x7f7ffffeff10, args: Locals at 0x7f7ffffeff10, Previous frame's sp is 0x7f7ffffeff20 Saved registers: rbp at 0x7f7ffffeff10, rip at 0x7f7ffffeff18 (gdb) f 3 #3 0x00000a67d65905c5 in v8::internal::CreateSqrtFunction() () (gdb) info frame Stack level 3, frame at 0x7f7ffffefeb0: rip = 0xa67d65905c5 in v8::internal::CreateSqrtFunction(); saved rip = 0xa67d62d8779 called by frame at 0x7f7ffffefec0, caller of frame at 0x7f7ffffefd50 Arglist at 0x7f7ffffefd50, args: Locals at 0x7f7ffffefd50, Previous frame's sp is 0x7f7ffffefeb0 Saved registers: rbx at 0x7f7ffffefe80, rbp at 0x7f7ffffefea0, r12 at 0x7f7ffffefe88, r13 at 0x7f7ffffefe90, r14 at 0x7f7ffffefe98, rip at 0x7f7ffffefea8 the core file is here : http://filebin.ca/3EIqXoO4mmAm/node.core