[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: With fb804d9f master: no error, but IDE doesn't start


On Fri, 9 Aug 2024 at 12:17, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

>
>
> On Fri, 9 Aug 2024 at 00:27, <vuott@xxxxxxxxxxxx> wrote:
>
>> I updated with fb804d9f master.
>> Ok compiling, but IDE doesn't start.
>>
>> regards
>> vuott
>>
>
> I have the same problem, it's a JIT error
>
> $ env GB_JIT_DEBUG=1 gambas3
>
> gbx3: loading gb.jit component
> gb.jit: translating 'gb.highlight'...
> gb.jit: generating header
> gb.jit: generating /run/user/1000/gambas/211953/jit/gb.highlight.c and
> /run/user/1000/gambas/211953/jit/gb.highlight_ptr.c
> gb.jit: translating class TextHighlighter
> gb.jit: run: /usr/bin/gcc -w -fPIC -shared -O3 -march=native -mtune=native
> /run/user/1000/gambas/211953/jit/gb.highlight_ptr.c -Wl,-soname,
> libgb.highlight_ptr.so -o /run/user/1000/gambas/211953/jit/
> libgb.highlight_ptr.so
> gb.jit: translating 'gb.form.editor'...
> gb.jit: generating /run/user/1000/gambas/211953/jit/gb.form.editor.c and
> /run/user/1000/gambas/211953/jit/gb.form.editor_ptr.c
> gb.jit: translating class TextEditor
> gb.jit: translating class _TextEditor_Rows
> gb.jit: run: /usr/bin/gcc -w -fPIC -shared -O3 -march=native -mtune=native
> /run/user/1000/gambas/211953/jit/gb.form.editor_ptr.c -Wl,-soname,
> libgb.form.editor_ptr.so -o /run/user/1000/gambas/211953/jit/
> libgb.form.editor_ptr.so
> gb.jit: translating 'gb.form.terminal'...
> gb.jit: generating /run/user/1000/gambas/211953/jit/gb.form.terminal.c and
> /run/user/1000/gambas/211953/jit/gb.form.terminal_ptr.c
> gb.jit: translating class TerminalAttr
> gb.jit: translating class CTerminalLine
> gb.jit: translating class TerminalScreen
> gb.jit: run: /usr/bin/gcc -w -fPIC -shared -O3 -march=native -mtune=native
> /run/user/1000/gambas/211953/jit/gb.form.terminal_ptr.c -Wl,-soname,
> libgb.form.terminal_ptr.so -o /run/user/1000/gambas/211953/jit/
> libgb.form.terminal_ptr.so
> gb.jit: translating project...
> gb.jit: generating /run/user/1000/gambas/211953/jit/gb.c and
> /run/user/1000/gambas/211953/jit/gb_ptr.c
> gb.jit: translating class CWelcome
> gb.jit: translating class TextEditor
> gb.jit: translating class CProfileTask
> *** buffer overflow detected ***: terminated
> Aborted (core dumped)
>
>
> This is a temporary fix...
> env GB_JIT_ENABLED=0 gambas3
>
> or
> env GB_NO_JIT=1 gambas3
>
> Respects
> BruceS
>

Tip:

I just loaded my $HOME/.profile file and added the following line...
export GB_NO_JIT=1

after logging out and in again now all my gambas programs are working again.

Once the bug is fixed i will remove that line.

Note: only some of my programs were failing to load , not all of them.

Respects
BruceS