Build errors

Simon Feltman s.feltman@gmail.com
Tue Jan 1 00:00:00 GMT 2013


On Thu, Oct 24, 2013 at 10:39 AM, David Malcolm <dmalcolm@redhat.com> wrote:
> On Wed, 2013-10-23 at 20:31 -0700, Simon Feltman wrote:
>> >> But I'm now hitting this when running test.py:
>> >> $ python3 test.py
>> >> .libgccjit.so: internal compiler error: Segmentation fault
>> >> ...
>> >> 0x7fad426c2485 gcc::jit::context::invoke_code_factory()
>> >>         ../../src/gcc/jit/internal-api.c:1345
>> >
>>
>> The clone was made yesterday (and I updated it again today).
>
> That's unexpected.
>
> You know this, but for the list archives, you can debug the python
> bindings using:
>
>   gdb --args python3 test.py

Indeed, the issue turned out to be how Cython interprets None by
default, basically gcc_jit_function_add_conditional was receiving a
bad pointer with on_false=None. I submitted a pull request with a
quick fix and some notes about a potentially more robust way to
generally deal with None in Cython. The Python tests are now running
well for me.

Thanks,
-Simon



More information about the Jit mailing list