Subject: Discussion related to cado-nfs
List archive
- From: Jason Parker-Burlingham <jasonp@panix.com>
- To: paul zimmermann <Paul.Zimmermann@inria.fr>
- Cc: cado-nfs-discuss@lists.gforge.inria.fr
- Subject: Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG
- Date: Mon, 7 Oct 2019 10:46:34 -0400
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jasonp@panix.com; spf=Pass smtp.mailfrom=jason.parker.burlingham@gmail.com; spf=None smtp.helo=postmaster@mail-ed1-f50.google.com
- Ironport-phdr: 9a23:71fSYx3X+IapXx2VsmDT+DRfVm0co7zxezQtwd8ZseISL/ad9pjvdHbS+e9qxAeQG9mCsLQZ1KGI7ejJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVijexe7N/IRe5oQjQt8QdnJdvJLs2xhbVuHVDZv5YxXlvJVKdnhb84tm/8Zt++ClOuPwv6tBNX7zic6s3UbJXAjImM3so5MLwrhnMURGP5noHXWoIlBdDHhXI4wv7Xpf1tSv6q/Z91SyHNsD4Ubw4RTKv5LpwRRT2lCkIKSI28GDPisxxkq1bpg6hpwdiyILQeY2ZKeZycr/Ycd4cWGFPXNteVzZZD4yzYYsADeoPM+hboYfguVUBsQCzBRWwCO711jNEmmP60K883u88EQ/GxgsgH9cWvXrQttr1L6ASUeaox6fS1zrDdfBW1inn6ITRbx0hvOuMXbZxccrXxkkvFxnKjlCNooHiPTOazP8Ns2+d7+p4Tu+vk3Qoqwdwojmg3Msjlo7JhocMx13C6C53w541KMWmREJnZdOoCphduiGAO4doXs8vQHtktSYmxrAApJW1ZjIFyI49yB7ac/GHc5aH4hbkVOuJJDd3nnNleLamixms7Ees1/TwVse03VpWtCZFnd7MtncC1xzX9MeLUOdy/kCk2TqX1gDT7P9LIVwsmKbFN5IsxqQ8m5kTvEjZACP6hEb7gLWWe0k44uSo7v7oYrTipp+SLY90jQT+P7wsmsOlGuQ4NQ4OU3KD+eumzr3j/lP2QK9QgvItj6nZqpTaJcUdpq62Aw9ayIMj5g2wDzejytsYnH0HIEhZdxKAiojlI0vOL+zgDfejn1Ssly9myOzcMbL8BZXBN37DkLn6fbpk9kFcyREzwsxC55JPEbEMO/bzWk7qtNzEFR81KQO0w+jgCNVn2YMRR3iDAq6fMKPIsF+H/PgjI+eWZNxdhDGoM/E447b8jHo8lEUYdK+vlc8vYW28WMZnJkCUe3/lhNEpEGEQvwN4Qva823OYVjsGRX+pWKR03jghC4+8SK3eXISshrOB1SLzSp9ffWdAEniUGHHpZ8OPXPJaO3HaGdNojjFRDevpcIQmzxz78Vaik+M6fNqRwTURsNfY7PYw5+DXkktvpzl9DsDY3m3UCm8pxiUHQDg52K05qkt4mA/ajfpIxsdAHNkW3MtnFx8gPMeFnfRzDdHiHAnGe4XREQf0cpCdGTg0C+kJ7ZoLakd5Fc+li0majSWvCr4R0beMAc5t/w==
- List-archive: <http://lists.gforge.inria.fr/pipermail/cado-nfs-discuss/>
- List-id: A discussion list for Cado-NFS <cado-nfs-discuss.lists.gforge.inria.fr>
On Mon, Oct 7, 2019 at 10:40 AM paul zimmermann
<Paul.Zimmermann@inria.fr> wrote:
> thank you Jason for your detailed information.
>
> > * via binary search, I find that the smallest amount to reduce
> > get_arg_max() by and get a successful dup1 is about 24,000:
>
> I guess you mean 240,000?
I mean that dup1 builds a sufficiently short command line and succeeds
with this diff:
$ git diff -- utils/misc.c
diff --git a/utils/misc.c b/utils/misc.c
index a8c3c8041..d7591d300 100644
--- a/utils/misc.c
+++ b/utils/misc.c
@@ -55,6 +55,8 @@ long get_arg_max(void)
if ((size_t) arg_max > (size_t) MAX_ARG_STRLEN)
arg_max = MAX_ARG_STRLEN;
#endif
+ arg_max = arg_max - 24 * 1000;
+ fprintf(stderr, "get_arg_max returns %lu\n", arg_max);
return arg_max;
}
but fails if that magic value of 24 is changed to 23 instead.
I understand the confusion as we are talking about arg_max values
around 240,000.
jason
--
My new phone number: +1 4127218459
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/05/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/05/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/05/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, paul zimmermann, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Emmanuel Thomé, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Emmanuel Thomé, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/05/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Pierrick Gaudry, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, paul zimmermann, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, paul zimmermann, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, paul zimmermann, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, paul zimmermann, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/07/2019
- Re: [Cado-nfs-discuss] execl() fails with ENAMETOOLONG, Jason Parker-Burlingham, 10/05/2019
Archive powered by MHonArc 2.6.19+.