Subject: Discussion related to cado-nfs
List archive
- From: Roberto Zanasi <zanasi.roberto@fermi.mo.it>
- To: Emmanuel Thomé <Emmanuel.Thome@inria.fr>
- Cc: cado-nfs-discuss@lists.gforge.inria.fr
- Subject: Re: [Cado-nfs-discuss] problem while factoring RSA-129
- Date: Wed, 28 Mar 2018 08:40:20 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=roberto.zanasi@gmail.com; spf=Pass smtp.mailfrom=roberto.zanasi@gmail.com; spf=None smtp.helo=postmaster@mail-lf0-f41.google.com
- Ironport-phdr: 9a23:pqyqPBNdDgM6aTqsMqsl6mtUPXoX/o7sNwtQ0KIMzox0Ivn6rarrMEGX3/hxlliBBdydt6ofzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlGiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZXMlRWSxPDI2/YYUSEeQOIf1VoJPhq1YUtxayGRWgCeHpxzRVhnH2x6o60+E5HA/a2wwvBMwBsG7IrNXyKawdUvq6zK/SwjXYbvNdxDDw6YnSfRAnu/6MRrNwfdDLyUkoDAzKkE+QqZDiPz6O2OQCrXKb7+9hVe61jm4nrBt9ojmzxso1jITCm4wbylfB9SpjwYY1I8W1SE99Yd6+EZtfrTuWN4VsQs4kXmpmuz46x6UYtZKneCUG0pcqyh7FZ/CZboSF4gjvWemMLTp+mXlrYqiwhwyo/kil0uD8Vte70FJNriddl9nDrHEN1xjK5siDRPtx4l6t2TiA2gzO8O1ELkc0la3UK54l3LE8jIYcsUPGHiPumUX2irGZdlk89+S29+jqZq/qq5ycOoNulA3yL6QjltawDOglKgQOWnKU+eW41L3t5035R7BKg+Uskqneq5/VO94bprK+AwNP04cs8RC/AC290NQZhnQHI1dFdwiGj4jtIV3BPPf4DfKnj1S2jDhr3+zGPqHmApjVMnfMiqrufbFk505axgoz1slT6I9VCrEaPP3zR1TxtMfDAx89Mgy02PrnCM5n2oMRV2KPBbWZMKzMvlOS5+IvJfOMZI4PtzrnJfgl/a2msXhstFoYdK+00J8gVHC/G3Uud2icZHPqn9oFV1sKuQ8zZO3sklyLFzBJMSWcRaU5sws8Ao+8EYCLdImriaeAlHOpF5tffWEAEFeGHG30cK2KVu0JaWSXJYlgjmpXBvCaV4Y92ET250fBwL19I7+Ro3VA7MOx5J1O/+TW0CoK23lxBsWZ3XuKSjgtzGwNTj4ymqt4pB4kkwvR4e1Dm/VdUOdrybZRSA5jbMzTyuV7D5b5XQeTJo7UGmbjec2vBHQKdvx0w9IKZBwgSdCrjxSG2yTyRrFJzvqEA5s79q+a1H/0dZ5w
- 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>
Ok, thank you very much for your efforts.
On Wed, Mar 28, 2018 at 8:33 AM, Emmanuel Thomé <Emmanuel.Thome@inria.fr> wrote:
Ok, I've found your problem.
You're using a 32-bit machine. ssize_t, which is used here and there, is
good only for 31-bit signed values. We should have used off_t there (and
we should have had #define _FILE_OFFSET_BITS 64 in cado.h, so that off_t
is a 64-bit type).
While this analysis may lead to a fix for the dup1 program, the
perspective is quite bleak. I confess that throughout the code, we
(collectively) have always thought that either:
- (s)size_t is always large enough
- any serious computation uses 64-bit anyway
- nobody uses 32-bit machines
or sometimes combinations of the above.
Bottom line: I think one would need a huge amount of time to fix cado-nfs
so that computations above 120 digits run correctly on 32-bit machines,
given the pervasiveness of the above considerations: after dup1, you'd
probably hit similar issues in other filtering binaries, in linear
algebra, and so on.
32-bit platforms are among the routinely tested platforms for cado-nfs,
but the keyword here is "tested". We do such tests to catch compilation
errors, idiosyncrasies that may be dangerous in the long run, etc. 32-bit
platforms, really, aren't intended for large computations (admittedly,
rsa-129 barely qualifies as large, but still, it's too large for 32-bit
cado-nfs, sorry).
Regards,
E.
On Tue, Mar 27, 2018 at 02:38:40PM +0200, Emmanuel Thomé wrote:
> I think it would be best to move this discussion off-list.
> E.
>
> On Tue, Mar 27, 2018 at 02:34:18PM +0200, Paul Zimmermann wrote:
> > Roberto,
> >
> > > Just to be sure, did you check that all the files that this command is
> > > trying to access are indeed present in the working directory ?
> > >
> > > Yes, they are all present. (The /tmp directory contains 75 .gz files, while
> > > c130.dup1.filelist.1 contains 74 files).
> >
> > did you try with revision 5a17a43 as advised by Emmanuel?
> >
> > What happens if you run manually the line "... antebuffer 24 ..." in c130.dup1.stderr.1,
> > with the final "| gzip -dc -" ? (Maybe redirecting the output to /dev/null.)
> >
> > Same question by replacing "... antebuffer 24" by "zcat", and removing
> > the final "| gzip -dc -".
> >
> > It might be that one of the .gz files is corrupted.
> >
> > > The policy of the system regarding the automatic clean-up of /tmp can
> > > vary, but in any case, files in there are not guaranteed to stay for
> > > long. For a factorization that takes a bit long, it is better to use a
> > > working directory in a more persistent place.
> > >
> > > How can I change the working directory?
> >
> > simply with cado-nfs.py ... workdir=...
> >
> > Paul Zimmermann
> > _______________________________________________
> > Cado-nfs-discuss mailing list
> > Cado-nfs-discuss@lists.gforge.inria.fr
> > https://lists.gforge.inria.fr/mailman/listinfo/cado-nfs-discuss
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, (continued)
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, paul zimmermann, 03/26/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Roberto Zanasi, 03/26/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, paul zimmermann, 03/26/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Roberto Zanasi, 03/26/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Emmanuel Thomé, 03/26/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Pierrick Gaudry, 03/27/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Roberto Zanasi, 03/27/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, paul zimmermann, 03/27/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Emmanuel Thomé, 03/27/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Emmanuel Thomé, 03/28/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Roberto Zanasi, 03/28/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Roberto Zanasi, 03/27/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Roberto Zanasi, 03/27/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Pierrick Gaudry, 03/27/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, paul zimmermann, 03/26/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, Roberto Zanasi, 03/26/2018
- Re: [Cado-nfs-discuss] problem while factoring RSA-129, paul zimmermann, 03/26/2018
Archive powered by MHonArc 2.6.19+.