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

md5 thread 'main' has overflowed its stack #62

Closed
MaxKingPor opened this issue Jul 25, 2023 · 5 comments
Closed

md5 thread 'main' has overflowed its stack #62

MaxKingPor opened this issue Jul 25, 2023 · 5 comments

Comments

@MaxKingPor
Copy link

MaxKingPor commented Jul 25, 2023

  • Compiling md5-asm with clang appears thread 'main' has overflowed its stack
    md-5 = { version = "0.10.5", features = ["oid", "asm"] }
[env]
CC = "clang"

clang version 16.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix

Example

use ::md5::{Digest, Md5};

fn main() {
    println!("start md5");
    let mut m5: Md5 = Md5::new();
    m5.update(
        b"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    );
    println!("{:x}", m5.finalize())
}
@tarcieri
Copy link
Member

tarcieri commented Jul 25, 2023

While we could try to find a fix specific to this issue, our long-term plan is to migrate to inline ASM (#45) in order to mitigate all of these environment-specific concerns around inline ASM

@newpavlov
Copy link
Member

Can you check whether #61 helps? Otherwise, the asm-hashes crates do not quite work on Windows and effectively are in a semi-deprecated state.

@newpavlov newpavlov transferred this issue from RustCrypto/hashes Jul 26, 2023
@mati865
Copy link

mati865 commented Jul 26, 2023

I think this might not work with MSVC, mentioned PR fixes it for GNU which has slightly different ABI.

@tarcieri
Copy link
Member

Oh right, we have a tracking issue for MSVC: #17

@newpavlov
Copy link
Member

Closing as dup of #17.

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

4 participants