Giter VIP home page Giter VIP logo

strusbindings's People

Contributors

andreasbaumann avatar dw avatar patrickfrey avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

strusbindings's Issues

SLE_11_SP4 php53-devel required

php53-devel needed, not php-devel, but this requires detection of service
pack level of SLE which is not possible on OBS.
php53 is too old anyway, so ignoring php on SLE_11_SP2

php packages on Centos 6 are too old

php 5.3 is EOL. We could build against a webtatic php56 or similar. For now we ignore
PHP build for Centos 5 and Centos 6 (same applies to RHEL5/6 and SCiLi 5.6)

Building fails

Tried on Archlinux, 64-bit:

git clone --recursive [email protected]:andreasbaumann/strusAll.git
cd strusAll
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_PYTHON=YES -DWITH_PHP=YES -DWITH_STRUS_VECTOR=YES -DWITH_STRUS_PATTERN=YES -DLIB_INSTALL_DIR=lib ..
make

results in:

[ 89%] Building C object strusBindings/3rdParty/papuga/php7/CMakeFiles/papuga_php7_dev.dir/libpapuga_php7_dev.c.o
/home/abaumann/strusAll/strusBindings/3rdParty/papuga/php7/libpapuga_php7_dev.c: In function 'serializeValue':
/home/abaumann/strusAll/strusBindings/3rdParty/papuga/php7/libpapuga_php7_dev.c:342:8: error: 'IS_CONSTANT' undeclared (first use in this function); did you mean 'RT_CONSTANT'?
   case IS_CONSTANT:
        ^~~~~~~~~~~
        RT_CONSTANT
compilation terminated due to -Wfatal-errors.

Build fails on Archlinux due to missing zend_config.nw.h header file

php version on Archlinux is 7.4.0.

[ 82%] Building C object strusBindings/3rdParty/papuga/php7/CMakeFiles/papuga_php7_dev.dir/libpapuga_php7_dev.c.o
strusAll/strusBindings/3rdParty/papuga/php7/libpapuga_php7_dev.c:29:10: fatal error: zend_config.nw.h: No such file or directory
   29 | #include <zend_config.nw.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [strusBindings/3rdParty/papuga/php7/CMakeFiles/papuga_php7_dev.dir/build.make:63: strusBindings/3rdParty/papuga/php7/CMakeFiles/papuga_php7_dev.dir/libpapuga_php7_dev.c.o] Error 1

config.nw.h is either a Debian/Ubuntu only thing or it is a php 5 thing and got dropped with php 7.

I'm not sure what zend_portability.h is doing, but it looks it is part of a portability layer doing
the correct includes.

Chaging zend_config.nw.h manually to zend_config.h made my build succeed, all tests passed.

OSX binding tests fail

Test project /Users/administrator/strus/strusBindings
      Start  1: java_HelloWorld
 1/20 Test  #1: java_HelloWorld ...................   Passed    3.24 sec
      Start  2: java_CreateCollection
 2/20 Test  #2: java_CreateCollection .............   Passed    1.72 sec
      Start  3: java_CreateCollectionNoAnalyzer
 3/20 Test  #3: java_CreateCollectionNoAnalyzer ...   Passed    0.32 sec
      Start  4: java_Status
 4/20 Test  #4: java_Status .......................   Passed    0.34 sec
      Start  5: java_QueryNoAnalyzer
 5/20 Test  #5: java_QueryNoAnalyzer ..............   Passed    0.45 sec
      Start  6: java_QueryWithAnalyzer
 6/20 Test  #6: java_QueryWithAnalyzer ............   Passed    0.34 sec
      Start  7: java_QueryWithAnalyzer_trace
 7/20 Test  #7: java_QueryWithAnalyzer_trace ......   Passed    0.36 sec
      Start  8: php_helloWorld
 8/20 Test  #8: php_helloWorld ....................   Passed    0.90 sec
      Start  9: php_createCollection
 9/20 Test  #9: php_createCollection ..............***Exception: SegFault  2.86 sec
      Start 10: php_query
10/20 Test #10: php_query .........................***Exception: SegFault  0.52 sec
      Start 11: php_query_trace
11/20 Test #11: php_query_trace ...................***Exception: SegFault  0.38 sec
      Start 12: php_queryexpr
12/20 Test #12: php_queryexpr .....................***Exception: SegFault  0.40 sec
      Start 13: php_status
13/20 Test #13: php_status ........................***Exception: SegFault  0.48 sec
      Start 14: python_helloWorld
