Skip to content

Access violation or memory allocation failure when building #61397

Closed
@mrbus

Description

@mrbus

rustc crashes when trying to build project on my old 2Gb 32-bit Windows laptop (but previously it succesfully built).
If cargo build or cargo build --lib is executed without --verbose then first Windows message box appears:
rustc_crash
(Full report is here:
rustc_crash_report.txt
Sorry for russian localization of OS)
and then cargo outputs:

Compiling pokerface v0.0.1 (C:\Rust\PF\pokerface)
memory allocation of 603979776 bytes failed
error: Could not compile pokerface.

If executed with --verbose then output is as follows:
rustc_crash_verbose.txt

rust v.1.34.0, toolchain is stable-i686-pc-windows-gnu, Windows 7 32-bit 2Gb RAM.

I read this: #53149 and this: #33434 and it is not clear what I have to do to solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-compilememIssue: Problems and improvements with respect to memory usage during compilation.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions