![]() |
|
|
#34 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Ok, reporting. I found one leak of ~9 bytes (not really a leak, but to please valgrind it is patched in SVN 380; it was mine*) and some more obscure uninit in -nc1
==11778== Syscall param write(buf) points to uninitialised byte(s)... ==11778== by 0x555A7A4: fwrite (iofwrite.c:45) ==11778== by 0x43332E: nfs_write_lp_file (singleton.c:135) <-- gnfs/filter/singleton.c ==11778== by 0x432A67: nfs_filter_relations (filter.c:287) <-- gnfs/filter/filter.c ==11778== by 0x41F232: factor_gnfs (gnfs.c:147) ==11778== by 0x4069A2: msieve_run (driver.c:160) ==11778== by 0x404750: factor_integer (demo.c:202) ==11778== by 0x405243: main (demo.c:563) ==11778== Address 0x4023006 is not stack'd, malloc'd or (recently) free'd However, the good news is that there are no (immediately visible) leaks in BLanczos (at least in the small unthreaded test case). None. But of course, there are many more tests to run (a larger case where more than 1 thread will get activated). A null result, rather, so far, in itself, up. ____________ *the purists will notice that this patch is rather a sweep under the carpet. If the program is called with -s test.dat.gz valgrind will again report a leak of 9 bytes out of strdup. |
|
|
|
|
|
#35 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
Valgrind is extremely picky, it will happily report errors in libc as if they were your fault. It complains about pthreads too.
There are also errors that valgrind will not catch; buffer overflows in stack variables will always be missed, for example. I vaguely remember the error in the filtering, and could not explain it at the time. The value being written is clearly a stack variable... Last fiddled with by jasonp on 2010-08-25 at 11:42 |
|
|
|
|
|
#36 |
|
"William"
May 2003
New Haven
2·7·132 Posts |
|
|
|
|
|
|
#37 | |
|
Tribal Bullet
Oct 2004
3,541 Posts |
Quote:
It tests for many problems, and if it finds leaks or errors then you can rerun in extra-verbose mode so that you get a call stack on every error or leak. It will also tell you who allocated leaked memory. You can even configure it to fire off a debugger whenever an error happens. Basically it's very much like purify. Last fiddled with by jasonp on 2010-08-25 at 16:56 |
|
|
|
|
|
|
#38 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
I have now valgrinded a medium old matrix that I found in archives, a gnfs-161 (5,391-), a 5M2 matrix. Normally it took a few days, some time ago. Now, with valgrind, indeed, it took almost all memory (somewhere above 6Gb), and crawled slowly (Jason's 10x estimate is not far off); but it cranked cleanly for a number of hours (ETA was ~700hrs with 3 threads); wrote a few check files, performed many ortho checks (I've lowered the check_interval to 1000 and dump_interval to 3000). No leaks, no complains. All looks clean. This was done with SVN 381 (note a small change in SVN 381: it should make a restart from some unfortunate .chk files easier).
|
|
|
|
|
|
#39 | |
|
Nov 2007
3·52 Posts |
Quote:
But so it seemed to me at first that you not correctly converted the initial data in a key. If it probably send a key in an initial kind in the block a key begins here so 00 00 00 10 (where 10 is a quantity of the data in DWORD). Simply actually I have much made keys 5 Level. And such key didn't meet. Or write the block name. Last fiddled with by miklin on 2010-08-26 at 15:49 |
|
|
|
|
|
|
#40 |
|
Dec 2009
89 Posts |
|
|
|
|
|
|
#41 |
|
"William"
May 2003
New Haven
2×7×132 Posts |
|
|
|
|
|
|
#42 |
|
Dec 2009
8910 Posts |
Just noticed that 1753^31-1 and 1873^31-1 were already in checkfacts.txt. I'll do the rest.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Msieve v. 1.47 and 148 digit composite | Unregistered | Information & Answers | 8 | 2010-10-04 07:31 |
| Quick msieve question | alkirah | Msieve | 2 | 2009-12-30 14:00 |
| 222-digit SNFS completed with msieve | frmky | Factoring | 2 | 2007-10-01 18:23 |
| Question about cycle counting in MSieve | schickel | Msieve | 3 | 2006-11-25 07:14 |
| MSieve - problem with 106-digit effort | schickel | Msieve | 5 | 2006-08-31 03:19 |