Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any way to track "SIGSEGV: Illegal storage access"? #103

Open
retsyo opened this issue Nov 12, 2023 · 2 comments
Open

any way to track "SIGSEGV: Illegal storage access"? #103

retsyo opened this issue Nov 12, 2023 · 2 comments

Comments

@retsyo
Copy link
Contributor

retsyo commented Nov 12, 2023

One of my old project use wnim for gui, winim for using .NET DLLS. And the compiled command-line is

nim c -d:release --opt:size -d:quick --opt:size --passL:-s --passc:-flto   -r myapp.nim
  • when I close the myapp20220922.exe file, which is compiled on September 22nd, 2022, everything seems ok
  • but now, I updated to latest nim(Nim Compiler Version 2.1.1 [Windows: amd64], Compiled at 2023-11-12), winim(winim-3.9.2-154c271e1d766fca5aea32beecec5645e6d2e114) and wnim(wnim-0.13.3-eba76f28624eb4c74bdda19830fae74d4dbc1ee2), when I close new built myapp20231112.exe, I get
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Error: execution of an external program failed: 'D:\tmp\compareexcel\myapp20231112.exe'

Any way to track which line of the code produces this? Thanks

@retsyo
Copy link
Contributor Author

retsyo commented Nov 12, 2023

yet another question, for the same source code, myapp20231112.exe is 7.67k, while myapp20220922.exe is 4.17k. What causes such a bigger bloat in size? Thanks

@retsyo
Copy link
Contributor Author

retsyo commented Jan 2, 2024

ringabout gave a solution
use --mm:refc

memory management mode work or not
orc SIGSEGV: Illegal storage access. (Attempt to read from nil?)
arc yes
refc yes
markAndSweep yes
Boehm SIGSEGV: Illegal storage access. (Attempt to read from nil?)
go I have not found libgo.dll to run exe
none yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant