Page MenuHomePhabricator

Eolian SegFault
Closed, ResolvedPublic

Description

<path-to-efl>/efl/build/src/bin/eolian/eolian_gen -S -I ../../../modules/evas/engines/software_generic -I <path-to-efl>/efl/src/lib/eo -I <path-to-efl>/efl/src/lib -I <path-to-efl>/efl/src/lib/efl/interfaces -I <path-to-efl>/efl/src/lib/ecore -I <path-to-efl>/efl/src/lib/eldbus -I <path-to-efl>/efl/src/lib/ecore_con -I <path-to-efl>/efl/src/lib/ector -o h:<path-to-efl>/efl/build/src/lib/evas/software_generic/evas_ector_software_buffer.eo.h -o c:<path-to-efl>/efl/build/src/lib/evas/software_generic/evas_ector_software_buffer.eo.c -o d:<path-to-efl>/efl/build/src/lib/evas/software_generic/evas_ector_software_buffer.eo.d -gchd ../src/lib/evas/software_generic/../../../modules/evas/engines/software_generic/evas_ector_software_buffer.eo

Replace the <path-to-efl> with the path to your efl tree. After executing this, i get a eolian crash:

#0  0x00007f408825e715 in __strlen_avx2 () from /usr/lib/libc.so.6
#1  0x00007f40883819d8 in eina_strbuf_append (buf=0x562197c46560, str=0x0) at ../src/lib/eina/eina_strbuf_template_c.x:38
#2  0x0000562196694cad in _write_deps (eos=0x562197be8490,
    ofname=0x562197bec2b0 "/home/marcel/git/efl/build/src/lib/evas/software_generic/evas_ector_software_buffer.eo.d",
    ifname=0x7ffc659b099f "evas_ector_software_buffer.eo", outs=0x7ffc659aeec0, gen_what=41) at ../src/bin/eolian/main.c:463
#3  0x0000562196695755 in main (argc=26, argv=0x7ffc659aeff8) at ../src/bin/eolian/main.c:662
bu5hm4n created this task.Apr 18 2019, 1:17 PM

You can reproduce it with building https://git.enlightenment.org/core/efl.git/log/?h=devs/bu5hm4n/evas-build-fixes

Okay: reason for the crash, the file that is passed to eolian *has* to be in one of the include directories OR the $CWD.

q66 added a comment.Apr 19 2019, 2:38 PM

that helps, i'll add guards for it once I am back