-
Notifications
You must be signed in to change notification settings - Fork 326
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
Function libsql_malloc not found in Wasm module #153
Comments
Hi @wkozaczuk, great news on OSv! As for the .init_wasm_func_table -- only needed for shell
DROP FUNCTION IF EXISTS encrypt;
CREATE FUNCTION encrypt LANGUAGE wasm AS X'0061736d01000000013f0a60047f7f7f7f0060027f7f017f60027f7f0060037f7f7f0060017f0060017f017f60057f7f7f7f7f0060057f7f7f7f7f017f60037f7f7f017f60027f7f00031e1d03040303010009030502010302060600070105040001050708080508080405017001080805030100110619037f01418080c0000b7f0041b48bc0000b7f0041c08bc0000b073f05066d656d6f727902000d6c696273716c5f6d616c6c6f63000807656e6372797074000a0a5f5f646174615f656e6403010b5f5f686561705f626173650302090d010041010b07131415160f11120a9e8d011da403010d7f2000200228000c2203200128000c22044101767341d5aad5aa05712208200373220320022800082205200128000822064101767341d5aad5aa0571220920057322054102767341b3e6cc990371220b2003732203200228000422072001280004220a4101767341d5aad5aa0571220c200773220720022800002202200128000022014101767341d5aad5aa0571220d20027322024102767341b3e6cc990371220e200773220741047673418f9ebcf80071220f20037336021c200020042008410174732203200620094101747322044102767341b3e6cc99037122082003732203200a200c4101747322062001200d4101747322014102767341b3e6cc9903712209200673220641047673418f9ebcf80071220a2003733602182000200b4102742005732203200e410274200273220241047673418f9ebcf8007122052003733602142000200f41047420077336020c2000200841027420047322032009410274200173220141047673418f9ebcf8007122042003733602102000200a41047420067336020820002005410474200273360204200020044104742001733602000ba104011b7f2000200028021c2201200028020422077322082000280210220220002802082204732210732211200028020c732205200473220d201171220920052000280218220673220b73200d2000280200220573221720062000280214732203200573220620077322162001200473220773221471732003200d73220e200b200120027322127322047322152010712004201271220c73220a732213200620167120082003200473220b7273200a73220a71220320022006732218200571200773200e732009732007200e71200c73220273220973200a200420057322192001200673221a71200b2008417f73712001737320027322027371220c200373200271220f2002200373220173200120092013732203712009732201712003732203200a200f73220a2002200c73220273220973220c2001200273221373220f201071201220137122107322122009201471732214200a201171732211200f20157120012003732215200b71220b200320067173220f73221b20042013717322067336021c20002007200c71201073200673200c200e7120082015712204200a200d712208200220057173220d7373201b7322072001201a7173220e7336021420002009201771200873200f73201173220536021020002014200220187173200e733602082000200d200120197173200b732201201220032016717373220820077336020420002004200873360200200020052006733602182000200120057336020c0b9d0101037f410041f80020016b2204200441f8004b1b2105200141706a2104200141027420006a41406a2101024003402003200546200320046a41f7004b720d01200141406b2200200128020020002802002002784183868c187173220041027441fcf9f36771200073200041047441f0e1c3877f7173200041067441c08183867c7173360200200141046a2101200341016a22034108470d000b0f0b000b5101017f02402001450440410121030c010b2001417f4a2203044020012003100421030240200204402003450d01200341002001101c1a0c030b20030d020b000b000b20002003360204200020013602000ba20101027f230041106b220224000240200041036a4102762200417f6a22034180024f0440200241b08bc00028020036020820002001200241086a41e882c000418083c0001010210041b08bc00020022802083602000c010b200241b08bc0003602042002200341027441b083c0006a220328020036020c200020012002410c6a200241046a419883c000101021002003200228020c3602000b200241106a240020000bbb0101017f2000027f024002400240024020020440024002400240200141004e044020032802080d012001450d020c060b0c040b200328020422040d0120010d040b410121020c050b200328020021032001410110042202450d03200220032004101b1a2003200410060c040b200020013602040b200041086a410036020041010c030b20014101100422020d010b20002001360204200041086a410136020041010c010b20002002360204200041086a200136020041000b3602000bf10201057f200141036a410276417f6a220241ff014d04402000200241027441b083c0006a2201280200360200200041786a22022002280200417e71360200200120023602000f0b20004100360200200041786a220220022802002201417e7136020041b08bc0002802002105024002400240024002400240200241046a2204280200417c712203450d00200328020022064101710d002001417c712200452001410271720d012000200028020441037120037236020420042802002200417c712201450d032002280200417c712100200128020021060c020b02402001417c712203452001410271720d0020032d00004101710d0020002003280208417c71360200200320024101723602080c040b200020053602000c040b200321010b20012006410371200072360200200428020021000b200420004103713602002002200228020022004103713602002000410271450d00200320032802004102723602000b200521020b41b08bc00020023602000bc60502077f027e2000027f02402002450d004100200241796a2203200320024b1b2107200141036a417c7120016b2208417f4621094100210303400240024002400240027e0240024002400240200120036a2d00002204411874411875220641004e04402009200820036b410371720d0120032007490d020c080b42808080808020210a428080808010210b02400240024002400240200441c080c0006a2d0000417e6a0e030002010b0b200341016a22042002490d024200210a0c090b4200210a200341016a220520024f0d08200120056a2c000021050240024002400240200441907e6a0e050100000002000b2006410f6a41ff017141024b200541404e720d090c020b200541f0006a41ff017141304f0d080c010b2005418f7f4a0d070b200341026a220420024f0d08200120046a2c000041bf7f4a0d054200210b200341036a220420024f0d09200120046a2c000041bf7f4c0d02428080808080e0000c070b4200210a200341016a220520024f0d07200120056a2c00002105024002400240200441e001470440200441ed01460d012006411f6a41ff0171410c490d022006417e71416e47200541404e720d090c030b200541607141a07f470d080c020b200541a07f4e0d070c010b200541bf7f4a0d060b4200210b200341026a220420024f0d08200120046a2c000041bf7f4a0d040c010b200120046a2c000041bf7f4a0d070b200441016a21030c080b200341016a21030c070b0340200120036a220441046a280200200428020072418081828478710d06200341086a22032007490d000b0c050b428080808080c0000c010b428080808080200b210a428080808010210b0c010b4200210b0b2000200a2003ad84200b8437020441010c040b200320024f0d000340200120036a2c00004100480d012002200341016a2203470d000b0c020b20032002490d000b0b20002001360204200041086a200236020041000b3602000b2401017f230041106b22012400200141086a200041001003200128020c200141106a24000b940101047f230041206b220224004103210341c082c0002104200241086a20012d00004103460440200241106a200141016a22032003101a100741c382c0002002280214200228021022031b21044103200241186a28020020031b21030b200341001003200228020821012000200228020c220536020420002001360200200520042003101b1a20002003360208200241206a24000b9b38021c7f057e230041f0096b22022400200241186a20001009200241286a20011009200241f0006a420037030020024200370368200241a8056a410041c000101c1a200241e0016a200241a8056a41c000101b2101200241c0016a41d082c000290200370300200241c8016a41d882c000290200370300200241d0016a41e082c000290200370300200241003602a002200241c882c0002902003703b801200220022802302200ad4203863703d801200228022c210402402000413f4d0440200120042000101b1a20022802a00220006a21000c010b200241b8016a20042000410676100b2001200420004140716a2000413f712200101b1a0b200220003602a002200241a8056a200241b8016a41f000101b1a200241a0096a4200370300200241a8096a4200370300200241b0096a42003703002002420037039809200241d0056a210120022903c805211e0240024020024190066a280200220041c000470440200041c000490d010c020b200241a8056a20014101100b4100210020024100360290060b200020016a4180013a00002002200228029006220541016a220836029006200841c1004f0d0041002100200120086a4100413f20056b101c1a20022802900641476a4108490440200241a8056a20014101100b200228029006220841c1004f0d01200141002008101c1a0b20024188066a201e42288642808080808080c0ff0083201e42388684201e421886428080808080e03f83201e4208864280808080f01f838484201e42088842808080f80f83201e421888428080fc078384201e4228884280fe0383201e423888848484370300200241a8056a20014101100b2002410036029006200241e8096a200241c0056a290300370300200241e0096a200241b8056a290300370300200241d8096a200241b0056a290300370300200220022903a8053703d009034020024198096a20006a200241d0096a20006a28020022014118742001410874418080fc07717220014108764180fe037120014118767272360000200041046a22004120470d000b200241406b200241a0096a290300370300200241c8006a200241a8096a290300370300200241d0006a200241b0096a290300370300200241e0006a200241f0006a2903003703002002200229039809370338200220022903683703582002280228220004402004200010060b200228021c2101200241106a2002280220220a41001003200228021021002002280214220d2001200a101b2104024002402000200a6b200a41106a417071220c200a6b22014f0440200021100c010b2001200a6a2210200a490d022010417f73411f762101024020000440200241013602b005200220003602ac05200220043602a8050c010b200241003602b0050b200241b8016a20102001200241a8056a100520022802b8010d0120022802bc01210d0b200241d8006a2109200241a8056a410041e003101c1a200241a8056a200241386a200241386a1000200241c8056a200241c8006a220020001000200241a8056a210441172103410821050340410021000340200020046a220141dc006a2001413c6a2802003602002000417c6a22004160470d000b200241a8056a200541086a22014102746a2200100120002000280200417f7336020020002000280204417f7336020420002000280214417f7336021420002000280218417f73360218200020074102746a220020002802004180800373360200200241a8056a2001410e1002200741016a2207410746044041002100410821050340024002402000410171450440200541e8004f0d010c020b2005411f6a22002005490d0020002105200041e800490d010b41a00321000340200241a8056a20006a220120012802002201410476200173418098bc1871220420017320044104747322014102762001734180e6809803712204200173200441027473360200200041046a220041c003470d000b410021010340200241a8056a20016a220041206a22042004280200417f73360200200041246a22042004280200417f73360200200041346a22042004280200417f73360200200041386a22002000280200417f73360200200141206a220141c003470d000b20024198056a2009100c200241b8016a200241a8056a41e003101b1a200241a8056a200241b8016a41f003101b1a200c200a41707122004d200a416f4b720d05200041106a2201200c4b0d052000200d6a200a410f7122006a411020006b22002000101c1a20024188096a2104024020014504402004210e0c010b2001200d6a2115200241a8066a211620024188066a2117200241e8056a2118200241c8056a2119200241e8086a211a200241a8096a211b200241d8096a2111200241e8096a211c200d211203402012220e41106a21124100210003402000200e6a220120012d0000200020046a2d0000733a0000200041016a22004110470d000b20114200370300200242003703d00941002100034020024198096a20006a220120022903d009370000200141086a2011290300370000200041106a22004120470d000b200241a0096a2214200e41086a221d2900003703002002200e29000037039809201c4200370300200241e0096a420037030020114200370300200242003703d009200241d0096a20024198096a201b1000410021000340200241d0096a20006a22012001280200200241a8056a20006a28020073360200200041046a22004120470d000b4108210a201621082017210520182107201921040340200241d0096a1001200220022802ec09220041167741bffefcf903712000411e7741c08183867c7172220320022802e809220141167741bffefcf903712001411e7741c08183867c7172220620017322017320002003732200410c77418f9ebcf80071200041147741f0e1c3877f7172733602ec0920022001410c77418f9ebcf80071200141147741f0e1c3877f7172200620022802e409220341167741bffefcf903712003411e7741c08183867c71722209200373220373733602e80920022003410c77418f9ebcf80071200341147741f0e1c3877f7172200920022802e009220141167741bffefcf903712001411e7741c08183867c71722206200173220173733602e40920022001410c77418f9ebcf80071200141147741f0e1c3877f7172200620022802dc09220341167741bffefcf903712003411e7741c08183867c71722209200373220373200073733602e009200220022802d809220141167741bffefcf903712001411e7741c08183867c7172220b20022802d409220641167741bffefcf903712006411e7741c08183867c7172220f2006732206732001200b732201410c77418f9ebcf80071200141147741f0e1c3877f7172733602d80920022003410c77418f9ebcf80071200341147741f0e1c3877f71722001200973732000733602dc0920022006410c77418f9ebcf80071200641147741f0e1c3877f7172200f20022802d009220141167741bffefcf903712001411e7741c08183867c71722203200173220173732000733602d40920022001410c77418f9ebcf80071200141147741f0e1c3877f71722003732000733602d009200a41086a410021000340200241d0096a20006a22012001280200200020046a28020073360200200041046a22004120470d000b41f000460440410021000340200241d0096a20006a22012001280200220141047620017341809e80f800712204200173200441047473360200200041046a22004120470d000b200241d0096a1001410021000340200241d0096a20006a220120012802002000201a6a28020073360200200041046a22004120470d000b201420022802ec0941017441aad5aad57a7120022802e80941d5aad5aa057172220020022802e40941017441aad5aad57a7120022802e00941d5aad5aa05717222014102767341b3e6cc9903712204410274200173220120022802dc0941017441aad5aad57a7120022802d80941d5aad5aa057172220820022802d40941017441aad5aad57a7120022802d00941d5aad5aa05717222054102767341b3e6cc9903712207410274200573220541047673418f9ebcf8007122032001733602002002200020047322002007200873220141047673418f9ebcf8007122042000733602a4092002200441047420017336029c092002200341047420057336029809201d2014290300370000200e200229039809370000200e210420122015470d0205200241d0096a1001200220022802ec092200411477418f9ebcf800712000411c7741f0e1c3877f7172220320022802e8092201411477418f9ebcf800712001411c7741f0e1c3877f7172220620017322097320002003732200411077733602ec092002200620022802e4092201411477418f9ebcf800712001411c7741f0e1c3877f71722203200173220b732009411077733602e8092002200320022802e0092201411477418f9ebcf800712001411c7741f0e1c3877f71722206200173220973200b411077733602e409200220022802d8092201411477418f9ebcf800712001411c7741f0e1c3877f7172220b20022802d4092203411477418f9ebcf800712003411c7741f0e1c3877f7172220f2003732203732001200b73220b411077733602d8092002200620022802dc092201411477418f9ebcf800712001411c7741f0e1c3877f717222132001732201732009411077732000733602e0092002200b2013732001411077732000733602dc092002200f20022802d0092201411477418f9ebcf800712001411c7741f0e1c3877f717222062001732201732003411077732000733602d409200220014110772006732000733602d009410021000340200241d0096a20006a22012001280200200020076a28020073360200200041046a22004120470d000b200241d0096a1001200220022802ec0922004112774183868c18712000411a7741fcf9f3677172220320022802e80922014112774183868c18712001411a7741fcf9f3677172220620017322017320002003732200410c77418f9ebcf80071200041147741f0e1c3877f7172733602ec0920022001410c77418f9ebcf80071200141147741f0e1c3877f7172200620022802e40922034112774183868c18712003411a7741fcf9f36771722209200373220373733602e80920022003410c77418f9ebcf80071200341147741f0e1c3877f7172200920022802e00922014112774183868c18712001411a7741fcf9f36771722206200173220173733602e40920022001410c77418f9ebcf80071200141147741f0e1c3877f7172200620022802dc0922034112774183868c18712003411a7741fcf9f36771722209200373220373200073733602e009200220022802d80922014112774183868c18712001411a7741fcf9f3677172220b20022802d40922064112774183868c18712006411a7741fcf9f3677172220f2006732206732001200b732201410c77418f9ebcf80071200141147741f0e1c3877f7172733602d80920022003410c77418f9ebcf80071200341147741f0e1c3877f71722001200973732000733602dc0920022006410c77418f9ebcf80071200641147741f0e1c3877f7172200f20022802d00922014112774183868c18712001411a7741fcf9f36771722203200173220173732000733602d40920022001410c77418f9ebcf80071200141147741f0e1c3877f71722003732000733602d009410021000340200241d0096a20006a22012001280200200020056a28020073360200200041046a22004120470d000b200241d0096a1001200220022802ec092200411877220120022802e8092203411877220620037322037320002001732200411077733602ec092002200620022802e409220141187722092001732201732003411077733602e8092002200920022802e009220341187722062003732203732001411077733602e409200220022802d8092201411877220920022802d409220b411877220f200b73220b7320012009732201411077733602d8092002200620022802dc09220941187722132009732209732003411077732000733602e009200220012013732009411077732000733602dc092002200f20022802d00922014118772203200173220173200b411077732000733602d409200220014110772003732000733602d009200a41206a210a410021000340200241d0096a20006a22012001280200200020086a28020073360200200041046a22004120470d000b20084180016a210820054180016a210520074180016a210720044180016a21040c010b0b0b0b200241d0096a200e100c200c41036e220041ffffffff03712000472101200041027421000240200c410370220904402001200041046a2205200049720d070c010b2000210520010d060b200241086a20054101100341002101200228020c21032002280208210b0240200c411b490440410021040c010b4100200c41666a22002000200c4b1b210641002100034020004160462001411a6a200c4b720d07200041206a220420054b0d07200020036a22002001200d6a2208290000221e4238862220423a88a7418080406b2d00003a0000200041086a200841066a290000221f4238862221423a88a7418080406b2d00003a0000200041016a2020201e42288642808080808080c0ff0083842220423488a7413f71418080406b2d00003a0000200041076a201e42088842808080f80f83201e421888428080fc078384201e4228884280fe0383201e42388884842222a72207411076413f71418080406b2d00003a0000200041066a2007411676413f71418080406b2d00003a0000200041046a2020201e421886428080808080e03f83201e4208864280808080f01f838484221e422288a7413f71418080406b2d00003a0000200041036a201e422888a7413f71418080406b2d00003a0000200041026a201e422e88a7413f71418080406b2d00003a0000200041056a201e202284421c88a7413f71418080406b2d00003a0000200041096a2021201f42288642808080808080c0ff008384221e423488a7413f71418080406b2d00003a00002000410f6a201f42088842808080f80f83201f421888428080fc078384201f4228884280fe0383201f42388884842220a72207411076413f71418080406b2d00003a00002000410e6a2007411676413f71418080406b2d00003a00002000410c6a201e201f421886428080808080e03f83201f4208864280808080f01f838484221e422288a7413f71418080406b2d00003a00002000410b6a201e422888a7413f71418080406b2d00003a00002000410a6a201e422e88a7413f71418080406b2d00003a00002000410d6a201e202084421c88a7413f71418080406b2d00003a0000200041176a2008410c6a290000221e42088842808080f80f83201e421888428080fc078384201e4228884280fe0383201e4238888484221fa72207411076413f71418080406b2d00003a0000200041166a2007411676413f71418080406b2d00003a0000200041156a201e4238862220201e42288642808080808080c0ff0083842221201e421886428080808080e03f83201e4208864280808080f01f838484221e201f84421c88a7413f71418080406b2d00003a0000200041146a201e422288a7413f71418080406b2d00003a0000200041136a201e422888a7413f71418080406b2d00003a0000200041126a201e422e88a7413f71418080406b2d00003a0000200041116a2021423488a7413f71418080406b2d00003a0000200041106a2020423a88a7418080406b2d00003a0000200041186a200841126a290000221e423886221f423a88a7418080406b2d00003a0000200041196a201f201e42288642808080808080c0ff008384221f423488a7413f71418080406b2d00003a00002000411f6a201e42088842808080f80f83201e421888428080fc078384201e4228884280fe0383201e42388884842220a72208411076413f71418080406b2d00003a00002000411e6a2008411676413f71418080406b2d00003a00002000411c6a201f201e421886428080808080e03f83201e4208864280808080f01f838484221e422288a7413f71418080406b2d00003a00002000411b6a201e422888a7413f71418080406b2d00003a00002000411a6a201e422e88a7413f71418080406b2d00003a00002000411d6a201e202084421c88a7413f71418080406b2d00003a000020042100200141186a220120064d0d000b0b02402001200c20096b220a4f0440200421070c010b0340200141036a2208200c4b2004417b4b720d07200441046a220720054b0d07200320046a22002001200d6a22012d00002204410276418080406b2d00003a0000200041036a200141026a2d00002206413f71418080406b2d00003a0000200041026a200141016a2d00002201410274200641067672413f71418080406b2d00003a0000200041016a2001410476410f71200441047472413f71418080406b2d00003a00002007210420082201200a490d000b0b02400240024002402009417f6a0e020001030b200720054f0d0841022101200320076a200a200d6a2d00002204410276418080406b2d00003a0000200741016a220020054f0d08200441047441307121040c010b200720054f0d07200320076a200a200d6a2d00002200410276418080406b2d00003a0000200a41016a2201200c4f0d07200741016a220420054f0d07200320046a20004104742001200d6a2d0000220141047672413f71418080406b2d00003a0000200741026a220020054f0d072001410274413c712104410321010b200020036a2004418080406b2d00003a0000200120076a21070b20052007490d05024020094103734103702204450440410021010c010b200320076a2106200520076b210841002100034020002008460d07200020066a413d3a0000200041016a21014101210020012004490d000b0b200120076a2007490d05200241a8056a20032005100720022802a8050440200241b0056a310000422086428080808020520d060b20100440200d201010060b200228021822000440200228021c200010060b2002200541026a2201410110032001450d052002280204220041033a0000200041016a20032005101b1a2001200541016a22044d0d05200020046a41003a0000200b04402003200b10060b200241f0096a240020000f0b200541086a220341f9004f0d04200541016a200241a8056a20054102746a2108410021000340200020086a220120012802002201410476200173418098bc1871220420017320044104747322014102762001734180e6809803712204200173200441027473360200200041046a22004120470d000b200541106a2207200349200741f8004b720d04200241a8056a20034102746a2108410021000340200020086a22012001280200220141047620017341809e80f800712204200173200441047473360200200041046a22004120470d000b200541186a2200200749200041f8004b720d04200241a8056a20074102746a2108410021000340200020086a220120012802002201410476200173418086bce00071220420017320044104747322014102762001734180e6809803712204200173200441027473360200200041046a22004120470d000b4101210021050c000b000b200541106a210541002101200321000340200041ef004b0d03200120046a220841fc006a200841dc006a2802003602002000417f6a21002001417c6a22014160470d000b200241a8056a20054102746a2200100120002000280200417f7336020020002000280204417f7336020420002000280214417f7336021420002000280218417f73360218200241a8056a200541061002200341106a2103200441406b21040c000b000b200241c0016a280200450d0020022802bc011a000b000bd02e01217f23004180016b220324002003410041c000101c2103200028021c211e2000280218211f2000280214211a2000280210211b200028020c2120200028020821212000280204211c2000280200211d20020440200120024106746a21220340200141406b410021020340200220036a200120026a280000220c411874200c410874418080fc077172200c4108764180fe0371200c4118767272360200200241046a220241c000470d000b200328023c2111200328023821122003280234211920032802302102200328022c211320032802282114200328022421152003280220210d200328021c2116200328021821172003280214211820032802102101200328020c210c2003280208210e2003280204210f2003280200211020032021360260200320203602642003201f3602682003201e36026c2003201a36027c2003201b3602782003201c3602742003201d360270200341d0006a200341e0006a200341f0006a200f419189dd89076a20104198dfa894046a100d200328025021042003280254210520032802582106200328025c21072003201a36026c2003201b3602682003201c3602642003201d3602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a200c41a5b7d7cd7e6a200e41cff783ae7b6a100d20032802502108200328025421092003280258210a200328025c210b2003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201841f1a3c4cf056a200141db84dbca036a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a201641d5bdf1d87a6a201741a485fe91796a100d20032802502108200328025421092003280258210a200328025c210b2003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a20154181b68d94016a200d4198d59ec07d6a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a201341c3fbb1a8056a201441be8bc6a1026a100d20032802502108200328025421092003280258210a200328025c210b2003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201941fee3fa86786a200241f4baf995076a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a201141f4e2ef8c7c6a201241a78df0de796a100d20032802502108200328025421092003280258210a200328025c210b2003201036025c2003200f3602582003200e3602542003200c3602502003200d36026c2003201536026820032014360264200320133602602003200236027c200320193602782003201236027420032011360270200341406b200341d0006a2001200341e0006a200341f0006a100e2003280240210e2003280244210f20032802482110200328024c210c2003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201041868ff9fd7e6a200c41c1d3eda47e6a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a200e41ccc3b2a0026a200f41c6bb86fe006a100d20032802502108200328025421092003280258210a200328025c210b2003200136025c2003201836025820032017360254200320163602502003200236026c2003201936026820032012360264200320113602602003200c36027c200320103602782003200f3602742003200e360270200341406b200341d0006a200d200341e0006a200341f0006a100e200328024021162003280244211720032802482118200328024c21012003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201841aa89d2d3046a200141efd8a4ef026a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a201641da91e6b7076a201741dcd3c2e5056a100d20032802502108200328025421092003280258210a200328025c210b2003200d36025c2003201536025820032014360254200320133602502003200c36026c200320103602682003200f3602642003200e3602602003200136027c200320183602782003201736027420032016360270200341406b200341d0006a2002200341e0006a200341f0006a100e200328024021132003280244211420032802482115200328024c210d2003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201541ed8cc7c17a6a200d41d2a2f9c1796a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a201341c7ffe5fa7b6a201441c8cf8c807b6a100d20032802502108200328025421092003280258210a200328025c210b2003200236025c2003201936025820032012360254200320113602502003200136026c2003201836026820032017360264200320163602602003200d36027c200320153602782003201436027420032013360270200341406b200341d0006a200c200341e0006a200341f0006a100e200328024021112003280244211220032802482119200328024c21022003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201941c7a29ead7d6a200241f39780b77c6a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a201141e7d2a4a1016a201241d1c6a9366a100d20032802502108200328025421092003280258210a200328025c210b2003200c36025c200320103602582003200f3602542003200e3602502003200d36026c2003201536026820032014360264200320133602602003200236027c200320193602782003201236027420032011360270200341406b200341d0006a2001200341e0006a200341f0006a100e2003280240210e2003280244210f20032802482110200328024c210c2003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201041b8c2ecf0026a200c418595dcbd026a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a200e41939ae099056a200f41fcdbb1e9046a100d20032802502108200328025421092003280258210a200328025c210b2003200136025c2003201836025820032017360254200320163602502003200236026c2003201936026820032012360264200320113602602003200c36027c200320103602782003200f3602742003200e360270200341406b200341d0006a200d200341e0006a200341f0006a100e200328024021162003280244211720032802482118200328024c21012003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201841bb95a8b3076a200141d4e6a9a8066a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a20164185d9c893796a201741ae928b8e786a100d20032802502108200328025421092003280258210a200328025c210b2003200d36025c2003201536025820032014360254200320133602502003200c36026c200320103602682003200f3602642003200e3602602003200136027c200320183602782003201736027420032016360270200341406b200341d0006a2002200341e0006a200341f0006a100e200328024021132003280244211420032802482115200328024c210d2003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201541cbcce9c07a6a200d41a1d1ff957a6a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a201341a3a3b1bb7c6a201441f096ae927c6a100d20032802502108200328025421092003280258210a200328025c210b2003200236025c2003201936025820032012360254200320113602502003200136026c2003201836026820032017360264200320163602602003200d36027c200320153602782003201436027420032013360270200341406b200341d0006a200c200341e0006a200341f0006a100e200328024021112003280244211220032802482119200328024c21022003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201941a48ce4b47d6a20024199d0cb8c7d6a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a201141f0c0aa83016a20124185ebb8a07f6a100d20032802502108200328025421092003280258210a200328025c210b2003200c36025c200320103602582003200f3602542003200e3602502003200d36026c2003201536026820032014360264200320133602602003200236027c200320193602782003201236027420032011360270200341406b200341d0006a2001200341e0006a200341f0006a100e2003280240210e2003280244210f20032802482110200328024c210c2003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a20104188d8ddf1016a200c41968293cd016a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a200e41b5f9c2a5036a200f41cceea1ba026a100d20032802502108200328025421092003280258210a200328025c210b2003200136025c2003201836025820032017360254200320163602502003200236026c2003201936026820032012360264200320113602602003200c36027c200320103602782003200f3602742003200e360270200341406b200341d0006a200d200341e0006a200341f0006a100e200328024021012003280244211620032802482117200328024c21182003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a201741cad4e2f6046a201841b399f0c8036a100d200328025021042003280254210520032802582106200328025c21072003200b36026c2003200a36026820032009360264200320083602602003200736027c200320063602782003200536027420032004360270200341d0006a200341e0006a200341f0006a200141f3dfb9c1066a201641cf94f3dc056a100d20032802502108200328025421092003280258210a200328025c210b2003200d36025c2003201536025820032014360254200320133602502003200c36026c200320103602682003200f3602642003200e3602602003201836027c200320173602782003201636027420032001360270200341406b200341d0006a2002200341e0006a200341f0006a100e2003280240210d2003280244210e2003280248210f200328024c21102003200736026c2003200636026820032005360264200320043602602003200b36027c2003200a3602782003200936027420032008360270200341d0006a200341e0006a200341f0006a200f41efc695c5076a201041ee85bea4076a100d200328025021132003280254211420032802582115200328025c21042003200b36026c2003200a36026820032009360264200320083602602003200436027c200320153602782003201436027420032013360270200341d0006a200341e0006a200341f0006a200d4188849ce6786a200e4194f0a1a6786a100d200328025021052003280254210620032802582107200328025c21082003200236025c2003201936025820032012360254200320113602502003201836026c2003201736026820032016360264200320013602602003201036027c2003200f3602782003200e3602742003200d360270200341406b200341d0006a200c200341e0006a200341f0006a100e200328024021112003280244211220032802482102200328024c210c2003200436026c2003201536026820032014360264200320133602602003200836027c200320073602782003200636027420032005360270200341d0006a200341e0006a200341f0006a200241ebd9c1a27a6a200c41fafffb85796a100d200328025021022003280254210c20032802582101200328025c210d2003200836026c2003200736026820032006360264200320053602602003200d36027c200320013602782003200c36027420032002360270200341d0006a200341e0006a200341f0006a201141f2f1c5b37c6a201241f7c7e6f77b6a100d200d201e6a211e2001201f6a211f200c20206a2120200220216a2121200328025c201a6a211a2003280258201b6a211b2003280254201c6a211c2003280250201d6a211d22012022470d000b0b2000201e36021c2000201f3602182000201a3602142000201b3602102000202036020c200020213602082000201c3602042000201d36020020034180016a24000b4c01027f230041206b220341003602180340200341086a20026a200120026a2d00003a0000200241016a22024110470d000b20002003290308370000200041086a200341106a2903003700000bd80101067f2000200128020c20022802082205411a7720054115777320054107777320046a6a20012802082207200228020c2208732005712007736a220620012802046a220436020c2000200620012802002206200228020022017120022802042209200171220a732006200971732001411e772001411377732001410a77736a6a220236020420002006200320076a20082004200520087371736a2004411a772004411577732004410777736a22056a36020820002002411e772002411377732002410a77732002200120097371200a736a20056a3602000be80101037f20002003280208200128020c20012802082205410e772005411977732005410376736a6a20042802042206410f772006410d77732006410a76736a220636020c20002003280204200520012802042207410e772007411977732007410376736a6a20042802002205410f772005410d77732005410a76736a220536020820002003280200200720012802002201410e772001411977732001410376736a6a2006410f772006410d77732006410a76736a3602042000200428020c20012002410e772002411977732002410376736a6a2005410f772005410d77732005410a76736a3602000b8b0101017f230041106b2203240020032001280200220428020036020c200241026a220120016c220141801020014180104b1b220241042003410c6a41e882c00041e882c000101021012004200328020c3602002001047f200142003702042001200120024102746a41027236020041000541010b21022000200136020420002002360200200341106a24000b6b01027f230041106b22062400024020002001200220032004101722050d00200641086a200320002001200428020c1100004100210520062802080d00200628020c220520022802003602082002200536020020002001200220032004101721050b200641106a240020050b040020010b040041000b0300010b6a00027f200241027422022003410374418080016a2203200220034b1b418780046a220341107640002202417f4604404100210241010c010b2002411074220242003702042002200220034180807c716a41027236020041000b210320002002360204200020033602000b05004180040b040041010bc00401087f02400240024002402002280200220504402001417f6a210a20004102742109410020016b210b0340027f200541086a20052802082201410171450d001a034020052001417e71360208027f410020052802042207417c712201450d001a4100200120012d00004101711b0b210620052005280200220c417c71220845200c410271724504402008200828020441037120017236020420052802042207417c7121010b2001047f200120012802004103712005280200417c717236020020052802040520070b41037136020420052005280200220141037136020020014102710440200620062802004102723602000b200220063602002006220528020822014101710d000b200641086a0b21082005280200417c712207200541086a22066b20094f044020062003200020042802101101004102746a41086a200720096b200b7122014d0d032006200a71450d04200828020021010b20022001360200200122050d000b0b41000f0b4100210620014100360200200141786a2201420037020020012005280200417c71360200200120052802002208417c71220745200841027172047f2006052007200728020441037120017236020420012802044103710b20057236020420052005280208417e71360208200520052802002206410371200172220736020020064102710d01200128020021060c020b20022005280208417c7136020020052802002106200521010c010b20052007417d713602002001200128020041027222063602000b20012006410172360200200141086a0bb60201087f02402002410f4d0440200021030c010b2000410020006b41037122066a21042006044020002103200121050340200320052d00003a0000200541016a2105200341016a22032004490d000b0b2004200220066b2209417c7122086a21030240200120066a2207410371044020084101480d012007410374220541187121022007417c71220a41046a2101410020056b4118712106200a28020021050340200420052002762001280200220520067472360200200141046a2101200441046a22042003490d000b0c010b20084101480d0020072101034020042001280200360200200141046a2101200441046a22042003490d000b0b20094103712102200720086a21010b20020440200220036a21040340200320012d00003a0000200141016a2101200341016a22032004490d000b0b20000bc70101057f02402002410f4d0440200021030c010b2000410020006b41037122076a210520070440200021030340200320013a0000200341016a22032005490d000b0b200141ff01712104410821030340200420034118717420047221042003411049200341017421030d000b2005200220076b2206417c7122026a2103200241014e0440034020052004360200200541046a22052003490d000b0b200641037121020b20020440200220036a21040340200320013a0000200341016a22032004490d000b0b20000b3501037f024020002d00004504400c010b200041016a2102410021000340200020026a200041016a220121002d00000d000b0b20010b0a0020002001200210180b0a0020002001200210190b0bfa020300418080c0000bc0014142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010100418282c0000b330202020202020202020202020202020202020202020202020202020202020303030303030303030303030303030304040404040041c082c0000b6d3f3f3f212121000067e6096a85ae67bb72f36e3c3af54fa57f520e518c68059babd9831f19cde05b010000000000000001000000020000000300000004000000010000000000000001000000020000000300000004000000010000000400000004000000050000000600000007'; |
Thanks, it works now! Is there a way to have WebAssembly files loaded from the filesystem? Something that would look like this:
|
I have been trying to play with
libsql
and WASM functions as described in this article while using the latest 0.2.1 release and the artifactlibsql-0.2.1-wasm-udf.tar.gz
from the release download page. Whenever I try to execute a SQL select statement (as described in the article) that calls theencrypt()
function I get the following error:The same worked fine in 0.1.0 release I believe.
I have also tried the wasmedge version -
libsql-0.2.1-wasm-udf-wasmedge.tar.gz
- but this tar is missing some libraries it depends on:libfmt.so.9
andlibspdlog.so.1.11
which I managed to grab from the archives. However I get this error:I guess it relies on a different version of
libstdc++.so.6
compared to what I have on my Fedora 35 host.BTW I did manage to get the same WASM function example to run on OSv using version 0.1.0 after adding some minimal file-sealing support to OSv (see cloudius-systems/osv#1224). From my investigation, the wasmtime uses copy-on-write heap mappings which in turn relies on
memfd_create
which was missing from OSv. The copy-on-write heap mappings support can be turned off by compile option but maybe it makes sense to have it on for libsql. Having said all that I was eager to try to test the version of libsql with wasmedge.The text was updated successfully, but these errors were encountered: