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

Singular crashes on OSX in 32 bit mode #3099

Closed
sagetrac-jxxcarlson mannequin opened this issue May 3, 2008 · 10 comments
Closed

Singular crashes on OSX in 32 bit mode #3099

sagetrac-jxxcarlson mannequin opened this issue May 3, 2008 · 10 comments

Comments

@sagetrac-jxxcarlson
Copy link
Mannequin

sagetrac-jxxcarlson mannequin commented May 3, 2008

Singular crashes at degree 13 on intel core duo machine (mac os 10.5.2) when running "fano7.sage" with user command "run2(1,20)". See attached files (fano7.sage, crash.txt}. You may want to try "run(12,20)" to get to the crash more quickly. Also, "run2(19,40)" crashed a quad core ppc machine with 8 gigs of memory. The crash occurred before there was any significant output.

CC: @sagetrac-PolyBoRi @dimpase

Component: commutative algebra

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/3099

@sagetrac-jxxcarlson
Copy link
Mannequin Author

sagetrac-jxxcarlson mannequin commented May 3, 2008

Sage source file

@sagetrac-jxxcarlson
Copy link
Mannequin Author

sagetrac-jxxcarlson mannequin commented May 3, 2008

Attachment: fano7.sage.gz

Attachment: crash.txt

Crash log

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 4, 2008

comment:1

Hi Jim,

this looks related to #3098. Since we have a fix for that issue which will be part of 3.0.1 can you try with it and check if the issue has been fixed? William is trying on a similar setup that also shows #3098, so hopefully he can give us some info here, too.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.0.2 milestone May 4, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 4, 2008

comment:2

FYI:

me: ok. I just commented on the ticket that it likely would.
So you might want to clue us in that it is not that issue, but a similar problem
 William: Good.
 me: I also think that the "huge" problem he posted might just be that he ran out of RAM.
 William: Line 803 in singular.py would be fixed in a similar way to the fix in my other patch.
We'll find out in a while.
 me: After all: we are running Singular in 32 bit mode on OSX for now.
Now if that mabshoff guy got moving on that issue .... [wink]
 William: Yes, what's holding up the 64-bit port?
 me: Nothing. Just spending my "free" time with lisp, Itanium and other fun stuff.

The 64 bit OSX port is a high priority item for us and most problems have been already solved. William and I will likely spend some good time this Sunday and try to get everything merged back into 3.0.2.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 29, 2008

comment:3

I had some off list communication with Michael Brickenstein and he recommended using

Hi Michael!

I also use
-with-valloc=system
additionally to
--with-malloc=system

on Mac OS X  (32bit). I had issues with Singular not being able to
allocate much memory (under certain circumstances) a few years ago
and this configuration has proven to be useful.

Best regards,
Michael 

I am not sure how Singular normally reacts when running out of memory, but it should obviously never crash.

I am CCing PolyBoRi since Michael B. might enlighten us about this specific problem.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title Singular crashes Singular crashes on OSX in 32 bit mode May 29, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin assigned sagetrac-mabshoff and unassigned malb May 29, 2008
@sagetrac-PolyBoRi
Copy link
Mannequin

sagetrac-PolyBoRi mannequin commented May 29, 2008

comment:4

usually I got a clear error message about not being able to allocate more virtual memory (sometimes having only 100MB of memory consumed).
I would recommend to export the actual commands sent to Singular somehow and to reproduce them with the Singular version in fink (and on other platforms).

@sagetrac-PolyBoRi
Copy link
Mannequin

sagetrac-PolyBoRi mannequin commented May 29, 2008

comment:5

By the way: In Singular it is never checked, if an allocation is successful.
In this case, it usually crashes...
In fact, I was explicitely asked not to check the results of malloc calls...

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@kcrisman
Copy link
Member

kcrisman commented Aug 8, 2016

comment:10

On a new Mac,

degree = 13
Time: CPU 171.29 s, Wall: 171.90 s
5107 [3, 4, 5, 7, 17, 22, 71, 104, 162, 189]
Time: CPU 216.02 s, Wall: 218.62 s
54323 [1, 3, 3, 7, 8, 11, 90, 109, 352]
----------------------------------------------

but this is presumably 64-bit. It would be useful to know if this is still an issue with much larger input on a generic machine. Or is it so old it's wontfix?

@mkoeppe
Copy link
Member

mkoeppe commented Apr 18, 2020

comment:11

Outdated, should be closed

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Apr 18, 2020
@dimpase
Copy link
Member

dimpase commented Apr 18, 2020

Reviewer: Dima Pasechnik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants