Comments (7)
Unfortunately I no longer have the machine where it occurred. I'll try to reproduce it on another host and let you know.
from echidna.
I can reproduce this. It's a quick fix regarding locales. I'll put together a PR for the Dockerfile and some doc updates, since it isn't a problem with the application code.
from echidna.
This looks like some kind of a locale issue that's causing echidna to choke when trying to print UTF-8. Can you try with the below code for Main.hs
?
{-# LANGUAGE LambdaCase #-}
module Main where
import GHC.IO.Encoding (setLocaleEncoding, utf8)
import Hedgehog hiding (checkParallel)
import Hedgehog.Internal.Property (GroupName(..), PropertyName(..))
import System.Environment (getArgs)
import Echidna.Exec
import Echidna.Solidity
main :: IO ()
main = setLocaleEncoding utf8 >> getArgs >>= \case
[] -> putStrLn "Please provide a solidity file to analyze"
f:_ -> do
(v,a,ts) <- loadSolidity f
let prop t = (PropertyName $ show t, ePropertySeq v a (`checkETest` t) 10)
_ <- checkParallel . Group (GroupName f) $ map prop ts
return ()
from echidna.
No problem for me on Debian Stretch.
from echidna.
I'm gonna close for now as I'm unable to reproduce. If this happens again, try the code I linked and lmk how it works, I'll modify the actual codebase based on that.
from echidna.
Fixed in #20
from echidna.
I have this same problem with the following contract:
pragma solidity 0.4.16;
contract EchidnaBT {
bool public val = true;
function set(bool _val) public {
val = _val;
}
function echidna_test() public returns(bool) {
return val;
}
}
with latest echidna docker container, on Ubuntu 18.04. Any suggestions?
Linux oleksii-VirtualBox 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
from echidna.
Related Issues (20)
- Allow echidna to pin to specific system variables, and only show the value of those variables after each failed call sequence
- Opcode "mcopy" not implemented HOT 1
- [Bug-Candidate]: echidna: thread blocked indefinitely in an MVar operation HOT 3
- Feature Request: Continuously save progress while shrinking HOT 1
- [Bug-Candidate]: Echidna can get stuck while shrinking HOT 2
- [Bug-Candidate]: Minor log message tweak HOT 2
- Improve UX around configuring Etherscan API key HOT 4
- Support `startPrank` and `stopPrank`
- Feature Request: Option to disable Etherscan downloads with onchain fuzzing HOT 3
- [Bug-Candidate]: Sequences from corpus do not adhere to time/block delay settings HOT 4
- Feature Request: Support for logging in view functions like Foundry's `console2` HOT 1
- [Bug-Candidate]: HOT 5
- [Bug-Candidate]: Coverage report doesn't display fuzzing contract in html unless an assertion fails HOT 1
- [Bug-Candidate]: no fore color support for terminal xterm-256color HOT 4
- [Bug-Candidate]: `Cannot decode byte '\xe4': Data.Text.Encoding: Invalid UTF-8 stream` HOT 9
- Improve error message on MaxInitCodeSizeExceeded issue HOT 1
- Improve error message if the function hashmap is not detected HOT 2
- [Bug-Candidate]: Internal Error: TODO: implement copySlice with a symbolically sized region HOT 4
- Feature Request: Add setting to consider reverted tests as failed in assertion mode
- Shrinking multicore HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echidna.