You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the code snippet to reproduce but I haven't been able to find exactly where it comes from.
The error but I can't quite reproduce it locally but it's happening in AWS's Lambda runtimes: free(): double free detected in tcache 2
Here's the code snippet:
pubfncreate_public_access(root_access:&str,bucket_name:&str,prefix:&str,) -> anyhow::Result<PublicAccess>{constREGISTER_ACCESS_OPTIONS: uplink::edge::config::OptionsRegisterAccess =
uplink::edge::config::OptionsRegisterAccess{public:true};let root_grant = uplink::access::Grant::new(root_access)?;let share_prefix = uplink::access::SharePrefix::new(bucket_name,&prefix)?;// Users should only be able to view the short files but not list them.letmut permissions = uplink::access::Permission::read_only();
permissions.allow_list = false;let grant = root_grant
.share(&permissions,Some(vec![share_prefix])).context("Failed to create sub-grant for short")?;let uplink_config = uplink::edge::Config::new(UPLINK_AUTH_SERVICE_ADDR)?;let gateway = uplink_config
.register_gateway_access(&grant,Some(®ISTER_ACCESS_OPTIONS)).context("Failed to register grant to gateway")?;Ok(PublicAccess{access_grant_serialized: grant.serialize().context("Failed to serialize grant")?,gateway_access_key_id: gateway.access_key_id,})}
cc @ifraixedes this is currently breaking a production service.
The text was updated successfully, but these errors were encountered:
This is the code snippet to reproduce but I haven't been able to find exactly where it comes from.
The error but I can't quite reproduce it locally but it's happening in AWS's Lambda runtimes:
free(): double free detected in tcache 2
Here's the code snippet:
cc @ifraixedes this is currently breaking a production service.
The text was updated successfully, but these errors were encountered: