atpohjal / or-tools

Automatically exported from code.google.com/p/or-tools
0 stars 0 forks source link

segfault if NextSolution is called and no decision builder is specified #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Simply run the attached example to reproduce.

Original issue reported on code.google.com by psch...@gmail.com on 9 Oct 2010 at 8:47

Attachments:

GoogleCodeExporter commented 9 years ago
What would be the expected behavior:
  - nice error message?
  - NextSolution() returns true (empty search tree finished), but nothing will be instanciated, thus it will crash in the Value() calls
  - NextSolution() returns false

I think I will go with the first option

Original comment by lper...@google.com on 9 Oct 2010 at 11:04

GoogleCodeExporter commented 9 years ago

Original comment by lper...@google.com on 9 Oct 2010 at 11:05

GoogleCodeExporter commented 9 years ago
Finally, it is a mix.
It echos a warning and returns false.

Original comment by lper...@google.com on 9 Oct 2010 at 11:19