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

Code that used to work correctly in 3.06, raises Out_of_memory in recent CVS. #8437

Closed
vicuna opened this issue Jan 4, 2004 · 2 comments
Closed
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 4, 2004

Original bug ID: 2024
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Aleksey Nogin
Version: 3.07+13 (2004-01-04) from CVS
OS: Red Hat Linux 7.3
Submission from: charter-242-037.caltech.edu (131.215.242.37)

I am getting Out_of_memory exceptions (both on a P-III with 512 MB of RAM and
AMD Opteron with 16 GB of RAM) running code that works correctly with 3.06. Any
ideas what could be causing this?

The backtraces I am getting look like

Fatal error: exception Out_of_memory
Raised at file "", line 1, character 5527
Called from file "", line 1, character 5337
Re-raised at file "", line 1, character 5001
Called from file "", line 1, character 48833
Called from file "", line 1, character 17283
Called from file "", line 1, character 5079
Called from file "", line 1, character 6548
Re-raised at file "", line 1, character 5927
Called from file "", line 1, character 7701
Called from file "", line 1, character 1471

because of #8436, so I am not sure where exactly the problem comes from.

@vicuna
Copy link
Author

vicuna commented Jan 5, 2004

Comment author: administrator

I am getting Out_of_memory exceptions (both on a P-III with 512 MB
of RAM and AMD Opteron with 16 GB of RAM) running code that works
correctly with 3.06. Any ideas what could be causing this?

One possibility is that you're using polymorphic comparisons (=, <>,
etc) on a cyclic data structure.

The implementation of polymorphic comparisons was recently changed to
correctly handle float "nan". As a consequence, these comparisons now
do a full traversal of the data structures being compared, and
therefore will loop on cyclic data. (The previous implementation
could loop on cyclic data as well, as permitted by the specs;
it's just that it did it less often.)

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jan 9, 2004

Comment author: administrator

Was due to polymorphic comparison on cyclic data structure. XL, 2004-01-09.

@vicuna vicuna closed this as completed Jan 9, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant