GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — diff: two large files abort with a ~100 TB allocation · Issue #287 · uutils/diffutils Open Description
$ python3 -c "open('a','w').write('\n'*5000000)" # 5 MB, 5M empty lines $ python3 -c "open('b','w').write('z\n'*5000000)" # 10 MB, 5M 'z' lines $ diff a b > /dev/null memory allocation of 100000040000004 bytes failed Aborted (core dumped) $ echo $? 134 Every output mode fails the same way — the allocation happens before any $ for m in "" -u -c -e -y; do diff $m a b >/dev/null; echo "$m -> $?"; done -> 134 -u -> 134 -c -> 134 -e -> 134 -y -> 134 Root causeEach output mode drives the same routine: // src/ed_diff.rs:74 (identically: unified_diff.rs:68, normal_diff.rs:57, // context_diff.rs:80, side_diff.rs:351) for result in diff::slice(&expected_lines, &actual_lines) {
ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |