randomasiandude
randomasiandude
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
Very True, especially for new comers from python.
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
As a dude from python took me a while to figure out. And still reading the variables scope thing
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
The issue was about defining global variables/constants as var vs. as alias . In my case it needs to be defined as alias for the binary to work
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
Thank you for the gdb knowledge which I didn’t know 🙂
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
I discovered that if a variable is outside of the fn it should be defined as alias not var in order to make the binary work. If its defined as var the script can still run with mojo run
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
I somehow fixed it by putting var ECL_V5 from outside of the fn into inside of the fn…. Still don’t know what’s the actual reason behind
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc3000
Downloading separate debug info for /lib/x86_64-linux-gnu/libstdc++.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libgcc_s.so.1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6e006c0 (LWP 11477)]
[New Thread 0x7ffff64006c0 (LWP 11478)]
[New Thread 0x7ffff5a006c0 (LWP 11479)]
[New Thread 0x7ffff50006c0 (LWP 11480)]
[New Thread 0x7ffff46006c0 (LWP 11481)]

Thread 1 "errc" received signal SIGSEGV, Segmentation fault.
0x000055555555bf6c in main ()
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc3000
Downloading separate debug info for /lib/x86_64-linux-gnu/libstdc++.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libgcc_s.so.1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6e006c0 (LWP 11477)]
[New Thread 0x7ffff64006c0 (LWP 11478)]
[New Thread 0x7ffff5a006c0 (LWP 11479)]
[New Thread 0x7ffff50006c0 (LWP 11480)]
[New Thread 0x7ffff46006c0 (LWP 11481)]

Thread 1 "errc" received signal SIGSEGV, Segmentation fault.
0x000055555555bf6c in main ()
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
I’ll provide result in few mins
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
Not VM not WSL Ubuntu OS
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
I’ll try right now
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
Like ./test
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
I can run the fn without any issue I couldn’t run it in binary execution form
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
I’ve only tested in Ubuntu terminal and vscode
25 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
output value is correct . A list of 64 elements values from 0-929
25 replies