Skip to content

Latest cargo nightly is segfaulting in toml #344

@carllerche

Description

@carllerche

I installed the latest Cargo nightly on a clean ubuntu box:

$ uname -a
Linux vagrant-ubuntu-trusty-64 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ gdb cargo-build
Program received signal SIGSEGV, Segmentation fault.
0x000000000046774c in util::toml::to_manifest::h027d07b5ab34a4f4lto ()
(gdb) bt
#0  0x000000000046774c in util::toml::to_manifest::h027d07b5ab34a4f4lto ()
#1  0x0000000000464330 in ops::cargo_read_manifest::read_manifest::h58a159c4a720cfaeAHh ()
#2  0x000000000046ce3c in ops::cargo_read_manifest::read_package::haa2e9798e90a9eb97Hh ()
#3  0x0000000000470cc0 in ops::cargo_read_manifest::read_nested_packages::hccd53a40c03ffabbn0h ()
#4  0x000000000046f2fe in ops::cargo_read_manifest::process_possible_package::h8a4bd8fddd7ab3edYYh ()
#5  0x000000000046eae5 in ops::cargo_read_manifest::read_packages::h800d7d3df07bcc60WLh ()
#6  0x000000000041d25d in sources::path::PathSource.Source::update::h1adac7d7b084e48fUOl ()
#7  0x0000000000446c5d in ops::cargo_compile::compile::h5070006c8fe8bb4c0fh ()
#8  0x000000000040f1a3 in execute::h747a9f9db13b36eaqia ()
#9  0x000000000040dce4 in call_main_without_stdin::h12507149885516441373 ()
#10 0x000000000040a544 in main::h09e8cb9e8a4fd2faiia ()
#11 0x0000000000555473 in start::closure.8371 ()
#12 0x0000000000664b7c in rust_try ()
#13 0x0000000000661ed7 in unwind::try::h9e31b701f4e2b54d0Wd ()
#14 0x0000000000661cbf in task::Task::run::h2bd486ed91d9e52aC4c ()
#15 0x000000000055528d in start::h4e9a0bf33351433aTpe ()
#16 0x00000000005550c9 in lang_start::h9d7a12ba8e6cb946dpe ()
#17 0x00007ffff71f5ec5 in __libc_start_main (main=0x40a900 <main>, argc=1, argv=0x7fffffffe648, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
   stack_end=0x7fffffffe638) at libc-start.c:287
#18 0x00000000004098c9 in _start ()

My manifest:

[package]

name = "contain"
version = "0.0.1"
authors = ["Carl Lerche <me@carllerche.com>"]

[[dependencies.linux]]

path = "libs/linux-rs"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions