Skip to content

"SIGSEGV" without any "undeclared identifier" error #8011

@chrisokuda

Description

@chrisokuda

When I run the code (https://gitlab.com/snippets/1723320) on my local machine, I get the output:

$> nim c -r -o:bin/run stack.nim  
Hint: used config file '/home/chris/.choosenim/toolchains/nim-0.18.0/config/nim.cfg' [Conf]
Hint: system [Processing]
Hint: stack [Processing]
Hint: unittest [Processing]
Hint: macros [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: algorithm [Processing]
Hint: streams [Processing]
Hint: times [Processing]
Hint: posix [Processing]
Hint: sets [Processing]
Hint: hashes [Processing]
Hint: os [Processing]
Hint: ospaths [Processing]
Hint: terminal [Processing]
Hint: strformat [Processing]
Hint: unicode [Processing]
Hint: colors [Processing]
Hint: tables [Processing]
Hint: termios [Processing]
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

This occurs in both "stable" and "devel" branches using choosenim:

stable:

$> choosenim stable
$> nim -v
Nim Compiler Version 0.18.0 [Linux: amd64]
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: 855956bf617f68ac0be3717329e9e1181e5dc0c6
active boot switches: -d:release

devel: (as of 2018-06-10T15:00-07:00)

$> choosenim devel
$> nim -v
Nim Compiler Version 0.18.1 [Linux: amd64]
Compiled at 2018-06-10
Copyright (c) 2006-2018 by Andreas Rumpf

active boot switches: -d:release

Expected output would be a message such as test.nim(132, 11) Error: undeclared identifier: 'stack along with the SIGSEGV error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions