Skip to content

assertion failed while running binaryen-shell #9

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

Closed
TheKK opened this issue Dec 18, 2015 · 2 comments
Closed

assertion failed while running binaryen-shell #9

TheKK opened this issue Dec 18, 2015 · 2 comments

Comments

@TheKK
Copy link
Contributor

TheKK commented Dec 18, 2015

Program aborts while running bin/binaryen-shell test/dot_s/switch.wast on GNU/Linux. Here's backtrace I got

  * frame #0: 0x00007ffff7221cc9 libc.so.6`gsignal + 57
    frame #1: 0x00007ffff72250d8 libc.so.6`abort + 328
    frame #2: 0x00007ffff721ab86 libc.so.6`??? + 294
    frame #3: 0x00007ffff721ac32 libc.so.6`__assert_fail + 66
    frame #4: 0x000000000040b630 binaryen-shell`wasm::Element::list(this=0x0000000000677020) + 48 at wasm-s-parser.h:49
    frame #5: 0x000000000040b659 binaryen-shell`wasm::Element::operator[](this=0x0000000000677020, i=0) + 31 at wasm-s-parser.h:54
    frame #6: 0x000000000040449a binaryen-shell`main(argc=2, argv=0x00007fffffffded8) + 2533 at binaryen-shell.cpp:280
    frame #7: 0x00007ffff720cec5 libc.so.6`__libc_start_main + 245
    frame #8: 0x0000000000402c19 binaryen-shell

codes that failed:

  List& list() {
    assert(isList_);
    return list_;
  }
@kripken
Copy link
Member

kripken commented Dec 18, 2015

Thanks, the issue is that that .wast has ; but comments are actually ;;. That's a bug in s2wasm, fixing now.

kripken added a commit that referenced this issue Dec 18, 2015
@kripken
Copy link
Member

kripken commented Dec 18, 2015

Fixed.

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

2 participants