Re: [Seed7-users] Seed7 Compilation on AlmaLinux 9 Segmentation Fault
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Thomas M. <tho...@gm...> - 2024-03-18 13:46:08
|
Hi Zachary, Do you refer to the latest version from GitHub (which commit?) or to the latest released version (2024-03-01)? In case of the released version (2024-03-01) I have an idea. In this version the compiler uses X11 functions. The function colorPixel() is used to determine the pixel encoding used on your computer. If X11 is not installed on your computer this will fail. Recently I did two commits which should fix this issue: "Improve the check for non-empty windows" "Avoid SEGV if drwRgbColor() is called without a successful drawInit()" I suggest you use this version (or a later one) from GitHub. If the error persists with the GitHub version I suggest the following: Does the SEGV also occur if you invoke the command ../bin/s7 -l ../lib ../prg/s7c -l ../lib -b ../bin -O2 ../prg/s7c manually? In this case you can use gdb to find out more. You could invoke gdb with: gdb ../bin/s7 and use following gdb command to start the program: run -l ../lib ../prg/s7c -l ../lib -b ../bin -O2 ../prg/s7c If this stops with the SEGV you can use the command bt to see a backtrace of the functions. Please send me this backtrace. In case the backtrace is huge it could be an endless recursion. Please tell me if the GitHub version works or send me a backtrace if the GitHub version does not fix your problem. Best regards Thomas Mertes |