Re: Building a class with JCC from setup.py

2017-07-11 Thread Joshua Campbell
.ScannerWrapper'], includes=['target/lex-java-1.0-SNAPSHOT-jar-with-dependencies.jar'], ) setup( name='py_lex_java', version="1.8.1", description='Call the Java Compiler\'s lexer from Python.', long_description=open('README.

Re: Building a class with JCC from setup.py

2017-07-11 Thread Joshua Campbell
17 at 10:00 AM, Andi Vajda wrote: > >> On Jul 11, 2017, at 08:30, Joshua Campbell wrote: >> >> Does anyone know how to do this? I don't want to install the java >> stuff as its own thing like python -m jcc --install... I just want to >> include it as a submodu

Building a class with JCC from setup.py

2017-07-11 Thread Joshua Campbell
Does anyone know how to do this? I don't want to install the java stuff as its own thing like python -m jcc --install... I just want to include it as a submodule of a package I already have. -- Joshua Charles Campbell Ph.D. Student and Research Assistant Department of Computing Science University

Re: Build Error on Fedora 25

2017-07-11 Thread Joshua Campbell
Yeah you have to do this on debian/ubuntu as well On Mon, Jul 10, 2017 at 2:43 PM, Michael Alcorn wrote: > Hi all, > > When trying to follow the PyLucene installation instructions on Fedora 25, > I was getting the following error: > > /opt/gcc-4.9.3/bin/g++ -pthread -shared > -L/home/rdu/malcorn

Re: JCC Segfault on Debian 9 (stretch)

2017-07-07 Thread Joshua Campbell
017 at 3:50 PM, Joshua Campbell wrote: > Okay so. I built GDB 8 from source (it's new) and that doesn't have bug. > > In summary: > > Ok TO BE CLEAR, I am closer to the TRUTH than ever. Not only am I not > stopping, I am working harder. Updates when available. Sta

Re: JCC Segfault on Debian 9 (stretch)

2017-07-06 Thread Joshua Campbell
uot;// Generate SEGV" so something about Python/JNI/JCC is intefering with the JVM's signal handler, as this SEGV is intentional! On Thu, Jul 6, 2017 at 12:44 AM, Joshua Campbell wrote: > How would they break oracle's though. It's a binary. > > On Wed, Jul 5, 2017 a

Re: JCC Segfault on Debian 9 (stretch)

2017-07-05 Thread Joshua Campbell
How would they break oracle's though. It's a binary. On Wed, Jul 5, 2017 at 10:40 PM, Andi Vajda wrote: > > > On Jul 6, 2017, at 00:03, Joshua Campbell wrote: > > > > I confirmed that it crashes on multiple Debian 9 machines but it > > doesn't crash on

Re: JCC Segfault on Debian 9 (stretch)

2017-07-05 Thread Joshua Campbell
17 at 2:39 PM, Joshua Campbell wrote: > No, it segfaults. > > On Wed, Jul 5, 2017 at 2:26 PM, Andi Vajda wrote: >> >>> On Jul 5, 2017, at 22:16, Joshua Campbell wrote: >>> >>> It's occuring after JCC calls JNI_CreateJavaVM >>> >>

Re: JCC Segfault on Debian 9 (stretch)

2017-07-05 Thread Joshua Campbell
No, it segfaults. On Wed, Jul 5, 2017 at 2:26 PM, Andi Vajda wrote: > >> On Jul 5, 2017, at 22:16, Joshua Campbell wrote: >> >> It's occuring after JCC calls JNI_CreateJavaVM >> >> cpp.py(529): env = initVM(os.pathsep.join(classpath) or None, >&g

Re: JCC Segfault on Debian 9 (stretch)

2017-07-05 Thread Joshua Campbell
hat in the name of heck On Wed, Jul 5, 2017 at 11:48 AM, Joshua Campbell wrote: >> But you should get a better stacktrace ? > > I got the exact same stacktrace. > > $ ldd > venv3/lib/python3.5/site-packages/JCC-3.0-py3.5-linux-x86_64.egg/libjcc3.so > linux-vdso.s

Re: JCC Segfault on Debian 9 (stretch)

2017-07-05 Thread Joshua Campbell
7fffc7e0 in ?? () #5 0x76006075 in VM_Version::get_processor_features() () from /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/amd64/server/libjvm.so Backtrace stopped: previous frame inner to this frame (corrupt stack?) On Wed, Jul 5, 2017 at 11:38 AM, Andi Vajda wrote: > > On J

Re: JCC Segfault on Debian 9 (stretch)

2017-07-05 Thread Joshua Campbell
> What version if java is this jcc built with ? Oh it's openjdk-8-dbg_8u131-b11-2 But I got a same result (the stacktrace was slightly different but still undecoded) with Oracle's JDK. On Wed, Jul 5, 2017 at 10:56 AM, Joshua Campbell wrote: > > What version if java is

Re: JCC Segfault on Debian 9 (stretch)

2017-07-05 Thread Joshua Campbell
the same as during jcc build time ? Yes I made sure of that and uninstalled all but openjdk and rebuilt. On Wed, Jul 5, 2017 at 10:46 AM, Andi Vajda wrote: > > > On Jul 5, 2017, at 18:25, Joshua Campbell wrote: > > > > This segfault appears to occur within the JVM code on b

JCC Segfault on Debian 9 (stretch)

2017-07-05 Thread Joshua Campbell
This segfault appears to occur within the JVM code on both oracle-java8-jdk and java-1.8.0-openjdk-amd64. I installed the JVM debugging symbols but it didn't seem to help. Occurs under python 2 and 3. I don't know how to debug this any further. 0 joshua@buttercup unnaturalcode 17609$ python3 -m v