14/20 Test #14: python_helloWorld .................   Passed    0.58 sec
      Start 15: python_createCollection
15/20 Test #15: python_createCollection ...........***Failed    0.18 sec
      Start 16: python_query
16/20 Test #16: python_query ......................***Failed    0.07 sec
      Start 17: python_query_trace
17/20 Test #17: python_query_trace ................***Failed    0.07 sec
      Start 18: python_queryexpr
18/20 Test #18: python_queryexpr ..................***Failed    0.11 sec
      Start 19: python_status
19/20 Test #19: python_status .....................***Failed    0.07 sec
      Start 20: QueryCpp
20/20 Test #20: QueryCpp ..........................   Passed    0.16 sec

This happens in both Branches master and out-of-source-build, whether building in the source directory directly or in a separate build directory.

Segmentation fault by strussBindings

I was trying to run following code:

import strus

ctx = strus.Context(None)
config = {
    'path': 'instance/',
    'cache': '512M',
    'statsproc': 'default'
}
if ctx.storageExists(config):
    ctx.destroyStorage(config)

ctx.createStorage(config)
storage = ctx.createStorageClient(config)

transaction = storage.createTransaction()

transaction.insertDocument('doc1', 'Text of doc1.')

transaction.commit()
storage.close()

I was expecting to get an error saying that transaction.insertDocument needs a variable with type "data": Instead i got following error:

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Here is the git log from folder strusBindings:

commit 2006cc9969a14f1a5cd514f5870ffe5f5b0a5a0d (HEAD -> master, origin/master, origin/HEAD)
Author: patrickfrey <[email protected]>
Date:   Fri Jul 13 01:21:56 2018 +0200

And here the is the Bug-report:

warning: Loadable section ".note.gnu.property" outside of ELF segments

warning: Loadable section ".note.gnu.property" outside of ELF segments
Core was generated by `/usr/bin/python3.6 /home/meyer/PycharmProjects/dummys/strus_test.py'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f9e45dd6306 in __strlen_sse2 () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install python3-3.6.6-1.fc28.x86_64
(gdb) bt
#0  0x00007f9e45dd6306 in __strlen_sse2 () from /lib64/libc.so.6
#1  0x00007f9e45d8f877 in vfprintf () from /lib64/libc.so.6
#2  0x00007f9e45db6c80 in vsnprintf () from /lib64/libc.so.6
#3  0x00007f9e35dd8e92 in strus::runtime_error(char const*, ...) ()
   from /usr/local/lib/strus/libstrus_storage.so.0.16
#4  0x00007f9e35dcca2d in strus::MetaDataRestriction::addCondition(strus::MetaDataRestrictionInterface::CompareOperator const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, strus::NumericVariant const&, bool) ()
   from /usr/local/lib/strus/libstrus_storage.so.0.16
#5  0x00007f9e383dad53 in strus::bindings::StorageTransactionImpl::insertDocument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, papuga_ValueVariant const&)
    () from /usr/local/lib/strus/libstrus_bindings.so.0.16
#6  0x00007f9e383e9d7c in strus_bindings_method_StorageTransaction__insertDocument ()
   from /usr/local/lib/strus/libstrus_bindings.so.0.16
#7  0x00007f9e39093b44 in StorageTransaction__insertDocument (selfobj=<optimized out>, 
    args=<optimized out>) at /home/meyer/Strus/strusBindings/src/lang/python3/strus.c:2036
#8  0x00007f9e46c2aac3 in _PyCFunction_FastCallDict () from /lib64/libpython3.6m.so.1.0
#9  0x00007f9e46c39bdd in call_function () from /lib64/libpython3.6m.so.1.0
#10 0x00007f9e46c6a12a in _PyEval_EvalFrameDefault () from /lib64/libpython3.6m.so.1.0
#11 0x00007f9e46c3c058 in PyEval_EvalCodeEx () from /lib64/libpython3.6m.so.1.0
#12 0x00007f9e46c3cf0b in PyEval_EvalCode () from /lib64/libpython3.6m.so.1.0
#13 0x00007f9e46cd67f2 in run_mod () from /lib64/libpython3.6m.so.1.0
#14 0x00007f9e46cd83ca in PyRun_FileExFlags () from /lib64/libpython3.6m.so.1.0
#15 0x00007f9e46cd9128 in PyRun_SimpleFileExFlags () from /lib64/libpython3.6m.so.1.0
#16 0x00007f9e46cda1fe in Py_Main () from /lib64/libpython3.6m.so.1.0
#17 0x000055f08542dca8 in main ()

fix auto-loading of JNI code

In a Tomcat you would maybe load the strus-impl.jar once by putting it into
the server's library directory tomcat/lib. WAR-files link only against the strus-api.jar.
In strus-impl.jar we must make sure to load the native library once.

python bindings throw a warning

This is a problem upstream in boost python:

                                                                        ^
In file included from /usr/include/boost/type_traits/ice.hpp:18:0,
                 from /usr/include/boost/python/detail/def_helper.hpp:9,
                 from /usr/include/boost/python/class.hpp:29,
                 from /usr/include/boost/python.hpp:18,
                 from /home/abaumann/strusBindings/lang/python/strusPythonModule.cpp:10:
/usr/include/boost/type_traits/detail/ice_eq.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_eq.hpp) is deprecated
 # pragma message("NOTE: Use of this header (ice_eq.hpp) is deprecated")

Do python bindings support Unicode?

curl -X POST --data-binary @content_bildungsgeschichte.xml localhost:80/insert
+--header "Content-Type:text/xml; charset=UTF-8"
ERROR:tornado.application:Uncaught exception POST /insert (::1)
HTTPRequest(protocol='http', host='localhost', method='POST', uri='/insert', version='HTTP/1.1',
+remote_ip='::1', headers={'Content-Length': '546784', 'Expect': '100-continue', 'Content-Type': 'text/xml;
+charset=UTF-8', 'Host': 'localhost', 'Accept': '*/*', 'User-Agent': 'curl/7.35.0'})
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 1141, in _when_complete
    callback()
  File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 1162, in _execute_method
    self._when_complete(method(*self.path_args, **self.path_kwargs),
  File "src/step8/strusServer.py", line 19, in post
    nofDocuments = backend.insertDocuments( content)
  File "/home/strus/src/step8/strusIR.py", line 124, in insertDocuments
    docqueue.push( content)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 176: ordinal not in range(128)
<html><title>500: Internal Server Error</title><body>500: Internal Server
+Error</body></html>ERROR:tornado.access:500 POST /insert (::1) 94.12ms

The version is 2.7.6 (the version used in the docker images of the tutorial).

Split Java code into separate libraries

  • one would be strus-api.jar for the interface classes only (they must not contain
    any reference to SWIG objects or native code)
  • one would be strus-impl.jar for the implementation actually using SWIG wrapper
    classes

the INSTALL documentation is completely outdated for Linux

This also applies to other the other projects, I think.
INSTALL.OSX, INSTALL.FreeBSD, INSTALL.OpenBSD seem to be more precise on how to install the
software.
Especially on Linux we have to be precise for each distribution, what the prerequisites are.

There is redundancy to the documentation on the webpage too..

Java bindings on OBS mostly fail

This is mainly due to probing the correct Java JDK version and probing various
aspects of Java (JNI, MAWT, etc). This needs some work. This also doesn't mean
the Java Bindings are generally broken, they are just broken in the OBS builds.

Compiling with -std=c++11 fails

cd /root/strusAll/build/strusBindings/lang/java && /usr/bin/c++   -Dstrus_java_EXPORTS -I/root/strusAll/strusBindings/include -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -I/root/strusAll/leveldb/include  -std=c++11 -Wall -pedantic -g -Wfatal-errors -fvisibility=hidden -fPIC -O3 -pthread -DHAS_CXX11_STD_CHRONO -pthread -fno-strict-aliasing -O2 -DNDEBUG -fPIC   -o CMakeFiles/strus_java.dir/strus_wrap.cxx.o -c /root/strusAll/build/strusBindings/lang/java/strus_wrap.cxx
/root/strusAll/build/strusBindings/lang/java/strus_wrap.cxx: In function ‘void* operator new(size_t)’:
/root/strusAll/build/strusBindings/lang/java/strus_wrap.cxx:936:51: error: declaration of ‘void* operator new(size_t) throw (std::bad_alloc)’ has a different exception specifier
 void * operator new(size_t t) throw(std::bad_alloc) {

If the signature of new indeed dropped the throwable exception, then Swig generates
pre C++11 code. I fail to see a switch on Swig where one could choose the dialect of
C++ to use.

No Python bindings on OBS for Centos 6

python is 2.6, EPEL is python27 but this would require the strusboost shim to be compiled
against it. Too much effort, support for Python bindings on Centos 6 dropped.

Java bindings on FreeBSD segfault

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000008021d33b3, pid=12399, tid=34384930816
#
# JRE version: OpenJDK Runtime Environment (7.0) (build 1.7.0_95-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.95-b01 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x5d33b3]  JNI_GetCreatedJavaVMs+0x1f7c3
#
# Core dump written. Default location: /cores/core or core.12399
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x0000000803021000):  JavaThread "main" [_thread_in_vm, id=25192448, stack(0x00007fffffafe000,0x00007fffffbfe000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x000000000000726f

Registers:
RAX=0x0000000814aa90d8, RBX=0x0000000803316ca0, RCX=0x0000000803051008, RDX=0x0000000000000000
RSP=0x00007fffffbfd0b0, RBP=0x00007fffffbfd0b0, RSI=0x000000000000726f, RDI=0x000000000000726f
R8 =0x0000000000000000, R9 =0x0000000000000000, R10=0xfffffe003d3a7108, R11=0x0000000000000246
R12=0x00000008028e44b0, R13=0x00000008028e6900, R14=0x000000000000726f, R15=0x0000000803021000
RIP=0x00000008021d33b3, EFLAGS=0x0000000000000001, ERR=0x0000000000000006
  TRAPNO=0x000000000000000c

Top of Stack: (sp=0x00007fffffbfd0b0)
0x00007fffffbfd0b0:   00007fffffbfd0f0 0000000802193662
0x00007fffffbfd0c0:   00000008021935a0 0000000803316ca0
0x00007fffffbfd0d0:   0000000000000000 00007fffffbfd191
0x00007fffffbfd0e0:   0000000803316c90 00000008030211d8
0x00007fffffbfd0f0:   00007fffffbfd120 000000081b41c0d8
0x00007fffffbfd100:   00007fffffbfd300 00007fffffbfd300
0x00007fffffbfd110:   00007fffffbfd1c0 00000008030be7b0
0x00007fffffbfd120:   00007fffffbfd270 0000000820cbf960
0x00007fffffbfd130:   0000000820cbf6c0 0000000820c90000
0x00007fffffbfd140:   0000000000001ab8 0000000803316c50
0x00007fffffbfd150:   00007fffffbfd300 00000008030be590
0x00007fffffbfd160:   0000000803316ca0 000000000000001c
0x00007fffffbfd170:   0000000000000031 000000000000001c
0x00007fffffbfd180:   0000000803316ca0 00007fffffbfd200
0x00007fffffbfd190:   00000008030be590 00000008031dfd10
0x00007fffffbfd1a0:   0000000000001ab8 00000008008275b0
0x00007fffffbfd1b0:   0000000820cd3891 000000000000001a
0x00007fffffbfd1c0:   0000000000000021 000000000000001a
0x00007fffffbfd1d0:   0000000803316c80 0000000000000000
0x00007fffffbfd1e0:   0000000000000000 0000000000000000
0x00007fffffbfd1f0:   0000000000000000 00007f0000000001
0x00007fffffbfd200:   0000000000000000 0000000000000000
0x00007fffffbfd210:   0000000000000000 00007fffffbfd220
0x00007fffffbfd220:   0000000000000000 0000000000000000
0x00007fffffbfd230:   0000000000000000 0000000000000000
0x00007fffffbfd240:   0000000000000000 00000008030be5f8
0x00007fffffbfd250:   00000008030be590 00000008031dfd10
0x00007fffffbfd260:   0000000803316c50 00007fffffbfd4b0
0x00007fffffbfd270:   00007fffffbfd460 0000000820cbf007
0x00007fffffbfd280:   00007fffffbfd3c0 00000008030be3c0
0x00007fffffbfd290:   00007fffffbfd480 0000000800816400
0x00007fffffbfd2a0:   00007fffffbfd340 0000000800610bbb 

Instructions: (pc=0x00000008021d33b3)
0x00000008021d3393:   66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89
0x00000008021d33a3:   e5 48 85 ff 74 0d 48 8b 05 60 36 6e 00 48 8b 00
0x00000008021d33b3:   48 89 07 5d c3 0f 1f 84 00 00 00 00 00 55 48 89
0x00000008021d33c3:   e5 48 85 ff 74 0d 48 8b 05 40 36 6e 00 48 8b 00 

Register to memory mapping:

RAX=0x0000000814aa90d8 is an oop
java.lang.Object 
 - klass: 'java/lang/Object'
RBX=0x0000000803316ca0 is an unknown value
RCX=0x0000000803051008 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x00007fffffbfd0b0 is pointing into the stack for thread: 0x0000000803021000
RBP=0x00007fffffbfd0b0 is pointing into the stack for thread: 0x0000000803021000
RSI=0x000000000000726f is an unknown value
RDI=0x000000000000726f is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000000000000 is an unknown value
R10=0xfffffe003d3a7108 is an unknown value
R11=0x0000000000000246 is an unknown value
R12=0x00000008028e44b0: _ZN9Arguments17SharedArchivePathE+0xa6f0 in /usr/local/openjdk7/jre/lib/amd64/server/libjvm.so at 0x0000000801c00000
R13=0x00000008028e6900: _ZN9Arguments17SharedArchivePathE+0xcb40 in /usr/local/openjdk7/jre/lib/amd64/server/libjvm.so at 0x0000000801c00000
R14=0x000000000000726f is an unknown value
R15=0x0000000803021000 is a thread


Stack: [0x00007fffffafe000,0x00007fffffbfe000],  sp=0x00007fffffbfd0b0,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x5d33b3]  JNI_GetCreatedJavaVMs+0x1f7c3
V  [libjvm.so+0x593662]  AsyncGetCallTrace+0xcc0d2
C  [libstrus_java.so.0.7.1+0x1c0d8]  operator delete(void*)+0x38
C  [libleveldb.so.1+0x2f960]  leveldb::VersionSet::WriteSnapshot(leveldb::log::Writer*)+0x2a0
C  [libleveldb.so.1+0x2f007]  leveldb::VersionSet::LogAndApply(leveldb::VersionEdit*, leveldb::port::Mutex*)+0x437
C  [libleveldb.so.1+0x1ecd3]  leveldb::DB::Open(leveldb::Options const&, std::__1::basic_string<char, leveldb::Options const&::char_traits<char>, leveldb::Options const&::allocator<char> > const&, leveldb::DB**)+0x193
C  [libstrus_database_leveldb.so.0.7+0x62a7]  _init+0x212f
C  [libstrus_database_leveldb.so.0.7+0x668f]  _init+0x2517
C  [libstrus_database_leveldb.so.0.7+0x49ad]  _init+0x835
C  [libstrus_module.so.0.7+0x6637]  strus::StorageModule::StorageModule(strus::PostingIteratorJoinConstructor const*, strus::WeightingFunctionConstructor const*, strus::SummarizerFunctionConstructor const*)+0x1cf7
C  [libstrus_java.so.0.7.1+0x6421c]  StorageClient::StorageClient(Reference const&, Reference const, std::__1::basic_string<char, Reference const&::char_traits<char>, Reference const&::allocator<char> > const&)+0x7c
C  [libstrus_java.so.0.7.1+0x6a7e8]  Context::createStorageClient(std::__1::basic_string<char, Context::createStorageClient::char_traits<char>, Context::createStorageClient::allocator<char> > const&)+0x38
C  [libstrus_java.so.0.7.1+0x4ee38]  Java_net_strus_api_strusJNI_Context_1createStorageClient_1_1SWIG_11+0x148
j  net.strus.api.strusJNI.Context_createStorageClient__SWIG_1(JLnet/strus/api/Context;Ljava/lang/String;)J+0
j  net.strus.api.Context.createStorageClient(Ljava/lang/String;)Lnet/strus/api/StorageClient;+10
j  net.strus.example.Status.main([Ljava/lang/String;)V+13
v  ~StubRoutines::call_stub
V  [libjvm.so+0x583f13]  AsyncGetCallTrace+0xbc983
V  [libjvm.so+0x583398]  AsyncGetCallTrace+0xbbe08
V  [libjvm.so+0x5a08d6]  AsyncGetCallTrace+0xd9346
V  [libjvm.so+0x5a5439]  AsyncGetCallTrace+0xddea9
C  [java+0x55eb]  JavaMain+0x9bb
C  [libthr.so.3+0x94f5]  operator->+0x725

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  net.strus.api.strusJNI.Context_createStorageClient__SWIG_1(JLnet/strus/api/Context;Ljava/lang/String;)J+0
j  net.strus.api.Context.createStorageClient(Ljava/lang/String;)Lnet/strus/api/StorageClient;+10
j  net.strus.example.Status.main([Ljava/lang/String;)V+13
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0000000803026800 JavaThread "Service Thread" daemon [_thread_blocked, id=50622464, stack(0x00007fffff3f7000,0x00007fffff4f7000)]
  0x0000000803025800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=50619392, stack(0x00007fffff4f8000,0x00007fffff5f8000)]
  0x0000000803025000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=50616320, stack(0x00007fffff5f9000,0x00007fffff6f9000)]
  0x0000000803024000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=50613248, stack(0x00007fffff6fa000,0x00007fffff7fa000)]
  0x0000000803023800 JavaThread "Finalizer" daemon [_thread_blocked, id=50609152, stack(0x00007fffff7fb000,0x00007fffff8fb000)]
  0x0000000803022800 JavaThread "Reference Handler" daemon [_thread_blocked, id=50606080, stack(0x00007fffff8fc000,0x00007fffff9fc000)]
=>0x0000000803021000 JavaThread "main" [_thread_in_vm, id=25192448, stack(0x00007fffffafe000,0x00007fffffbfe000)]

Other Threads:
  0x000000080325f800 VMThread [stack: 0x00007fffff9fd000,0x00007fffffafd000] [id=50603008]
  0x0000000803260000 WatcherThread [stack: 0x00007fffff2f6000,0x00007fffff3f6000] [id=50624512]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 4224K, used 546K [0x0000000806e00000, 0x0000000807290000, 0x000000080b750000)
  eden space 3776K,  14% used [0x0000000806e00000, 0x0000000806e88b08, 0x00000008071b0000)
  from space 448K,   0% used [0x00000008071b0000, 0x00000008071b0000, 0x0000000807220000)
  to   space 448K,   0% used [0x0000000807220000, 0x0000000807220000, 0x0000000807290000)
 tenured generation   total 9408K, used 0K [0x000000080b750000, 0x000000080c080000, 0x0000000814a00000)
   the space 9408K,   0% used [0x000000080b750000, 0x000000080b750000, 0x000000080b750200, 0x000000080c080000)
 compacting perm gen  total 21248K, used 2560K [0x0000000814a00000, 0x0000000815ec0000, 0x0000000819c00000)
   the space 21248K,  12% used [0x0000000814a00000, 0x0000000814c80280, 0x0000000814c80400, 0x0000000815ec0000)
No shared spaces configured.

Card table byte_map: [0x0000000800722000,0x00000008007ba000] byte_map_base: 0x00000007fc6eb000

Polling page: 0x0000000800659000

Code Cache  [0x0000000803a3f000, 0x0000000803caf000, 0x0000000806a3f000)
 total_blobs=191 nmethods=0 adapters=161 free_code_cache=48760Kb largest_free_block=49931136

Compilation events (0 events):
No events

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (5 events):
Event: 0.050 Thread 0x0000000803021000 Threw 0x0000000806e0f0a0 at /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims/jni.cpp:3991
Event: 0.104 Thread 0x0000000803021000 Threw 0x0000000806e58308 at /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1319
Event: 0.112 Thread 0x0000000803021000 Threw 0x0000000806e5dbf0 at /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1319
Event: 0.138 Thread 0x0000000803021000 Threw 0x0000000806e61b50 at /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1319
Event: 0.141 Thread 0x0000000803021000 Threw 0x0000000806e701e0 at /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1319

Events (10 events):
Event: 0.112 loading class 0x000000080311c0b0
Event: 0.112 loading class 0x000000080311c0b0 done
Event: 0.112 loading class 0x0000000803289740
Event: 0.112 loading class 0x0000000803289740 done
Event: 0.113 loading class 0x000000080311cc20
Event: 0.114 loading class 0x000000080311cc20 done
Event: 0.137 loading class 0x000000080327fd90
Event: 0.137 loading class 0x000000080327fd90 done
Event: 0.141 loading class 0x000000080327fac0
Event: 0.141 loading class 0x000000080327fac0 done


Dynamic libraries:
0x0000000000400000  /usr/local/openjdk7//bin/java
0x0000000800829000  /lib/libz.so.6
0x0000000800a3f000  /lib/libthr.so.3
0x0000000800c64000  /lib/libc.so.7
0x0000000801c00000  /usr/local/openjdk7/jre/lib/amd64/server/libjvm.so
0x000000080100d000  /lib/libm.so.5
0x000000080290a000  /usr/lib/libc++.so.1
0x0000000802bca000  /lib/libcxxrt.so.1
0x0000000802de6000  /lib/libgcc_s.so.1
0x0000000803400000  /usr/local/openjdk7/jre/lib/amd64/libverify.so
0x000000080360f000  /usr/local/openjdk7/jre/lib/amd64/libjava.so
0x0000000803837000  /usr/local/openjdk7/jre/lib/amd64/libzip.so
0x000000081b400000  /usr/home/abaumann/strusBindings/lang/java/libstrus_java.so.0.7.1
0x000000081b698000  /usr/local/openjdk7/jre/lib/amd64/libjawt.so
0x000000081b899000  /usr/local/openjdk7/jre/lib/amd64/xawt/libmawt.so
0x000000081baf5000  /usr/local/lib/strus/libstrus_module.so.0.7
0x000000081bd06000  /usr/local/lib/strus/libstrus_rpc_client.so.0.7
0x000000081bf6a000  /usr/local/lib/strus/libstrus_rpc_client_socket.so.0.7
0x000000081c18b000  /usr/local/lib/strus/libstrus_utils.so.0.7
0x000000081c39a000  /usr/local/lib/strus/libstrus_error.so.0.7
0x000000081c5a2000  /usr/local/openjdk7/jre/lib/amd64/libawt.so
0x000000081c86d000  /usr/local/lib/libXext.so.6
0x000000081ca7e000  /usr/local/lib/libX11.so.6
0x000000081cdb7000  /usr/local/lib/libXrender.so.1
0x000000081cfc0000  /usr/local/lib/libXtst.so.6
0x000000081d1c5000  /usr/local/lib/libXi.so.6
0x000000081d3d3000  /usr/local/lib/strus/libstrus_analyzer.so.0.7
0x000000081d5ec000  /usr/local/lib/strus/libstrus_segmenter_textwolf.so.0.7
0x000000081d829000  /usr/local/lib/strus/libstrus_textproc.so.0.7
0x000000081da3d000  /usr/local/lib/strus/libstrus_queryeval.so.0.7
0x000000081dc5a000  /usr/local/lib/strus/libstrus_queryproc.so.0.7
0x000000081deb7000  /usr/local/lib/strus/libstrus_statsproc.so.0.7
0x000000081e0c6000  /usr/local/lib/strus/libstrus_storage.so.0.7
0x000000081e333000  /usr/local/lib/strus/libstrus_database_leveldb.so.0.7
0x000000081e546000  /usr/local/lib/libintl.so.8
0x000000081e751000  /usr/lib/librt.so.1
0x000000081e957000  /usr/local/lib/libboost_thread.so.1.55.0
0x000000081eb72000  /usr/local/lib/libboost_system.so.1.55.0
0x000000081ed75000  /usr/local/lib/libboost_date_time.so.1.55.0
0x000000081ef83000  /usr/local/lib/libboost_atomic.so.1.55.0
0x000000081f185000  /usr/local/lib/libboost_chrono.so.1.55.0
0x000000081f38d000  /usr/local/lib/libxcb.so.1
0x000000081f5ac000  /usr/lib/librpcsvc.so.5
0x000000081f7b5000  /usr/local/lib/strus/libstrus_detector_std.so.0.7
0x000000081f9b8000  /usr/local/lib/strus/libstrus_normalizer_snowball.so.0.7
0x000000081fbc2000  /usr/local/lib/strus/libstrus_stemmer.so.0.7
0x000000081fe14000  /usr/local/lib/strus/libstrus_normalizer_dictmap.so.0.7
0x0000000820023000  /usr/local/lib/strus/libstrus_normalizer_charconv.so.0.7
0x0000000820231000  /usr/local/lib/strus/libstrus_normalizer_dateconv.so.0.7
0x0000000820455000  /usr/local/lib/strus/libstrus_tokenizer_punctuation.so.0.7
0x000000082066b000  /usr/local/lib/strus/libstrus_tokenizer_word.so.0.7
0x000000082086f000  /usr/local/lib/strus/libstrus_aggregator_vsm.so.0.7
0x0000000820a79000  /usr/local/lib/strus/libstrus_scalarfunc.so.0.7
0x0000000820c90000  /usr/local/lib/libleveldb.so.1
0x0000000820ee3000  /usr/local/lib/libXau.so.6
0x00000008210e5000  /usr/local/lib/libpthread-stubs.so.0
0x00000008212e6000  /usr/local/lib/libXdmcp.so.6
0x000000080060c000  /libexec/ld-elf.so.1

VM Arguments:
java_command: net.strus.example.Status
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/local/openjdk7/
PATH=/opt/maven/bin:/opt/hadoop/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/KDE/bin:/opt/bin
LD_LIBRARY_PATH=/home/abaumann/strusBindings/lang/java
SHELL=/bin/tcsh
HOSTTYPE=FreeBSD
OSTYPE=FreeBSD
MACHTYPE=x86_64

Signal Handlers:
SIGSEGV: [libjvm.so+0x894ab0], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGBUS: [libjvm.so+0x894ab0], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGFPE: [libjvm.so+0x74da90], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGPIPE: [libjvm.so+0x74da90], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGXFSZ: [libjvm.so+0x74da90], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGILL: [libjvm.so+0x74da90], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x74e3f0], sa_mask[0]=0x00000000, sa_flags=0x00000042
SIGHUP: [libjvm.so+0x74c130], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGINT: [libjvm.so+0x74c130], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGTERM: [libjvm.so+0x74c130], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGQUIT: [libjvm.so+0x74c130], sa_mask[0]=0x7fffffff, sa_flags=0x00000042


---------------  S Y S T E M  ---------------

OS:BSDuname:FreeBSD 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014     [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
rlimit: STACK 524288k, CORE infinity, NPROC 5749, NOFILE 28746, AS infinity
load average:0.32 0.42 0.25

CPU:total 2 (1 cores per cpu, 2 threads per core) family 15 model 4 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht, tsc

/proc/cpuinfo:
  <Not Available>

Memory: 4k page, physical 898288k(224572k free)

/proc/meminfo:


vm_info: OpenJDK 64-Bit Server VM (24.95-b01) for bsd-amd64 JRE (1.7.0_95-b00), built on Apr  2 2016 01:52:58 by "root" with gcc 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)

time: Thu Apr  7 15:27:14 2016
elapsed time: 0 seconds

Cannot build on Archlinux

On Archlinux there is a php-config and a php binary for Php 7 (php56 and php-config56 for Php 5.6). On every Linux distribution those binaries are called slightly different, that's why probing has
to happen first for the specific versions, then for more generic versions.

Suggested solution for 3rdParty/papuga/php7/php.cmake:

find_program( PHP7_CONFIG_EXECUTABLE NAMES "php-config7.1" "php-config7.0" "php-config7" "php-config" )
find_program( PHP7_EXECUTABLE NAMES  "php7.1" "php7.0" "php7" "php")
PHP php-config executable:  PHP7_CONFIG_EXECUTABLE-NOTFOUND
PHP php executable: PHP7_EXECUTABLE-NOTFOUND
CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:13 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  strusBindings/3rdParty/papuga/php7/CMakeLists.txt:6 (include)


CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:14 (string):
  string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
  strusBindings/3rdParty/papuga/php7/CMakeLists.txt:6 (include)


CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:15 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  strusBindings/3rdParty/papuga/php7/CMakeLists.txt:6 (include)


PHP include dirs: 
CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:20 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  strusBindings/3rdParty/papuga/php7/CMakeLists.txt:6 (include)


CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:21 (string):
  string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
  strusBindings/3rdParty/papuga/php7/CMakeLists.txt:6 (include)


PHP library dirs: 
CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:27 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  strusBindings/3rdParty/papuga/php7/CMakeLists.txt:6 (include)


CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:28 (string):
  string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
  strusBindings/3rdParty/papuga/php7/CMakeLists.txt:6 (include)

PHP libraries: 
PHP extension dir: 
PHP .ini file: 
CMake Error at strusBindings/3rdParty/papuga/php7/CMakeLists.txt:21 (include_directories):
  include_directories given empty-string as include directory.


CMake Warning (dev) at strusBindings/3rdParty/papuga/php7/CMakeLists.txt:28 (link_directories):
  This command specifies the relative path

    

  as a link directory.

  Policy CMP0015 is not set: link_directories() treats paths relative to the
  source dir.  Run "cmake --help-policy CMP0015" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

PHP php-config executable:  PHP7_CONFIG_EXECUTABLE-NOTFOUND
PHP php executable: PHP7_EXECUTABLE-NOTFOUND
CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:13 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  strusBindings/src/lang/php7/CMakeLists.txt:6 (include)


CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:14 (string):
  string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
  strusBindings/src/lang/php7/CMakeLists.txt:6 (include)


CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:15 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  strusBindings/src/lang/php7/CMakeLists.txt:6 (include)


PHP include dirs: 
CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:20 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  strusBindings/src/lang/php7/CMakeLists.txt:6 (include)


CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:21 (string):
  string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
  strusBindings/src/lang/php7/CMakeLists.txt:6 (include)


PHP library dirs: 
CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:27 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  strusBindings/src/lang/php7/CMakeLists.txt:6 (include)


CMake Error at strusBindings/3rdParty/papuga/php7/php.cmake:28 (string):
  string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
  strusBindings/src/lang/php7/CMakeLists.txt:6 (include)


PHP libraries: 
PHP extension dir: 
PHP .ini file: 
CMake Error at strusBindings/src/lang/php7/CMakeLists.txt:79 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "strus_bindings_php7".


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.