[mlpack-git] [mlpack/mlpack] Test had stuck in 2.0.2 (#718)

Li Dong notifications at github.com
Wed Jul 13 04:46:24 EDT 2016


I debugged the above small testing code on Armadillo, and use `lldb` to see which part causes the problem. Then I found the following infinite loop in `random.tcc` bared in `libstdc++`:

```
   1798		    do
   1799		      {
   1800			__x = result_type(2.0) * __aurng() - 1.0;
-> 1801			__y = result_type(2.0) * __aurng() - 1.0;
   1802			__r2 = __x * __x + __y * __y;
   1803		      }
   1804		    while (__r2 > 1.0 || __r2 == 0.0);
(lldb)
```

where `__x` and `__y` are always -1, so `__r2` is always 2.

BTW, I am using GCC 6.1.0 compiled by myself, so it is the problem of `libstdc++`? Sorry, it is not related to MLPACK actually.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/718#issuecomment-232295010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160713/c923d5ac/attachment-0001.html>


More information about the mlpack-git mailing list