[pylucene-dev] issues compiling PyLucene on Linux

Andi Vajda vajda at osafoundation.org
Thu Apr 10 19:19:53 PDT 2008


On Thu, 10 Apr 2008, Bill Janssen wrote:

> Now I can generate the wrappers, and call initVM on GoodStuff, but not
> actually run it.  This is Python 2.5.1 running both "lucene" and
> "goodstuff", both wrapped with --shared, using Java 6 on CentOS Linux.
> Can this raise a (Python) exception which can be caught and handled
> rather than aborting the process?

You say 'can this raise a (Python) exception....' but what is 'this' ?
In particular, what is happening at build/_goodstuff/__wrap__.cpp:6166 ?

It's fine to just forward stacktraces if I have the source code but in this 
case this is happening in the generated code. Can you send a snippet of 
that code so that I can answer your question ?

Thanks !

Andi..

>
> Bill
>
> [...]
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> [New Thread 3984272 (LWP 14670)]
> [New Thread 3148688 (LWP 14671)]
> [New Thread 4971408 (LWP 14672)]
> [New Thread 5303184 (LWP 14673)]
> [New Thread 7809936 (LWP 14674)]
> [New Thread 8264592 (LWP 14675)]
> [New Thread 12766096 (LWP 14676)]
> [New Thread 13122448 (LWP 14677)]
> (no debugging symbols found)
> [New Thread 74947472 (LWP 14706)]
> [Thread 74947472 (LWP 14706) exited]
> [New Thread 74947472 (LWP 14712)]
>
> [Detaching after fork from child process 14720. (Try `set detach-on-fork off'.)]
> [Detaching after fork from child process 14722.]
> [Detaching after fork from child process 14725.]
> [Detaching after fork from child process 14727.]
> [Detaching after fork from child process 14732.]
> [Detaching after fork from child process 14734.]
> [Detaching after fork from child process 14736.]
> [Detaching after fork from child process 14738.]
> [Detaching after fork from child process 14740.]
> [Detaching after fork from child process 14742.]
> [Detaching after fork from child process 14744.]
> terminate called after throwing an instance of 'JCCEnv::exception'
>
> Program received signal SIGABRT, Aborted.
> [Switching to Thread 74947472 (LWP 14712)]
> 0x00e96402 in __kernel_vsyscall ()
> (gdb) (gdb) bt
> #0  0x00e96402 in __kernel_vsyscall ()
> #1  0x0012a1c0 in raise () from /lib/i686/nosegneg/libc.so.6
> #2  0x0012bba1 in abort () from /lib/i686/nosegneg/libc.so.6
> #3  0x04f6e550 in __gnu_cxx::__verbose_terminate_handler ()
>   from /usr/lib/libstdc++.so.6
> #4  0x04f6c035 in ?? () from /usr/lib/libstdc++.so.6
> #5  0x04f6c072 in std::terminate () from /usr/lib/libstdc++.so.6
> #6  0x04f6c1aa in __cxa_throw () from /usr/lib/libstdc++.so.6
> #7  0x00292401 in JCCEnv::reportException ()
>   from /usr/lib/python2.5/site-packages/JCC-1.8-py2.5-linux-i686.egg/libjcc.so
> #8  0x002922f6 in JCCEnv::newObject ()
>   from /usr/lib/python2.5/site-packages/JCC-1.8-py2.5-linux-i686.egg/libjcc.so
> #9  0x07594757 in GoodStuff (this=0x477818c, a0=@0x4778180)
>    at build/_goodstuff/__wrap__.cpp:6166
> #10 0x075d83b8 in t_GoodStuff_init_ (self=0x985add0, args=0x95d2c0c, kwds=0x0)
>    at build/_goodstuff/__wrap__.cpp:6248
> #11 0x063b8195 in ?? () from /usr/lib/libpython2.5.so.1.0
> #12 0x0636eee7 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
> #13 0x063eaf21 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
> #14 0x063edcdf in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
> #15 0x063edcdf in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
> #16 0x063edcdf in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
> #17 0x063eeb2f in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
> #18 0x0638df80 in ?? () from /usr/lib/libpython2.5.so.1.0
> #19 0x0636eee7 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
> #20 0x063ebc05 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
> #21 0x063edcdf in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
> #22 0x063edcdf in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
> #23 0x063eeb2f in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
> #24 0x0638deaa in ?? () from /usr/lib/libpython2.5.so.1.0
> #25 0x0636eee7 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
> #26 0x063763e8 in ?? () from /usr/lib/libpython2.5.so.1.0
> #27 0x0636eee7 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
> #28 0x063e6cec in PyEval_CallObjectWithKeywords ()
>   from /usr/lib/libpython2.5.so.1.0
> #29 0x064164b4 in ?? () from /usr/lib/libpython2.5.so.1.0
> #30 0x00275472 in start_thread () from /lib/i686/nosegneg/libpthread.so.0
> #31 0x001d389e in clone () from /lib/i686/nosegneg/libc.so.6
> (gdb)
>


More information about the pylucene-dev mailing list