![]() |
|
|
#12 |
|
Mar 2010
638 Posts |
|
|
|
|
|
|
#13 |
|
Mar 2010
3×17 Posts |
Done. Thanks Paul!
|
|
|
|
|
|
#14 | |
|
Jul 2003
So Cal
2·34·13 Posts |
Quote:
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) have never crashed. Perhaps this is simply a bug in gcc 4.1.0 that has been fixed? |
|
|
|
|
|
|
#15 |
|
Mar 2010
1100112 Posts |
My gcc compiler is 4.1.2 in redhat 5.3. Actually CentOS but the same nevertheless. I was gonna try to use 4.2.3 and see if made a difference.
-- |
|
|
|
|
|
#16 |
|
Jul 2003
So Cal
210610 Posts |
In that case, I dunno. I'm using CentOS as well. I have never experienced this sqrt crash in literally hundreds of factorizations. Here are the details of my compiles.
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) Linux physicstitan 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux CentOS release 5 (Final) OPT_FLAGS = -O3 -fomit-frame-pointer -march=amdfam10 -DNDEBUG Even though it is built with march=amdfam10, I also run this binary on Core2-based machines. Anything else useful? |
|
|
|
|
|
#17 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
Note that whatever is going wrong could still be a buffer overflow that some versions of gcc don't fail on because they shuffle stack variables around differently...
|
|
|
|
|
|
#18 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
641910 Posts |
I'm running an example that crashes, under valgrind, but it's slow enough that I may well not have an answer by the time I go home for the weekend
Edit: after a couple of hours it reported Code:
==22358== Warning: set address range perms: large range 102400000, a 1, v 1 ==22358== Warning: client switching stacks? SP change: 0x7FEFFB430 --> 0x7FEDC46E0 ==22358== to suppress, use: --max-stackframe=2321744 or greater This made me wonder whether the segfault comes from gmp's habit of using up to very large amounts of stack space. So I did 'ulimit -s unlimited' and then reran (not under valgrind, it takes too long); and the job has got past the point where it crashed last time. I'd be interested to know if this fixes the problem for anyone else. Last fiddled with by fivemack on 2010-04-09 at 17:20 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| All square roots failed | chris2be8 | Msieve | 13 | 2020-10-14 07:08 |
| Square Root Days | davar55 | Lounge | 0 | 2016-03-16 20:19 |
| NFS Square root problems | paul0 | Factoring | 10 | 2015-01-19 12:25 |
| Square root of 3 | Damian | Math | 3 | 2010-01-01 01:56 |
| Divisible up to Square Root | davar55 | Puzzles | 3 | 2007-09-05 15:59 |