Skip to content

Shadow fails when built with rust 1.89.0 in release mode #3654

@stevenengler

Description

@stevenengler

If you build Shadow with rust 1.89.0 in release mode, most of the tests fail.

Since Shadow works fine with rust 1.89.0 in debug mode, it's probably an issue due to optimizations. I think it's likely that we have UB, or there's a miscompilation bug somewhere.

Shadow runs fine when built with rust 1.88.0 in both debug and release mode.

(@sporksmith I had previously mistakenly thought that it was a bug in newer distros, not newer rust versions.)

Example:

general:
  stop_time: 10 seconds
network:
  graph:
    type: 1_gbit_switch
hosts:
  testnode:
    network_node_id: 0
    processes:
    - path: python3
      args: -u -c "print('foo')"
Error: process 'testnode.python3.13.1000' exited with status Signaled(Signal(11)); expected end state was exited: 0 but was signaled: SIGSEGV
Error: Failed to run the simulation
Error: 
Error: Caused by:
Error:     1 managed processes in unexpected final state

Metadata

Metadata

Assignees

Labels

Type: BugError or flaw producing unexpected results

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions