Skip to content

stack overflow is unreliable #503

Closed
Closed
@extemporaneousb

Description

@extemporaneousb

Simple example below shows a segmentation fault for a recursive function call.

thanks, jim

           _

_ _ ()_ |
() | () () | A fresh approach to technical computing
_ _ | | __ _ |
| | | | | | |/ ` | | Version 0.0.0-prerelease
| | |
| | | | (
| | | Commit c84deda (2012-02-28 19:39:42)
/ |_'|||__'| |
|__/ |

julia> f(n) = if (n == 0) 0 else f(n-1) + n
end

julia> f(10)
55

julia> f(10000000000)
Segmentation fault: 11

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions