Git Product home page Git Product logo

Comments (7)

yoavw avatar yoavw commented on May 22, 2024 1

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.

lazzarello avatar lazzarello commented on May 22, 2024 1

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.

japesinator avatar japesinator commented on May 22, 2024

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.

hiqua avatar hiqua commented on May 22, 2024

No problem for me on Debian Stretch.

from echidna.

japesinator avatar japesinator commented on May 22, 2024

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.

lazzarello avatar lazzarello commented on May 22, 2024

Fixed in #20

from echidna.

lastperson avatar lastperson commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.