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.

Line numbers and function names don't match

See original GitHub issue

Description

Running mythril -xo json <filename> produces a report in which sometimes the function names and the corresponding line numbers just don’t make sense. I understand that this is information that’s sourced from the solidity binary, etc. But just wanted to make sure this is expected behavior.

Steps to reproduce

For instance, in https://etherscan.io/address/0x1c3bed5bd4b0e6a8389efd0d2876f948a907ab5b#code, for the contract MMR, one of the errors Mythril reports is -

[0]
address : 573
code : "his.balance); return; } MiniMeToken toke"
debug : ""
description : "This contract executes a message call to to another contract. Make sure that the called contract is trusted and does not execute user-supplied code."
filename : "<filename>"
function : "fallback"
lineno : 507
title : "Message call to external contract"
type : "Informational"

Not sure which function fallback refers to in the entire contract/ source file. The line number 507 corresponds to the function claimToken. Can this mismatch please be explained.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
muellerberndtcommented, Aug 8, 2018

@shashank-srikant no bug bounty program yet, but we’re currently working with Gitcoin to set something up. We’ll keep you posted!

0reactions
norhhcommented, Mar 21, 2019

should be fixed by #949 , if the bug still persists, please feel free to reopen this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why doesn't GDB show line numbers or function names?
Show activity on this post. And use gdb segfaulttest to run it, when I use gdb's backtrace command I don't get any line...
Read more >
How to identify the line number in a program as reported by ...
Lines in stack traces and in log files do not match up with source code. Logs can even indicate line numbers beyond the...
Read more >
Line numbers are incorrect in exception stack trace : KT-8628
So basically I added dummyException: Exception = Exception() as a parameter with default value to the existing inline function. As name suggests dummyException ......
Read more >
Friday Fun: PowerShell ISE Function Finder
The button shows the line number and function name. When a button is clicked, the function gets the line number and automatically jumps...
Read more >
Excel MATCH Function Error Troubleshooting Examples
Before we start troubleshooting the MATCH function, here's a short video that shows how the function works. It has four MATCH examples, ...
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