Skip to content

joelwurtz/segfault-golang-with-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segfault example with golang signal + rust html5ever

This is the smallest example that i can build to reproduce this segfault

Compiling rust

You will need x86_64-unknown-linux-musl target installed

cargo build --lib --target x86_64-unknown-linux-musl

Compiling & running go

You will need musl-gcc compiler

CC=/usr/bin/musl-gcc go run --ldflags "-linkmode external -extldflags '-static'" main.go

Doing this will result in a segfault

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published