Skip to content

Segmentation fault 11 #631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
isghe opened this issue Jun 6, 2016 · 3 comments
Closed

Segmentation fault 11 #631

isghe opened this issue Jun 6, 2016 · 3 comments
Assignees

Comments

@isghe
Copy link

isghe commented Jun 6, 2016

I have a contract compiling good on https://ethereum.github.io/browser-solidity/#version=soljson-latest.js, but failing with a segmentation fault by command line.
the contract:

contract InstructionsInterface {
    address beneficial;
    string data;
    function Instructions(address destination, string encryptedData);
    function getData() constant returns(string);
}

contract Instructions is InstructionsInterface {
    function Instructions(address destination, string encryptedData) {
        beneficial = destination;
        data = encryptedData;
    }

    function getData() constant returns(string) {
        return data;
    }
}

the command line:

./solc --version
solc, the solidity compiler commandline interface
Version: 0.3.4-0a0fc046/RelWithDebInfo-Darwin/appleclang/JIT
…
./solc Instructions.sol 
Segmentation fault: 11
@VoR0220
Copy link
Member

VoR0220 commented Jun 6, 2016

You're on Darwin...that may be why.

@chriseth
Copy link
Contributor

chriseth commented Jun 6, 2016

No it's not - it is easily reproducable and I'm working on a fix.

@chriseth chriseth self-assigned this Jun 6, 2016
@chriseth
Copy link
Contributor

chriseth commented Jun 6, 2016

The issue was that the abstract function was "implemented" by the constructor of the derived class - which was not detected during type checking.

axic pushed a commit that referenced this issue Nov 20, 2018
EIP 137: Add warning for implementers against treating 0 like other addresses
axic pushed a commit to ipsilon/solidity that referenced this issue Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants