getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Errors in Getfem debug mode due to iterators out of r


From: Yves Renard
Subject: Re: [Getfem-users] Errors in Getfem debug mode due to iterators out of range.
Date: Tue, 17 Mar 2015 15:51:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0


Dear all,

The "make check" is now running on C++ and python test programs with the -D_GLIBCXX_DEBUG flag  (I was not able to run matlab test programs with this option because matlab do not appreciate it).



Le 12/03/2015 20:57, Konstantinos Poulios a écrit :
Maybe we could reproduce these errors with gcc by using the -D_GLIBCXX_DEBUG flag as described in https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode_using.html#debug_mode.using.mode .
I would also be interested in implementing any fix that can improve the quality of the code but I assume it will be really many places in the code where this error occurs.

Best regards
Kostas

On Thu, Mar 12, 2015 at 7:50 PM, Yves Renard <address@hidden> wrote:


This would be interesting to fix this problem of course. I do not use MSVC so I cannot be of any help. But I would be interested in having a few exemples of concerned loops.

Yves.



----- Original Message -----
From: "Teresa Pinheiro" <address@hidden>
To: "andriy andreykiv" <address@hidden>
Cc: address@hidden
Sent: Thursday, March 12, 2015 10:30:51 AM
Subject: Re: [Getfem-users] Errors in Getfem debug mode due to iterators out of range.

Thank you for your reply Andriy.

I can't do this because I use some precompiled 3rd party libraries and as you've said, this would throw some linking and runtime errors..
Maybe I could try to fix all loops using iterators ( there are a lot ) but I understand that sometimes this is not straightforward and I don't want to break anything...

Best regards,

Teresa

2015-03-11 13:31 GMT+01:00 Andriy Andreykiv < address@hidden > :



Dear Teresa,

We had the same problem on Windows, so, as a result, while building in the debug mode we were linking against
non-debug runtime libraries.
On MSVC go to project properties->ConfigurationProperties->C/C++->Code Generation and choose, for instance Runtime Library to Multi-threaded(/MT).
You should use this option on all libraries that you are linking otherwise you'll have linking conflicts

Best regards,
Andriy

On 11 March 2015 at 13:05, Teresa Pinheiro < address@hidden > wrote:



Hi,

I'm having problems with Getfem 4.3 compiled in Windows 7, VS2013 in Debug mode.

In Debug mode, there are some runtime checks ( _HAS_ITERATOR_DEBUGGING - https://msdn.microsoft.com/en-us/library/aa985939.aspx ) that makes libgetfem.dll fail. It occurs when an iterator has reached the end and Getfem algorithm tries to increase it.
This behaviour is present in several methods of Getfem.

In VS2013 Release mode and in GNU/Linux + GCC works fine.

I can't change _HAS_ITERATOR_DEBUGGING because it would mismatch the iterator debugging mode with other 3rd libraries that I use and fail.

My questions are: Is there someone compiling in Windows with the same problem? How can this be fixed?

Thank you very much.

Teresa

_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users




_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users

_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users



-- 

  Yves Renard (address@hidden)       tel : (33) 04.72.43.87.08
  Pole de Mathematiques, INSA-Lyon             fax : (33) 04.72.43.85.29
  20, rue Albert Einstein
  69621 Villeurbanne Cedex, FRANCE
  http://math.univ-lyon1.fr/~renard

---------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]