-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

edA-qa mort-ora-y wrote:
> Andre Allavena wrote:
>> pokereval.poker_eval(game = "holdem", fill_pockets = 1, pockets =
>> [ ["As", "3s"],  ["__", "__"],  ["__", "__"]], dead = [], board =
>> ["__", "Qs", "2c", "Ac", "Kc"])
>
> I got everything working now (or mainly as test.py mostly runs).
> But your example causes an allocation error: *** glibc detected ***
> double free or corruption (out): 0x0000000000683410 ***
>
> It is the use of the __ card which is causing the problem.  I took
> this line from test.py:
>
> print "result = %s\n" % pokereval.poker_eval(game = "holdem",
> pockets = [ ["tc", "ac"],  ["3h", "ah"],  ["8c", "6h"]], dead = [],
> board = ["7h", "3s", "2c"])
>
> Which works fine, and simply replaced a few cards with __ and it
> produces the error now:
>
> print "result = %s\n" % pokereval.poker_eval(game = "holdem",
> pockets = [ ["tc", "ac"],  ["3h", "ah"],  ["__", "__"]], dead = [],
> board = ["7h", "3s", "2c"])
Hum. Could you run it from valgrind or a similar tool ? That will give
us more information about the guilty library.

Cheers

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkh+PqgACgkQ8dLMyEl6F21dOwCfeb2vIvY8bQ2/BCbzGPfvmqBx
w7UAoKpp0m92LM5wWGcGfFYEsD61U7ga
=+kFT
-----END PGP SIGNATURE-----

begin:vcard
fn:Loic Dachary
n:Dachary;Loic
org:pokersource
adr:;;12 bd Magenta;Paris;;75010;France
email;internet:[EMAIL PROTECTED]
title:Senior Developer
tel;work:+33 9 51 18 43 38
tel;cell:+33 6 64 03 29 07
x-mozilla-html:FALSE
url:http://dachary.org/
version:2.1
end:vcard

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to