-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for invalid maps, oversized maps/vecs/bytes from various pa…
…ths (#1247) ### What Resolves #1148 and partially #1162 ### Why [TODO: Why this change is being made. Include any context required to understand the why.] ### Known limitations [TODO or N/A] --------- Co-authored-by: Siddharth Suresh <[email protected]>
- Loading branch information
Showing
78 changed files
with
20,268 additions
and
19,422 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...an-env-host/observations/test__bytes__instantiate_oversized_bytes_from_linear_memory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
" 0 begin": "cpu:14488, mem:0, prngs:-/9b4a753, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-", | ||
" 1 call bytes_new_from_slice(232)": "cpu:14535", | ||
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:15554, mem:312, objs:-/1@6d656143", | ||
" 3 call upload_wasm(Bytes(obj#1))": "", | ||
" 4 ret upload_wasm -> Ok(Bytes(obj#3))": "cpu:581015, mem:206173, objs:-/2@eb24a552, store:-/1@96b04ce3, foot:1@1493135d", | ||
" 5 call bytes_new_from_slice(32)": "cpu:581455, mem:206237, objs:-/3@fc7fac5c", | ||
" 6 ret bytes_new_from_slice -> Ok(Bytes(obj#7))": "cpu:582424, mem:206349, objs:-/4@144d7672", | ||
" 7 call create_contract(Address(obj#5), Bytes(obj#3), Bytes(obj#7))": "", | ||
" 8 call obj_cmp(Address(obj#9), Address(obj#5))": "cpu:584067, mem:206527, objs:-/5@1fcd474b, auth:1@acfe9561/-", | ||
" 9 ret obj_cmp -> Ok(0)": "cpu:584359", | ||
" 10 call get_ledger_network_id()": "cpu:584409, auth:1@acfe9561/1@dee03c1f", | ||
" 11 ret get_ledger_network_id -> Ok(Bytes(obj#11))": "cpu:585439, mem:206639, objs:-/6@5ba309ef", | ||
" 12 ret create_contract -> Ok(Address(obj#13))": "cpu:603572, mem:209713, objs:-/7@44b66c22, store:-/2@f3683e3d, foot:2@afcbf0cb, auth:-/1@eac57bde", | ||
" 13 call call(Address(obj#13), Symbol(test), Vec(obj#15))": "cpu:604533, mem:209793, objs:-/8@dbb80808, auth:-/-", | ||
" 14 push VM:9183004:test()": "cpu:1159685, mem:416132, objs:-/9@2109237a, vm:65536@6644521a/2@2f94d90d, stk:1@ae9020a6, auth:1@d7dc1364/-", | ||
" 15 call bytes_new_from_linear_memory(U32(0), U32(100))": "cpu:1162154, mem:416162, vm:-/-", | ||
" 16 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#19))": "cpu:1163688, mem:416342, objs:-/10@e99932f4", | ||
" 17 pop VM:9183004:test -> Ok(Bytes(obj#19))": "cpu:1164184, mem:416366, objs:1@7f18fa80/10@e99932f4, vm:65536@6644521a/2@2f94d90d, stk:1@a3d3d600", | ||
" 18 ret call -> Ok(Bytes(obj#19))": "cpu:1164245, objs:-/10@e99932f4, vm:-/-, stk:-, auth:-/-", | ||
" 19 call bytes_len(Bytes(obj#19))": "", | ||
" 20 ret bytes_len -> Ok(U32(100))": "cpu:1164367", | ||
" 21 call bytes_new_from_slice(480138)": "cpu:47, mem:0", | ||
" 22 ret bytes_new_from_slice -> Ok(Bytes(obj#21))": "cpu:121042, mem:480218, objs:-/11@f8afb923", | ||
" 23 call upload_wasm(Bytes(obj#21))": "", | ||
" 24 ret upload_wasm -> Ok(Bytes(obj#23))": "cpu:197389861, mem:20611390, objs:-/12@766139bd, store:-/3@88c0920, foot:3@b4b3c144", | ||
" 25 call bytes_new_from_slice(32)": "cpu:197390301, mem:20611454, objs:-/13@d8d08964", | ||
" 26 ret bytes_new_from_slice -> Ok(Bytes(obj#27))": "cpu:197391270, mem:20611566, objs:-/14@3cd20cc8", | ||
" 27 call create_contract(Address(obj#25), Bytes(obj#23), Bytes(obj#27))": "", | ||
" 28 call obj_cmp(Address(obj#29), Address(obj#25))": "cpu:197392913, mem:20611744, objs:-/15@e4a0bdff, auth:1@aa156f10/-", | ||
" 29 ret obj_cmp -> Ok(0)": "cpu:197393205", | ||
" 30 call get_ledger_network_id()": "cpu:197393255, auth:1@aa156f10/1@2c87c11", | ||
" 31 ret get_ledger_network_id -> Ok(Bytes(obj#31))": "cpu:197394285, mem:20611856, objs:-/16@998a505d", | ||
" 32 ret create_contract -> Ok(Address(obj#33))": "cpu:197413700, mem:20615302, objs:-/17@f1b7906f, store:-/4@c2e56f7b, foot:4@694cf0e6, auth:-/1@fde929df", | ||
" 33 call call(Address(obj#33), Symbol(test), Vec(obj#35))": "cpu:961, mem:80, objs:-/18@14ddf5e9, auth:-/-", | ||
" 34 ret call -> Err(Error(Budget, ExceededLimit))": "cpu:170900105, mem:480722", | ||
" 35 end": "cpu:170900105, mem:480722, prngs:-/9b4a753, objs:-/18@14ddf5e9, vm:-/-, evt:-, store:-/4@c2e56f7b, foot:4@694cf0e6, stk:-, auth:-/-" | ||
} |
5 changes: 5 additions & 0 deletions
5
soroban-env-host/observations/test__bytes__instantiate_oversized_bytes_from_slice.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
" 0 begin": "cpu:0, mem:0, prngs:-/-, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-", | ||
" 1 call bytes_new_from_slice(42000000)": "", | ||
" 2 end": "cpu:5250479, mem:42000016, prngs:-/-, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-" | ||
} |
62 changes: 31 additions & 31 deletions
62
soroban-env-host/observations/test__bytes__linear_memory_operations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
{ | ||
" 0 begin": "cpu:14488, mem:0, prngs:-/9b4a753, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-", | ||
" 1 call bytes_new_from_slice(1430)": "cpu:14535", | ||
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:15852, mem:1510, objs:-/1@4741f1c8", | ||
" 1 call bytes_new_from_slice(2087)": "cpu:14535", | ||
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:16016, mem:2167, objs:-/1@82043365", | ||
" 3 call upload_wasm(Bytes(obj#1))": "", | ||
" 4 ret upload_wasm -> Ok(Bytes(obj#3))": "cpu:1203273, mem:1304541, objs:-/2@9195e110, store:-/1@906eddde, foot:1@ece5d230", | ||
" 5 call bytes_new_from_slice(32)": "cpu:1203713, mem:1304605, objs:-/3@a077c749", | ||
" 6 ret bytes_new_from_slice -> Ok(Bytes(obj#7))": "cpu:1204682, mem:1304717, objs:-/4@cbbee396", | ||
" 4 ret upload_wasm -> Ok(Bytes(obj#3))": "cpu:1472648, mem:1331847, objs:-/2@8dc77fa6, store:-/1@10bf92fd, foot:1@3cc5f487", | ||
" 5 call bytes_new_from_slice(32)": "cpu:1473088, mem:1331911, objs:-/3@a780f4a1", | ||
" 6 ret bytes_new_from_slice -> Ok(Bytes(obj#7))": "cpu:1474057, mem:1332023, objs:-/4@5441559c", | ||
" 7 call create_contract(Address(obj#5), Bytes(obj#3), Bytes(obj#7))": "", | ||
" 8 call obj_cmp(Address(obj#9), Address(obj#5))": "cpu:1206325, mem:1304895, objs:-/5@c401ef9d, auth:1@351f54c4/-", | ||
" 9 ret obj_cmp -> Ok(0)": "cpu:1206617", | ||
" 10 call get_ledger_network_id()": "cpu:1206667, auth:1@351f54c4/1@bda4a8d6", | ||
" 11 ret get_ledger_network_id -> Ok(Bytes(obj#11))": "cpu:1207697, mem:1305007, objs:-/6@792a5a99", | ||
" 12 ret create_contract -> Ok(Address(obj#13))": "cpu:1225830, mem:1308081, objs:-/7@d6d51cb7, store:-/2@4836ccd0, foot:2@b1f2e802, auth:-/1@c4bfd12a", | ||
" 13 call call(Address(obj#13), Symbol(bin_word), Vec(obj#15))": "cpu:1226793, mem:1308169, objs:-/8@f97a0e5c, auth:-/-", | ||
" 14 push VM:1a49969b:bin_word(U32(2864434397))": "cpu:2338281, mem:2611694, objs:-/9@59a114a1, vm:1114112@35c37868/8@94bc4c8e, stk:1@d6c28afb, auth:1@b86eb558/-", | ||
" 15 call bytes_new_from_linear_memory(U32(1048572), U32(4))": "cpu:2340754, mem:2611740, vm:-/-", | ||
" 16 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#19))": "cpu:2342736, mem:2611824, objs:-/10@10243df2", | ||
" 17 pop VM:1a49969b:bin_word -> Ok(Bytes(obj#19))": "cpu:2343232, mem:2611848, objs:1@7f18fa80/10@10243df2, vm:1114112@dbc9a0e7/8@94bc4c8e, stk:1@ae7119ae", | ||
" 18 ret call -> Ok(Bytes(obj#19))": "cpu:2343293, objs:-/10@10243df2, vm:-/-, stk:-, auth:-/-", | ||
" 19 call obj_cmp(Bytes(obj#19), Bytes(obj#21))": "cpu:2344254, mem:2611932, objs:-/11@ec451b2e", | ||
" 20 ret obj_cmp -> Ok(0)": "cpu:2344542", | ||
" 21 call vec_new()": "cpu:2345503, mem:2612016, objs:-/12@96c9728e", | ||
" 22 ret vec_new -> Ok(Vec(obj#25))": "cpu:2346004, mem:2612080, objs:-/13@ed0e5a4f", | ||
" 8 call obj_cmp(Address(obj#9), Address(obj#5))": "cpu:1475700, mem:1332201, objs:-/5@6cbc65d6, auth:1@6a5ef2c9/-", | ||
" 9 ret obj_cmp -> Ok(0)": "cpu:1475992", | ||
" 10 call get_ledger_network_id()": "cpu:1476042, auth:1@6a5ef2c9/1@18e127e2", | ||
" 11 ret get_ledger_network_id -> Ok(Bytes(obj#11))": "cpu:1477072, mem:1332313, objs:-/6@f5a2751f", | ||
" 12 ret create_contract -> Ok(Address(obj#13))": "cpu:1495205, mem:1335387, objs:-/7@e8892517, store:-/2@29c9b16f, foot:2@53a52acb, auth:-/1@233e284a", | ||
" 13 call call(Address(obj#13), Symbol(bin_word), Vec(obj#15))": "cpu:1496168, mem:1335475, objs:-/8@4c0b0eb3, auth:-/-", | ||
" 14 push VM:75130317:bin_word(U32(2864434397))": "cpu:2840876, mem:2665649, objs:-/9@181ddb96, vm:1114112@67b8985c/12@d32baa7b, stk:1@be273e0f, auth:1@b86eb558/-", | ||
" 15 call bytes_new_from_linear_memory(U32(1048572), U32(4))": "cpu:2843349, mem:2665695, vm:-/-", | ||
" 16 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#19))": "cpu:2845331, mem:2665779, objs:-/10@8f3713f0", | ||
" 17 pop VM:75130317:bin_word -> Ok(Bytes(obj#19))": "cpu:2845827, mem:2665803, objs:1@7f18fa80/10@8f3713f0, vm:1114112@a2a6f9c8/12@d32baa7b, stk:1@b4a13456", | ||
" 18 ret call -> Ok(Bytes(obj#19))": "cpu:2845888, objs:-/10@8f3713f0, vm:-/-, stk:-, auth:-/-", | ||
" 19 call obj_cmp(Bytes(obj#19), Bytes(obj#21))": "cpu:2846849, mem:2665887, objs:-/11@3023d359", | ||
" 20 ret obj_cmp -> Ok(0)": "cpu:2847137", | ||
" 21 call vec_new()": "cpu:2848098, mem:2665971, objs:-/12@82e455c7", | ||
" 22 ret vec_new -> Ok(Vec(obj#25))": "cpu:2848599, mem:2666035, objs:-/13@40e25a5c", | ||
" 23 call vec_push_back(Vec(obj#25), Bytes(obj#23))": "", | ||
" 24 ret vec_push_back -> Ok(Vec(obj#27))": "cpu:2347211, mem:2612168, objs:-/14@d6d570bc", | ||
" 24 ret vec_push_back -> Ok(Vec(obj#27))": "cpu:2849806, mem:2666123, objs:-/14@b6924a77", | ||
" 25 call call(Address(obj#13), Symbol(bin_inc), Vec(obj#27))": "", | ||
" 26 push VM:1a49969b:bin_inc(Bytes(obj#23))": "cpu:3458699, mem:3915693, objs:-/15@7965dbb8, vm:1114112@35c37868/8@94bc4c8e, stk:1@5ba76850, auth:1@251a9ba2/-", | ||
" 27 call bytes_len(Bytes(obj#23))": "cpu:3461607, mem:3915763, objs:1@b5962073/15@7965dbb8, vm:-/-, stk:1@7d1ecd71", | ||
" 28 ret bytes_len -> Ok(U32(4))": "cpu:3463047", | ||
" 26 push VM:75130317:bin_inc(Bytes(obj#23))": "cpu:4194514, mem:3996297, objs:-/15@c506ccd2, vm:1114112@67b8985c/12@d32baa7b, stk:1@47d8fa40, auth:1@251a9ba2/-", | ||
" 27 call bytes_len(Bytes(obj#23))": "cpu:4197422, mem:3996367, objs:1@b5962073/15@c506ccd2, vm:-/-, stk:1@1e1dc600", | ||
" 28 ret bytes_len -> Ok(U32(4))": "cpu:4198862", | ||
" 29 call bytes_copy_to_linear_memory(Bytes(obj#23), U32(0), U32(1048572), U32(4))": "", | ||
" 30 ret bytes_copy_to_linear_memory -> Ok(Void)": "cpu:3463521", | ||
" 30 ret bytes_copy_to_linear_memory -> Ok(Void)": "cpu:4199336", | ||
" 31 call bytes_new_from_linear_memory(U32(1048572), U32(4))": "", | ||
" 32 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#31))": "cpu:3465615, mem:3915847, objs:1@b5962073/16@c05179b2", | ||
" 33 pop VM:1a49969b:bin_inc -> Ok(Bytes(obj#31))": "cpu:3466111, mem:3915871, objs:2@a8b6a51c/16@c05179b2, vm:1114112@9b517049/8@94bc4c8e, stk:1@74efcf1a", | ||
" 34 ret call -> Ok(Bytes(obj#31))": "cpu:3466172, objs:-/16@c05179b2, vm:-/-, stk:-, auth:-/-", | ||
" 35 call obj_cmp(Bytes(obj#31), Bytes(obj#33))": "cpu:3467133, mem:3915955, objs:-/17@3325e0fa", | ||
" 36 ret obj_cmp -> Ok(0)": "cpu:3467421", | ||
" 37 end": "cpu:3467421, mem:3915955, prngs:-/9b4a753, objs:-/17@3325e0fa, vm:-/-, evt:-, store:-/2@4836ccd0, foot:2@b1f2e802, stk:-, auth:-/-" | ||
" 32 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#31))": "cpu:4201430, mem:3996451, objs:1@b5962073/16@4c245c5f", | ||
" 33 pop VM:75130317:bin_inc -> Ok(Bytes(obj#31))": "cpu:4201926, mem:3996475, objs:2@a8b6a51c/16@4c245c5f, vm:1114112@2206e62e/12@d32baa7b, stk:1@aa3c8413", | ||
" 34 ret call -> Ok(Bytes(obj#31))": "cpu:4201987, objs:-/16@4c245c5f, vm:-/-, stk:-, auth:-/-", | ||
" 35 call obj_cmp(Bytes(obj#31), Bytes(obj#33))": "cpu:4202948, mem:3996559, objs:-/17@397f6f02", | ||
" 36 ret obj_cmp -> Ok(0)": "cpu:4203236", | ||
" 37 end": "cpu:4203236, mem:3996559, prngs:-/9b4a753, objs:-/17@397f6f02, vm:-/-, evt:-, store:-/2@29c9b16f, foot:2@53a52acb, stk:-, auth:-/-" | ||
} |
56 changes: 56 additions & 0 deletions
56
soroban-env-host/observations/test__bytes__test_bytes_out_of_cpu_budget.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
" 0 begin": "cpu:0, mem:0, prngs:-/-, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-", | ||
" 1 call bytes_new_from_slice(1)": "", | ||
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:961, mem:81, objs:-/1@14491895", | ||
" 3 call bytes_append(Bytes(obj#1), Bytes(obj#1))": "", | ||
" 4 ret bytes_append -> Ok(Bytes(obj#3))": "cpu:2227, mem:163, objs:-/2@83649021", | ||
" 5 call bytes_append(Bytes(obj#3), Bytes(obj#3))": "", | ||
" 6 ret bytes_append -> Ok(Bytes(obj#5))": "cpu:3493, mem:247, objs:-/3@d82f95c7", | ||
" 7 call bytes_append(Bytes(obj#5), Bytes(obj#5))": "", | ||
" 8 ret bytes_append -> Ok(Bytes(obj#7))": "cpu:4761, mem:335, objs:-/4@441371c6", | ||
" 9 call bytes_append(Bytes(obj#7), Bytes(obj#7))": "", | ||
" 10 ret bytes_append -> Ok(Bytes(obj#9))": "cpu:6031, mem:431, objs:-/5@7b6d63c4", | ||
" 11 call bytes_append(Bytes(obj#9), Bytes(obj#9))": "", | ||
" 12 ret bytes_append -> Ok(Bytes(obj#11))": "cpu:7305, mem:543, objs:-/6@2339dc5d", | ||
" 13 call bytes_append(Bytes(obj#11), Bytes(obj#11))": "", | ||
" 14 ret bytes_append -> Ok(Bytes(obj#13))": "cpu:8587, mem:687, objs:-/7@ffb29f32", | ||
" 15 call bytes_append(Bytes(obj#13), Bytes(obj#13))": "", | ||
" 16 ret bytes_append -> Ok(Bytes(obj#15))": "cpu:9885, mem:895, objs:-/8@a09e9d56", | ||
" 17 call bytes_append(Bytes(obj#15), Bytes(obj#15))": "", | ||
" 18 ret bytes_append -> Ok(Bytes(obj#17))": "cpu:11215, mem:1231, objs:-/9@6bb65fcb", | ||
" 19 call bytes_append(Bytes(obj#17), Bytes(obj#17))": "", | ||
" 20 ret bytes_append -> Ok(Bytes(obj#19))": "cpu:12609, mem:1823, objs:-/10@7519d17d", | ||
" 21 call bytes_append(Bytes(obj#19), Bytes(obj#19))": "", | ||
" 22 ret bytes_append -> Ok(Bytes(obj#21))": "cpu:14131, mem:2927, objs:-/11@9ee063bf", | ||
" 23 call bytes_append(Bytes(obj#21), Bytes(obj#21))": "", | ||
" 24 ret bytes_append -> Ok(Bytes(obj#23))": "cpu:15909, mem:5055, objs:-/12@4163c760", | ||
" 25 call bytes_append(Bytes(obj#23), Bytes(obj#23))": "", | ||
" 26 ret bytes_append -> Ok(Bytes(obj#25))": "cpu:18199, mem:9231, objs:-/13@24166db4", | ||
" 27 call bytes_append(Bytes(obj#25), Bytes(obj#25))": "", | ||
" 28 ret bytes_append -> Ok(Bytes(obj#27))": "cpu:21513, mem:17503, objs:-/14@3e88ce53", | ||
" 29 call bytes_append(Bytes(obj#27), Bytes(obj#27))": "", | ||
" 30 ret bytes_append -> Ok(Bytes(obj#29))": "cpu:26875, mem:33967, objs:-/15@7b141536", | ||
" 31 call bytes_append(Bytes(obj#29), Bytes(obj#29))": "", | ||
" 32 ret bytes_append -> Ok(Bytes(obj#31))": "cpu:36333, mem:66815, objs:-/16@aff62fd2", | ||
" 33 call bytes_append(Bytes(obj#31), Bytes(obj#31))": "", | ||
" 34 ret bytes_append -> Ok(Bytes(obj#33))": "cpu:53983, mem:132431, objs:-/17@21ded77f", | ||
" 35 call bytes_append(Bytes(obj#33), Bytes(obj#33))": "", | ||
" 36 ret bytes_append -> Ok(Bytes(obj#35))": "cpu:88017, mem:263583, objs:-/18@3d8a5d8a", | ||
" 37 call bytes_append(Bytes(obj#35), Bytes(obj#35))": "", | ||
" 38 ret bytes_append -> Ok(Bytes(obj#37))": "cpu:154819, mem:525807, objs:-/19@2fa9b405", | ||
" 39 call bytes_append(Bytes(obj#37), Bytes(obj#37))": "", | ||
" 40 ret bytes_append -> Ok(Bytes(obj#39))": "cpu:287157, mem:1050175, objs:-/20@fec44da9", | ||
" 41 call bytes_append(Bytes(obj#39), Bytes(obj#39))": "", | ||
" 42 ret bytes_append -> Ok(Bytes(obj#41))": "cpu:550567, mem:2098831, objs:-/21@15d7c83c", | ||
" 43 call bytes_append(Bytes(obj#41), Bytes(obj#41))": "", | ||
" 44 ret bytes_append -> Ok(Bytes(obj#43))": "cpu:1076121, mem:4196063, objs:-/22@321ed8ec", | ||
" 45 call bytes_append(Bytes(obj#43), Bytes(obj#43))": "", | ||
" 46 ret bytes_append -> Ok(Bytes(obj#45))": "cpu:2125963, mem:8390447, objs:-/23@e3216d9f", | ||
" 47 call bytes_append(Bytes(obj#45), Bytes(obj#45))": "", | ||
" 48 ret bytes_append -> Ok(Bytes(obj#47))": "cpu:4224381, mem:16779135, objs:-/24@fac7eef1", | ||
" 49 call bytes_append(Bytes(obj#47), Bytes(obj#47))": "", | ||
" 50 ret bytes_append -> Ok(Bytes(obj#49))": "cpu:8419951, mem:33556431, objs:-/25@58921f44", | ||
" 51 call bytes_append(Bytes(obj#49), Bytes(obj#49))": "", | ||
" 52 ret bytes_append -> Err(Error(Budget, ExceededLimit))": "cpu:12614978, mem:67110879", | ||
" 53 end": "cpu:12614978, mem:67110879, prngs:-/-, objs:-/25@58921f44, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-" | ||
} |
62 changes: 62 additions & 0 deletions
62
soroban-env-host/observations/test__bytes__test_bytes_out_of_mem_budget.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
" 0 begin": "cpu:0, mem:0, prngs:-/-, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-", | ||
" 1 call bytes_new_from_slice(1)": "", | ||
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:961, mem:81, objs:-/1@14491895", | ||
" 3 call bytes_append(Bytes(obj#1), Bytes(obj#1))": "", | ||
" 4 ret bytes_append -> Ok(Bytes(obj#3))": "cpu:2227, mem:163, objs:-/2@83649021", | ||
" 5 call bytes_append(Bytes(obj#3), Bytes(obj#3))": "", | ||
" 6 ret bytes_append -> Ok(Bytes(obj#5))": "cpu:3493, mem:247, objs:-/3@d82f95c7", | ||
" 7 call bytes_append(Bytes(obj#5), Bytes(obj#5))": "", | ||
" 8 ret bytes_append -> Ok(Bytes(obj#7))": "cpu:4761, mem:335, objs:-/4@441371c6", | ||
" 9 call bytes_append(Bytes(obj#7), Bytes(obj#7))": "", | ||
" 10 ret bytes_append -> Ok(Bytes(obj#9))": "cpu:6031, mem:431, objs:-/5@7b6d63c4", | ||
" 11 call bytes_append(Bytes(obj#9), Bytes(obj#9))": "", | ||
" 12 ret bytes_append -> Ok(Bytes(obj#11))": "cpu:7305, mem:543, objs:-/6@2339dc5d", | ||
" 13 call bytes_append(Bytes(obj#11), Bytes(obj#11))": "", | ||
" 14 ret bytes_append -> Ok(Bytes(obj#13))": "cpu:8587, mem:687, objs:-/7@ffb29f32", | ||
" 15 call bytes_append(Bytes(obj#13), Bytes(obj#13))": "", | ||
" 16 ret bytes_append -> Ok(Bytes(obj#15))": "cpu:9885, mem:895, objs:-/8@a09e9d56", | ||
" 17 call bytes_append(Bytes(obj#15), Bytes(obj#15))": "", | ||
" 18 ret bytes_append -> Ok(Bytes(obj#17))": "cpu:11215, mem:1231, objs:-/9@6bb65fcb", | ||
" 19 call bytes_append(Bytes(obj#17), Bytes(obj#17))": "", | ||
" 20 ret bytes_append -> Ok(Bytes(obj#19))": "cpu:12609, mem:1823, objs:-/10@7519d17d", | ||
" 21 call bytes_append(Bytes(obj#19), Bytes(obj#19))": "", | ||
" 22 ret bytes_append -> Ok(Bytes(obj#21))": "cpu:14131, mem:2927, objs:-/11@9ee063bf", | ||
" 23 call bytes_append(Bytes(obj#21), Bytes(obj#21))": "", | ||
" 24 ret bytes_append -> Ok(Bytes(obj#23))": "cpu:15909, mem:5055, objs:-/12@4163c760", | ||
" 25 call bytes_append(Bytes(obj#23), Bytes(obj#23))": "", | ||
" 26 ret bytes_append -> Ok(Bytes(obj#25))": "cpu:18199, mem:9231, objs:-/13@24166db4", | ||
" 27 call bytes_append(Bytes(obj#25), Bytes(obj#25))": "", | ||
" 28 ret bytes_append -> Ok(Bytes(obj#27))": "cpu:21513, mem:17503, objs:-/14@3e88ce53", | ||
" 29 call bytes_append(Bytes(obj#27), Bytes(obj#27))": "", | ||
" 30 ret bytes_append -> Ok(Bytes(obj#29))": "cpu:26875, mem:33967, objs:-/15@7b141536", | ||
" 31 call bytes_append(Bytes(obj#29), Bytes(obj#29))": "", | ||
" 32 ret bytes_append -> Ok(Bytes(obj#31))": "cpu:36333, mem:66815, objs:-/16@aff62fd2", | ||
" 33 call bytes_append(Bytes(obj#31), Bytes(obj#31))": "", | ||
" 34 ret bytes_append -> Ok(Bytes(obj#33))": "cpu:53983, mem:132431, objs:-/17@21ded77f", | ||
" 35 call bytes_append(Bytes(obj#33), Bytes(obj#33))": "", | ||
" 36 ret bytes_append -> Ok(Bytes(obj#35))": "cpu:88017, mem:263583, objs:-/18@3d8a5d8a", | ||
" 37 call bytes_append(Bytes(obj#35), Bytes(obj#35))": "", | ||
" 38 ret bytes_append -> Ok(Bytes(obj#37))": "cpu:154819, mem:525807, objs:-/19@2fa9b405", | ||
" 39 call bytes_append(Bytes(obj#37), Bytes(obj#37))": "", | ||
" 40 ret bytes_append -> Ok(Bytes(obj#39))": "cpu:287157, mem:1050175, objs:-/20@fec44da9", | ||
" 41 call bytes_append(Bytes(obj#39), Bytes(obj#39))": "", | ||
" 42 ret bytes_append -> Ok(Bytes(obj#41))": "cpu:550567, mem:2098831, objs:-/21@15d7c83c", | ||
" 43 call bytes_append(Bytes(obj#41), Bytes(obj#41))": "", | ||
" 44 ret bytes_append -> Ok(Bytes(obj#43))": "cpu:1076121, mem:4196063, objs:-/22@321ed8ec", | ||
" 45 call bytes_append(Bytes(obj#43), Bytes(obj#43))": "", | ||
" 46 ret bytes_append -> Ok(Bytes(obj#45))": "cpu:2125963, mem:8390447, objs:-/23@e3216d9f", | ||
" 47 call bytes_append(Bytes(obj#45), Bytes(obj#45))": "", | ||
" 48 ret bytes_append -> Ok(Bytes(obj#47))": "cpu:4224381, mem:16779135, objs:-/24@fac7eef1", | ||
" 49 call bytes_append(Bytes(obj#47), Bytes(obj#47))": "", | ||
" 50 ret bytes_append -> Ok(Bytes(obj#49))": "cpu:8419951, mem:33556431, objs:-/25@58921f44", | ||
" 51 call bytes_append(Bytes(obj#49), Bytes(obj#49))": "", | ||
" 52 ret bytes_append -> Ok(Bytes(obj#51))": "cpu:16809825, mem:67110943, objs:-/26@7d3132a7", | ||
" 53 call bytes_append(Bytes(obj#51), Bytes(obj#51))": "", | ||
" 54 ret bytes_append -> Ok(Bytes(obj#53))": "cpu:33588307, mem:134219887, objs:-/27@e5c9123e", | ||
" 55 call bytes_append(Bytes(obj#53), Bytes(obj#53))": "", | ||
" 56 ret bytes_append -> Ok(Bytes(obj#55))": "cpu:67144005, mem:268437695, objs:-/28@e46fd67d", | ||
" 57 call bytes_append(Bytes(obj#55), Bytes(obj#55))": "", | ||
" 58 ret bytes_append -> Err(Error(Budget, ExceededLimit))": "cpu:100699160", | ||
" 59 end": "cpu:100699160, mem:268437695, prngs:-/-, objs:-/28@e46fd67d, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-" | ||
} |
Oops, something went wrong.