Skip to content
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

checklink dies w/ status 255: Modification of non-creatable array value attempted #16

Open
dongourley opened this issue Mar 3, 2017 · 1 comment

Comments

@dongourley
Copy link

I get an error like this when I run checklink against some large HTML files:

Modification of non-creatable array value attempted, subscript -2147468066 at /usr/local/bin/checklink line 1443.

line 1443 is in the loop distributing links to avoid 1s delay between HEAD requests to the same host:

1440:    # Distribute them
1441:    my @result;
1442:    while (my @chunk = splice(@all, 0, $num)) {
1443:        @result[@indexes] = @chunk;
1444:        @indexes = map { $_ + 1 } @indexes;
1445:    }

These files are artificially created from links in a database. I am currently building them with max 50000 links ... not sure if the number of links is part of the problem and if so what max I should use.

I'm attaching a test file. Recreate the problem with this command (you may need to add file to the Allowed_Protocols):

checklink -b -e MU-01.html

testhtml.zip

@dongourley
Copy link
Author

Could I turn off the distribute_links() call on line 1274? If I do I need to convert the hash input to a list like the output...is that just a list of the keys?

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

1 participant