Blink: bad access when piping `cat`

Created on 1 Dec 2018  路  3Comments  路  Source: blinksh/blink

On iPad Pro, running:
cat .inputrc | cat > foo results in crash with EXC_BAD_ACCESS.

Discovered this while trying to figure out how to transfer files to remote. Got scp working after doing the quirks listed in https://github.com/blinksh/blink/issues/564 (ssh2 and full path)

Version ebc1b01e with remote notifications etc turned off for the free developer account.

Most helpful comment

Found. It was an issue with static variables inside a function, so it was specific to the cat command (I did check multiple pipes with grep, but not with cat). Fix with commit b3868b0 in ios_system, will be in release 2.1.

All 3 comments

I can duplicate this issue. Just running echo hello | cat | cat is sufficient to cause an immediate app-crash (though echo hello | cat does the right thing).

Found. It was an issue with static variables inside a function, so it was specific to the cat command (I did check multiple pipes with grep, but not with cat). Fix with commit b3868b0 in ios_system, will be in release 2.1.

Hi @balboah,

v12.4 is out with the fix. Closing the issue.

Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

toph-allen picture toph-allen  路  3Comments

jwr picture jwr  路  3Comments

goerz picture goerz  路  4Comments

nriley picture nriley  路  3Comments

treyharris picture treyharris  路  5Comments