Skip to content

wasm-split: WasmBinaryWriter::getDataSegmentIndex assertion related to DataDrop #6512

Closed

Description

@kripken
(module
 (memory $0 16 17)
 (data $0 (i32.const 0) "")
 (func $0
  (data.drop $0)
 )
)
$ wasm-split w.wat --split --primary-output a.wasm --secondary-output b.wasm -all
warning: not keeping any functions in the primary module
wasm-split: wasm-binary.cpp:682: uint32_t wasm::WasmBinaryWriter::getDataSegmentIndex(wasm::Name) const: Assertion `it != indexes.dataIndexes.end()' failed.
Aborted

@tlively

Activity

  1. tlively commented on Apr 19, 2024

    @tlively
    Member

    Oh interesting. I guess it's not possible to split out any function containing a data.drop. I'll write a fix.

  2. self-assigned this
    on Apr 19, 2024
  3. added a commit that references this issue on Apr 19, 2024
    e80e7a2
  4. added a commit that references this issue on Apr 23, 2024
    e50a2ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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