Re: ebeast: electron + beast



   Hi!

On Wed, Feb 22, 2017 at 01:04:00AM +0100, Tim Janik wrote:
I've just pushed the 'ebeast' branch onto github.

[...]

It contains the start of an electron based Beast UI ('ebeast') plus Bse JS bindings.

Please give 'make run -C ebeast' a try and provide feedback. I've tried to set
things up to be used and built as easily as possible. The next step here is to
make use of electron-packager to implement 'make install -C ebeast'.

Ok, make app works, but make run hangs (nothing happens after this):

$ make run
make[1]: Verzeichnis „/home/stefan/src/2nd-tree/beast/ebeast/v8bse“ wird betreten
make[1]: „v8bse.node“ ist bereits aktuell.
make[1]: Verzeichnis „/home/stefan/src/2nd-tree/beast/ebeast/v8bse“ wird verlassen
LD_PRELOAD="/home/stefan/src/2nd-tree/beast/bse/.libs/libbse-0.so" \
./node_modules/electron/dist/electron .

Seems that there is a crash involved, as a core file appears in the ebeast dir

$ gdb ./node_modules/electron/dist/electron core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 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-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 ./node_modules/electron/dist/electron...(no debugging symbols found)...done.
[New LWP 20244]
[New LWP 20245]
[New LWP 20246]
[New LWP 20247]
[New LWP 20248]
[New LWP 20258]
[New LWP 20255]
[New LWP 20249]
[New LWP 20250]
[New LWP 20260]
[New LWP 20257]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/stefan/src/2nd-tree/beast/ebeast/node_modules/electron/dist/electron --ty'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  Rapicorn::parse_settings_and_args (vsettings=..., args=..., argv=<optimized out>, argcp=0x0) at 
rcore/main.cc:165

warning: Source file is more recent than executable.
165       const size_t argc = *argcp;
[Current thread is 1 (Thread 0x7fba5d1ffa80 (LWP 20244))]
(gdb) bt
#0  0x00007fba545491d9 in Rapicorn::parse_init_args(int*, char**, 
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, 
std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) 
(vsettings=..., args=..., argv=<optimized out>, argcp=0x0) at rcore/main.cc:165
#1  0x00007fba545491d9 in Rapicorn::parse_init_args(int*, char**, 
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, 
std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) 
(argcp=0x0, argv=<optimized out>, args=...) at rcore/main.cc:203
#2  0x00007fba5cdacf83 in sfi_init(int*, char**, std::vector<std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > > const&) () at sfiwrapper.cc:55
#3  0x00007fba5cc5ffa2 in initialize_with_argv() () at bsemain.cc:223
#4  0x00007fba5cc61464 in _bse_init_async(int*, char**, char const*, 
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, 
std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) () 
at bsemain.cc:271
#5  0x00007fba44be4001 in v8bse_register_module() () at ../nodemodule.cc:129
#6  0x00007fba5c24813c in node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&) ()
    at /home/stefan/src/2nd-tree/beast/ebeast/node_modules/electron/dist/libnode.so
#7  0x00007fba5baa0868 in v8::internal::FunctionCallbackArguments::Call(void 
(*)(v8::FunctionCallbackInfo<v8::Value> const&)) () at 
/home/stefan/src/2nd-tree/beast/ebeast/node_modules/electron/dist/libnode.so
#8  0x00007fba5bad7b91 in  () at /home/stefan/src/2nd-tree/beast/ebeast/node_modules/electron/dist/libnode.so
#9  0x00007fba5bafe60f in  () at /home/stefan/src/2nd-tree/beast/ebeast/node_modules/electron/dist/libnode.so
#10 0x000025e530506147 in  ()
#11 0x000025e530506081 in  ()
#12 0x00007ffe979776f0 in  ()
#13 0x0000000300000000 in  ()
#14 0x00007ffe979777d0 in  ()
#15 0x000025e530677313 in  ()
#16 0x00001dd1bd704399 in  ()
#17 0x0000347f2e31e2a1 in  ()
#18 0x000036e9d3622799 in  ()
#19 0x000036e9d3624d81 in  ()
#20 0x0000347f2e326579 in  ()
#21 0x00001dd1bd7c9bd9 in  ()
#22 0x00001dd1bd7043e1 in  ()
#23 0x00001dd1bd7043e1 in  ()
#24 0x00001dd1bd704399 in  ()
#25 0x00001dd1bd704399 in  ()
#26 0x00001dd1bd704279 in  ()
#27 0x000036e9d3622799 in  ()
#28 0x000036e9d3626881 in  ()
#29 0x00001dd1bd704399 in  ()
#30 0x00001dd1bd704399 in  ()
#31 0x0000000000000000 in  ()

Seems that argcp is a nullptr here,

(gdb) print argcp
$1 = (int *) 0x0

and should not be dereferenced.

   Cu... Stefan
-- 
Stefan Westerfeld, http://space.twc.de/~stefan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]