question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Talos reporting Lambda memory address - Suggestion

See original GitHub issue

Currently a parameter dictionary with arbitrary Lambdas simply spits out Lambda Object <mem address> for any reporting. This is perhaps not the nicest way of expressing this.

Perhaps a simple approach would be, if there’s no decent (defined or otherwise) string conversion to reference them as the parameter entry key, and the index.

So "my_param_key": [Lambda x: x**2, Lambda x: x**3] would then report “my_param_key_0” and “my_param_key_1” in the reporting tables.

I haven’t delved too deep into the Talos codebase to see the feasibility of this. Was just wanting to report this behaviour, as it’s somewhat annoying to the user as they are unsure which lambda was selected.

PS - I’m aware that a richer object could be used to wrap this, which has its own __repr__ method defined. But as far as baked in implementations go, this could be a small tweak to bring more user friendly output.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
awilliamsoncommented, Dec 29, 2018

I can have a look at it. Not sure when I’d get the time with work ramping up in the New Year. Is there an easy way to contact you? I believe I have my e-mail address on my profile if that works.

1reaction
awilliamsoncommented, Nov 13, 2018

I was thinking perhaps use of a dictionary. At the moment we have Lists for discrete selections, and tuples for ranges. Dictionaries seems to me to be the perfect entry.

E.g

params = {
  "batch_norm": [ {"Batch Norm": Lambda x: BatchNorma...}, {"No Batch Norm": Lambda x: x} ]
}

Enables a check to see if the params values within List are of type dict, then we can go to assign a special label, otherwise it will use __repr__ ?

In addition, this will allow people to use a lot more custom code, and have more flexibility in wrapping things via Lambdas, such as specific argument invokations.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TALOS-2021-1372 || Cisco Talos Intelligence Group
This vulnerability is in WebRTC, which is a technology that enables websites to capture/stream audio/video and other data between browsers.
Read more >
AWS Lambda Functions Best Practices | Platform Engineer
This blog post summarizes the guidelines and best practices for writing high-quality Lambda functions. These pieces of advice are highly ...
Read more >
Google Chrome WebRTC ... - Vulners
Summary A memory corruption vulnerability exists in the WebRTC functionality of Google Chrome ... Reported by Marcin Towalski of Cisco Talos on ...
Read more >
Lambda function is outputting memory address instead of ...
A lambda is just an anonymous function object and that's why it prints that way. In fact, as soon as you assign it...
Read more >
1247260 - Google Chrome WebRTC ... - Monorail
Issue 1247260: Google Chrome WebRTC RTPSenderVideoFrameTransformerDelegate memory corruption vulnerability (TALOS-2021-1372). Reported by schedule vulnd.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found