Skip to content

Instantly share code, notes, and snippets.

View alexcrichton's full-sized avatar

Alex Crichton alexcrichton

  • 20:38 (UTC -05:00)
View GitHub Profile
Finished `release` profile [optimized] target(s) in 0.10s
Running `target/x86_64-unknown-linux-gnu/release/wat`
0
==================
WARNING: ThreadSanitizer: data race (pid=2285684)
Write of size 8 at 0x724000008028 by thread T1:
#0 memmove <null> (wat+0xe893e) (BuildId: a3a6796c17d7de568cd8820845c07bac41837262)
#1 <null> <null> (libgcc_s.so.1+0x243c3) (BuildId: 3072445288dd2aba348bf583c65f70509aab8141)
#2 wasmtime::runtime::code_memory::CodeMemory::publish::hb3246a7a669651d2 <null> (wat+0x31a75b) (BuildId: a3a6796c17d7de568cd8820845c07bac41837262)
#3 wasmtime::compile::runtime::publish_mmap::he7291abf92f4259c <null> (wat+0x3c610e) (BuildId: a3a6796c17d7de568cd8820845c07bac41837262)
diff --git a/src/vms/wasmtime.rs b/src/vms/wasmtime.rs
index 115f93d..befdc3d 100644
--- a/src/vms/wasmtime.rs
+++ b/src/vms/wasmtime.rs
@@ -3,7 +3,13 @@ use crate::utils::{CompileTestFilter, ExecuteTestFilter, TestFilter};
use wasmi_new::ModuleImportsIter;
pub struct Wasmtime {
- pub strategy: wasmtime::Strategy,
+ pub strategy: Strategy,
@alexcrichton
alexcrichton / top.js
Created November 19, 2024 00:03
top triggers
// Installation:
//
// 1. Place this file in a folder "$somewhere/raidboss/top.js".
// a. example: C:/Users/alex/Downloads/tmp/raidboss/top.js
// 2. ACT > Plugins > OverlayPlugin.dll > Cactbot Config
// 3. Set "Cactbot user directory" to "$somewhere" from above.
// a. example: C:/Users/alex/Downloads/tmp
// 4. Reload the overlay
// 5. In "Cactbot Config" under "Raidboss" at the bottom you should see a path to "top.js"
// 6. Under "top.js" you should see "The Omega Protocol (Ultimate)"
128.cwasm: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <wasm[0]::function[0]>:
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
4: 4c 8b 4f 58 mov 0x58(%rdi),%r9
--- good 2021-05-20 08:57:47.000000000 -0700
+++ bad 2021-05-20 08:56:49.000000000 -0700
@@ -227,11 +227,31 @@
INFO rustc_metadata::creader resolving crate `unwind`
INFO rustc_metadata::creader resolving crate `proc_macros`
INFO rustc_metadata::creader falling back to a load
-INFO rustc_metadata::locator dylib reading metadata from: /Users/acrichton/code/wat/target/debug/deps/libproc_macros-5d137cd480dff532.dylib
-INFO rustc_metadata::creader register crate `proc_macros` (cnum = 18. private_dep = false)
-INFO rustc_metadata::creader resolving crate `proc_macros`
-INFO rustc_metadata::creader resolving crate `proc_macros`
;; documentation comment
type $my_record = record {
;; field documentation
field1: u32,
field2: $other_record,
field3: list[string],
field4: in-buffer[u8],
}
;; comment on this type
(module
(import "" "" (func (param i64 i64 i64 i64 i64 i64 i64 i64 i64)))
(func (export "a")
i64.const 0
i64.const 1
i64.const 2
i64.const 3
i64.const 4
i64.const 5
i64.const 6
diff --git a/src/cargo/core/registry.rs b/src/cargo/core/registry.rs
index 0380c447d..a0cc41d85 100644
--- a/src/cargo/core/registry.rs
+++ b/src/cargo/core/registry.rs
@@ -726,7 +726,9 @@ fn lock(
// If this dependency did not have a locked version, then we query
// all known locked packages to see if they match this dependency.
- // If anything does then we lock it to that and move on.
+ // If anything does then we lock it to that and move on. This will help
0x0000 | 00 61 73 6d | version 1
| 01 00 00 00
0x0008 | 01 0f | type section
0x000a | 02 | 2 count
0x000b | 60 00 00 | [type 0] Func(FuncType { params: [], returns: [] })
0x000e | 62 02 01 66 | [type 1] Instance(InstanceType { exports: [ExportType { name: "f", ty: Function(0) }, ExportType { name: "g", ty: Global(GlobalType { content_type: I32, mutable: false }) }] })
| 00 00 01 67
| 03 7f 00
0x0019 | 02 06 | import section
0x001b | 01 | 1 count