Giter VIP home page Giter VIP logo

chips-blockchain / bet Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 17.0 39.69 MB

This repository holds the implementation code of Pangea Poker white paper: https://bit.ly/3bdCz0Z

Home Page: https://chips.cash

C 95.99% Objective-C 0.06% Makefile 0.42% Assembly 1.70% C++ 0.44% Roff 0.50% Shell 0.19% TeX 0.71%
poker blockchain gaming decentralized-application pangea-protocol cashier game cashier-nodes players dealer-node

bet's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bet's Issues

cashier node aborts the process for unknown reason

While testing pangea poker, one cashier node aborted twice in testing, the following log showing on console:

bet_cashier_backend_thrd::725::receiving::lock_in_tx                                                                                                                                                                                                                                                                   [0/917]
bet_bvv_backend::336::received::tx_status
bet_bvv_backend::336::received::seats_info_resp
bet_bvv_backend::336::received::tx_status
bet_bvv_backend::336::received::seats_info_resp
bet_bvv_backend::336::received::join_res
bet_bvv_backend::336::received::stack
bet_cashier_backend_thrd::725::receiving::live
bet_send_status::154::sending::{
        "method":       "live",
        "id":   "178e3a5314c3acd6bf0829a027f4c323ab3374920396dadc77245b95fdce2c12"
}
bet_cashier_backend_thrd::725::receiving::dealer_info
SQL error: UNIQUE constraint failed: dealers_info.dealer_ip::in running ::INSERT into dealers_info values('139.59.97.207');
bet_cashier_backend_thrd::725::receiving::find_bvv
connect to tcp://:7797 error for Invalid argument
connect to tcp://:7798 error for Invalid argument
bet_cashier_backend_thrd::725::receiving::add_bvv
bet_bvv_join_init::231::sent::{
        "method":       "bvv_join"
}
bet_bvv_backend::336::received::config_data
bet_cashier_backend_thrd::725::receiving::live
bet_send_status::154::sending::{
        "method":       "live",
        "id":   "535e495d51c46d812a1cb630a4e1a5191704fd524ebd956815729ce967057c62"
}
bet_cashier_backend_thrd::725::receiving::dealer_info
SQL error: UNIQUE constraint failed: dealers_info.dealer_ip::in running ::INSERT into dealers_info values('139.59.97.207');
bet_cashier_backend_thrd::725::receiving::find_bvv
connect to tcp://:7797 error for Invalid argument
connect to tcp://:7798 error for Invalid argument
double free or corruption (out)
Aborted
satinder@cashier1:~/grewal/bet/privatebet$

Player 1 crashed pre-flop

Player 1 crashed after checking pre-flop.

Screenshot: https://i.norbert.dev/d7897a

Log:

*** Error in `./bet': free(): invalid next size (fast): 0x00007f3d6805a110 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f3d73d127e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f3d73d1b37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f3d73d1f53c]
./bet(lws_callback_http_dummy+0x182)[0x427df7]
/usr/local/lib/libwebsockets.so.14(+0x14e81)[0x7f3d74079e81]
/usr/local/lib/libwebsockets.so.14(+0x1e32a)[0x7f3d7408332a]
/usr/local/lib/libwebsockets.so.14(+0x19b93)[0x7f3d7407eb93]
/usr/local/lib/libwebsockets.so.14(+0x1a8c4)[0x7f3d7407f8c4]
/usr/local/lib/libwebsockets.so.14(lws_service_fd_tsi+0xb7)[0x7f3d74078ee7]
/usr/local/lib/libwebsockets.so.14(_lws_plat_service_tsi+0x249)[0x7f3d74094769]
/usr/local/lib/libwebsockets.so.14(lws_service+0x3d)[0x7f3d74078fcd]
./bet[0x42e6c9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f3d747e86ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f3d73da241d]
======= Memory map: ========
00400000-004e5000 r-xp 00000000 fd:01 770781                             /home/chips/bet/privatebet/bet
006e4000-006e5000 r--p 000e4000 fd:01 770781                             /home/chips/bet/privatebet/bet
006e5000-006ea000 rw-p 000e5000 fd:01 770781                             /home/chips/bet/privatebet/bet
006ea000-0091a000 rw-p 00000000 00:00 0 
021d0000-02214000 rw-p 00000000 00:00 0                                  [heap]
7f3d60000000-7f3d60021000 rw-p 00000000 00:00 0 
7f3d60021000-7f3d64000000 ---p 00000000 00:00 0 
7f3d68000000-7f3d6805b000 rw-p 00000000 00:00 0 
7f3d6805b000-7f3d6c000000 ---p 00000000 00:00 0 
7f3d6e38f000-7f3d6e3a5000 r-xp 00000000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3d6e3a5000-7f3d6e5a4000 ---p 00016000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3d6e5a4000-7f3d6e5a5000 rw-p 00015000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3d6e5a5000-7f3d6e5a6000 ---p 00000000 00:00 0 
7f3d6e5a6000-7f3d6eda6000 rw-p 00000000 00:00 0 
7f3d6eda6000-7f3d6edaf000 r-xp 00000000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f3d6edaf000-7f3d6efae000 ---p 00009000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f3d6efae000-7f3d6efaf000 r--p 00008000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f3d6efaf000-7f3d6efb0000 rw-p 00009000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f3d6efb0000-7f3d6efde000 rw-p 00000000 00:00 0 
7f3d6efde000-7f3d6f0ad000 r-xp 00000000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f3d6f0ad000-7f3d6f2ac000 ---p 000cf000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f3d6f2ac000-7f3d6f2af000 r--p 000ce000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f3d6f2af000-7f3d6f2b1000 rw-p 000d1000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f3d6f2b1000-7f3d6f2b2000 rw-p 00000000 00:00 0 
7f3d6f2b2000-7f3d6f2f9000 r-xp 00000000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f3d6f2f9000-7f3d6f4f8000 ---p 00047000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f3d6f4f8000-7f3d6f4fa000 r--p 00046000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f3d6f4fa000-7f3d6f4fc000 rw-p 00048000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f3d6f4fc000-7f3d6f4fd000 rw-p 00000000 00:00 0 
7f3d6f4fd000-7f3d6f50b000 r-xp 00000000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f3d6f50b000-7f3d6f70a000 ---p 0000e000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f3d6f70a000-7f3d6f70b000 r--p 0000d000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f3d6f70b000-7f3d6f70c000 rw-p 0000e000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f3d6f70c000-7f3d6f733000 r-xp 00000000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f3d6f733000-7f3d6f933000 ---p 00027000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f3d6f933000-7f3d6f934000 r--p 00027000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f3d6f934000-7f3d6f935000 rw-p 00028000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f3d6f935000-7f3d6f94a000 r-xp 00000000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f3d6f94a000-7f3d6fb49000 ---p 00015000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f3d6fb49000-7f3d6fb4a000 r--p 00014000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f3d6fb4a000-7f3d6fb4b000 rw-p 00015000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f3d6fb4b000-7f3d6fb7b000 r-xp 00000000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f3d6fb7b000-7f3d6fd7b000 ---p 00030000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f3d6fd7b000-7f3d6fd7c000 r--p 00030000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f3d6fd7c000-7f3d6fd7d000 rw-p 00031000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f3d6fd7d000-7f3d6fd7e000 rw-p 00000000 00:00 0 
7f3d6fd7e000-7f3d6fe1d000 r-xp 00000000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f3d6fe1d000-7f3d7001c000 ---p 0009f000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f3d7001c000-7f3d7001d000 r--p 0009e000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f3d7001d000-7f3d70020000 rw-p 0009f000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f3d70020000-7f3d700a4000 r-xp 00000000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f3d700a4000-7f3d702a3000 ---p 00084000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f3d702a3000-7f3d702a6000 r--p 00083000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f3d702a6000-7f3d702a9000 rw-p 00086000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f3d702a9000-7f3d702aa000 rw-p 00000000 00:00 0 
7f3d702aa000-7f3d702b2000 r-xp 00000000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f3d702b2000-7f3d704b1000 ---p 00008000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f3d704b1000-7f3d704b2000 r--p 00007000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f3d704b2000-7f3d704b3000 rw-p 00008000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f3d704b3000-7f3d704b6000 r-xp 00000000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f3d704b6000-7f3d706b5000 ---p 00003000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f3d706b5000-7f3d706b6000 r--p 00002000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f3d706b6000-7f3d706b7000 rw-p 00003000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f3d706b7000-7f3d706be000 r-xp 00000000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f3d706be000-7f3d708bd000 ---p 00007000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f3d708bd000-7f3d708be000 r--p 00006000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f3d708be000-7f3d708bf000 rw-p 00007000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f3d708bf000-7f3d708c2000 r-xp 00000000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f3d708c2000-7f3d70ac1000 ---p 00003000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f3d70ac1000-7f3d70ac2000 r--p 00002000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f3d70ac2000-7f3d70ac3000 rw-p 00003000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f3d70ac3000-7f3d70b00000 r-xp 00000000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f3d70b00000-7f3d70d00000 ---p 0003d000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f3d70d00000-7f3d70d01000 r--p 0003d000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f3d70d01000-7f3d70d03000 rw-p 0003e000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f3d70d03000-7f3d70d04000 rw-p 00000000 00:00 0 
7f3d70d04000-7f3d70d1d000 r-xp 00000000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f3d70d1d000-7f3d70f1d000 ---p 00019000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f3d70f1d000-7f3d70f1e000 r--p 00019000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f3d70f1e000-7f3d70f1f000 rw-p 0001a000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f3d70f1f000-7f3d70f36000 r-xp 00000000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f3d70f36000-7f3d71136000 ---p 00017000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f3d71136000-7f3d71137000 r--p 00017000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f3d71137000-7f3d71138000 rw-p 00018000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f3d71138000-7f3d7113a000 rw-p 00000000 00:00 0 
7f3d7113a000-7f3d71144000 r-xp 00000000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f3d71144000-7f3d71343000 ---p 0000a000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f3d71343000-7f3d71344000 r--p 00009000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f3d71344000-7f3d71345000 rw-p 0000a000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f3d71345000-7f3d71348000 r-xp 00000000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f3d71348000-7f3d71547000 ---p 00003000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f3d71547000-7f3d71548000 r--p 00002000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f3d71548000-7f3d71549000 rw-p 00003000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f3d71549000-7f3d71575000 r-xp 00000000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f3d71575000-7f3d71774000 ---p 0002c000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f3d71774000-7f3d71776000 r--p 0002b000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f3d71776000-7f3d71777000 rw-p 0002d000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f3d71777000-7f3d71778000 rw-p 00000000 00:00 0 
7f3d71778000-7f3d7183b000 r-xp 00000000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f3d7183b000-7f3d71a3b000 ---p 000c3000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f3d71a3b000-7f3d71a48000 r--p 000c3000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f3d71a48000-7f3d71a4a000 rw-p 000d0000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f3d71a4a000-7f3d71a5b000 r-xp 00000000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f3d71a5b000-7f3d71c5b000 ---p 00011000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f3d71c5b000-7f3d71c5c000 r--p 00011000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f3d71c5c000-7f3d71c5d000 rw-p 00012000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f3d71c5d000-7f3d71cb6000 r-xp 00000000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f3d71cb6000-7f3d71eb5000 ---p 00059000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f3d71eb5000-7f3d71ebf000 r--p 00058000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f3d71ebf000-7f3d71ec1000 rw-p 00062000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f3d71ec1000-7f3d71f40000 r-xp 00000000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f3d71f40000-7f3d7213f000 ---p 0007f000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f3d7213f000-7f3d72140000 r--p 0007e000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f3d72140000-7f3d72141000 rw-p 0007f000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f3d72141000-7f3d72173000 r-xp 00000000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f3d72173000-7f3d72372000 ---p 00032000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f3d72372000-7f3d72373000 r--p 00031000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f3d72373000-7f3d72374000 rw-p 00032000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f3d72374000-7f3d7258f000 r-xp 00000000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f3d7258f000-7f3d7278e000 ---p 0021b000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f3d7278e000-7f3d727aa000 r--p 0021a000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f3d727aa000-7f3d727b6000 rw-p 00236000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f3d727b6000-7f3d727b9000 rw-p 00000000 00:00 0 
7f3d727b9000-7f3d72817000 r-xp 00000000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f3d72817000-7f3d72a17000 ---p 0005e000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f3d72a17000-7f3d72a1b000 r--p 0005e000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f3d72a1b000-7f3d72a22000 rw-p 00062000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f3d72a22000-7f3d72a3b000 r-xp 00000000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f3d72a3b000-7f3d72c3a000 ---p 00019000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f3d72c3a000-7f3d72c3b000 r--p 00018000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f3d72c3b000-7f3d72c3c000 rw-p 00019000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f3d72c3c000-7f3d72c89000 r-xp 00000000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f3d72c89000-7f3d72e88000 ---p 0004d000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f3d72e88000-7f3d72e8a000 r--p 0004c000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f3d72e8a000-7f3d72e8b000 rw-p 0004e000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f3d72e8b000-7f3d72e8d000 rw-p 00000000 00:00 0 
7f3d72e8d000-7f3d72e9a000 r-xp 00000000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f3d72e9a000-7f3d7309a000 ---p 0000d000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f3d7309a000-7f3d7309b000 r--p 0000d000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f3d7309b000-7f3d7309c000 rw-p 0000e000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f3d7309c000-7f3d730e3000 r-xp 00000000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f3d730e3000-7f3d732e2000 ---p 00047000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f3d732e2000-7f3d732e4000 r--p 00046000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f3d732e4000-7f3d732e6000 rw-p 00048000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f3d732e6000-7f3d73409000 r-xp 00000000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f3d73409000-7f3d73608000 ---p 00123000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f3d73608000-7f3d73613000 r--p 00122000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f3d73613000-7f3d73615000 rw-p 0012d000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f3d73615000-7f3d73616000 rw-p 00000000 00:00 0 
7f3d73616000-7f3d7364a000 r-xp 00000000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f3d7364a000-7f3d73849000 ---p 00034000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f3d73849000-7f3d7384b000 r--p 00033000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f3d7384b000-7f3d7384c000 rw-p 00035000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f3d7384c000-7f3d73867000 r-xp 00000000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f3d73867000-7f3d73a66000 ---p 0001b000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f3d73a66000-7f3d73a67000 r--p 0001a000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f3d73a67000-7f3d73a68000 rw-p 0001b000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f3d73a68000-7f3d73a99000 r-xp 00000000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f3d73a99000-7f3d73c99000 ---p 00031000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f3d73c99000-7f3d73c9a000 r--p 00031000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f3d73c9a000-7f3d73c9b000 rw-p 00032000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f3d73c9b000-7f3d73e5b000 r-xp 00000000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7f3d73e5b000-7f3d7405b000 ---p 001c0000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7f3d7405b000-7f3d7405f000 r--p 001c0000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7f3d7405f000-7f3d74061000 rw-p 001c4000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7f3d74061000-7f3d74065000 rw-p 00000000 00:00 0 
7f3d74065000-7f3d740aa000 r-xp 00000000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7f3d740aa000-7f3d742aa000 ---p 00045000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7f3d742aa000-7f3d742ab000 r--p 00045000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7f3d742ab000-7f3d742ad000 rw-p 00046000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7f3d742ad000-7f3d742d7000 r-xp 00000000 fd:01 776120                     /home/chips/lightning/external/libcli.so
7f3d742d7000-7f3d744d6000 ---p 0002a000 fd:01 776120                     /home/chips/lightning/external/libcli.so
7f3d744d6000-7f3d744d7000 r--p 00029000 fd:01 776120                     /home/chips/lightning/external/libcli.so
7f3d744d7000-7f3d744d8000 rw-p 0002a000 fd:01 776120                     /home/chips/lightning/external/libcli.so
7f3d744d8000-7f3d745e0000 r-xp 00000000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7f3d745e0000-7f3d747df000 ---p 00108000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7f3d747df000-7f3d747e0000 r--p 00107000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7f3d747e0000-7f3d747e1000 rw-p 00108000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7f3d747e1000-7f3d747f9000 r-xp 00000000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7f3d747f9000-7f3d749f8000 ---p 00018000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7f3d749f8000-7f3d749f9000 r--p 00017000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7f3d749f9000-7f3d749fa000 rw-p 00018000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7f3d749fa000-7f3d749fe000 rw-p 00000000 00:00 0 
7f3d749fe000-7f3d74a68000 r-xp 00000000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f3d74a68000-7f3d74c67000 ---p 0006a000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f3d74c67000-7f3d74c6a000 r--p 00069000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f3d74c6a000-7f3d74c6b000 rw-p 0006c000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f3d74c6b000-7f3d74c91000 r-xp 00000000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7f3d74e02000-7f3d74e86000 rw-p 00000000 00:00 0 
7f3d74e8f000-7f3d74e90000 rw-p 00000000 00:00 0 
7f3d74e90000-7f3d74e91000 r--p 00025000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7f3d74e91000-7f3d74e92000 rw-p 00026000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7f3d74e92000-7f3d74e93000 rw-p 00000000 00:00 0 
7ffd96648000-7ffd96669000 rw-p 00000000 00:00 0                          [stack]
7ffd9679e000-7ffd967a1000 r--p 00000000 00:00 0                          [vvar]
7ffd967a1000-7ffd967a3000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

Issue in LN channel establishing due to empty IP Address

Right now, the bet node runs lightning-cli getinfo and parses the output and reads the id and ip from the output and with those values an uri string is formed id@ip and using which an LN channel is established.

But if the LN node is not public or the IP is not configured in the LN node, the lightning-cli getinfo command returns NULL in addresses field and which result in reading NULL for IP address and that causing the segmentation fault and aborting of the player node.

Public & Private tables - dealer option

Are you able to add a "Private" or "Public" option when dealers start tables (along with all the other options). This way, if it is public, the IP will be sent to the cashier nodes for distribution, otherwise it is private, and the table will not be accessible for anybody that doesn't enter it directly into the GUI.

Having the ability to make a table private is a great way of having friends playing together. For example, one friend starts a dealer node for the evening, sets the table as "Private" (does not distribute IP to cashier nodes), and gives their friends that IP to join the table. The games are still played on the CHIPS network, the cashier nodes take their rake, and the friends can play poker in a trustless, verifiable, online way.

Dealer node crashes after one hand

Issue

The dealer node crashes with Segmentation fault (core dumped) after the first hand. It doesn't matter if the hand is played all the way or one of the players folds.

Steps to reproduce

Please use Vultr nodes for testing.

  1. Run 2 player nodes and one dealer node.
  2. Play the first hand. (You can let one of the players fold straight away)
  3. DCV fails with Segmentation fault (core dumped) after the finalInfo

Terminal logs

Player 1

player1.txt

Player 2

player2.txt

DCV

dcv.txt

toCall and toRaise are different for the small blind and big blind

Pre-flop the small blind receivestoCall: 2m, toRaise: 4m while the big blind receives toCall: 0, toRaise: 2m. For both players, the value values should be toCall: 2m, toRaise: 4m, since 2m is the largest bet that needs to be called, and the minimum raise is to 4m.

Screenshot: http://i.norbert.dev/feebc9 (it was made after the small blind has called, but the message was received right at the betting rounds for each player).

Pot info should be shared in `method: betting` messages

Currently, the GUI calculates the pot by itself. To avoid mismaching values, we should switch to dispalying the pot amount based on the value that the backend sends.

Currently, the betting message looks like t his:

{
    action: "call"
    bet_amount: 2​
    method: "betting"​
    min_amount: 2​
    playerid: 1​
    round: 0
}

We should att the pot value to this object so we can update the GUIs accordingly.

Handling the re-fill of LN Channels

LN channels are used to make the real time betting transactions, there exists a scenario where an LN channel run out of funds, during this scenario the way the LN channels should be refilled needs to be handled.

Incosistent bet_amount

After pre-flop player1 raises to 4, bet_amount: 3 is being sent to player2.

bet_amount should consistently represent the total amount a player bets at any given time. This should be 4 in this case, too.

(Click on the image to enlarge.)

All-in keeps the game going

When both players go all-in, the game goes to the next street and the game continues.

The expected behavior here is to deal all cards and select the winner.

Screenshot (click to enlarge):

Send the `seats` method with the maxPlayers number of seats

We need to let the player choose a seat from the whole table, even though the dealer might be configured for 2 players only.

The GUI needs to receive an array of 9 seats with their occupancy. The players need to be able to seat wherever they want to.

DCV crashed pre-flop

Screenshot: http://i.norbert.dev/c12933

** Error in `./bet': free(): invalid next size (normal): 0x00007ff2900466e0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ff29b6347e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7ff29b63d37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ff29b64153c]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x103)[0x7ff29b62a363]
./bet[0x410585]
./bet[0x4265f6]
./bet[0x427a2d]
./bet(lws_callback_http_dummy+0x168)[0x427ddd]
/usr/local/lib/libwebsockets.so.14(+0x14e81)[0x7ff29b99be81]
/usr/local/lib/libwebsockets.so.14(+0x1e32a)[0x7ff29b9a532a]
/usr/local/lib/libwebsockets.so.14(+0x19b93)[0x7ff29b9a0b93]
/usr/local/lib/libwebsockets.so.14(+0x1a8c4)[0x7ff29b9a18c4]
/usr/local/lib/libwebsockets.so.14(lws_service_fd_tsi+0xb7)[0x7ff29b99aee7]
/usr/local/lib/libwebsockets.so.14(_lws_plat_service_tsi+0x249)[0x7ff29b9b6769]
/usr/local/lib/libwebsockets.so.14(lws_service+0x3d)[0x7ff29b99afcd]
./bet[0x42e695]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7ff29c10a6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ff29b6c441d]
======= Memory map: ========
00400000-004e5000 r-xp 00000000 fd:01 770734                             /home/chips/bet/privatebet/bet
006e4000-006e5000 r--p 000e4000 fd:01 770734                             /home/chips/bet/privatebet/bet
006e5000-006ea000 rw-p 000e5000 fd:01 770734                             /home/chips/bet/privatebet/bet
006ea000-0091a000 rw-p 00000000 00:00 0 
02835000-02879000 rw-p 00000000 00:00 0                                  [heap]
7ff288000000-7ff288021000 rw-p 00000000 00:00 0 
7ff288021000-7ff28c000000 ---p 00000000 00:00 0 
7ff290000000-7ff29004c000 rw-p 00000000 00:00 0 
7ff29004c000-7ff294000000 ---p 00000000 00:00 0 
7ff295cb1000-7ff295cc7000 r-xp 00000000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff295cc7000-7ff295ec6000 ---p 00016000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff295ec6000-7ff295ec7000 rw-p 00015000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff295ec7000-7ff295ec8000 ---p 00000000 00:00 0 
7ff295ec8000-7ff2966c8000 rw-p 00000000 00:00 0 
7ff2966c8000-7ff2966d1000 r-xp 00000000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7ff2966d1000-7ff2968d0000 ---p 00009000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7ff2968d0000-7ff2968d1000 r--p 00008000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7ff2968d1000-7ff2968d2000 rw-p 00009000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7ff2968d2000-7ff296900000 rw-p 00000000 00:00 0 
7ff296900000-7ff2969cf000 r-xp 00000000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7ff2969cf000-7ff296bce000 ---p 000cf000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7ff296bce000-7ff296bd1000 r--p 000ce000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7ff296bd1000-7ff296bd3000 rw-p 000d1000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7ff296bd3000-7ff296bd4000 rw-p 00000000 00:00 0 
7ff296bd4000-7ff296c1b000 r-xp 00000000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7ff296c1b000-7ff296e1a000 ---p 00047000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7ff296e1a000-7ff296e1c000 r--p 00046000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7ff296e1c000-7ff296e1e000 rw-p 00048000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7ff296e1e000-7ff296e1f000 rw-p 00000000 00:00 0 
7ff296e1f000-7ff296e2d000 r-xp 00000000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7ff296e2d000-7ff29702c000 ---p 0000e000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7ff29702c000-7ff29702d000 r--p 0000d000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7ff29702d000-7ff29702e000 rw-p 0000e000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7ff29702e000-7ff297055000 r-xp 00000000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7ff297055000-7ff297255000 ---p 00027000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7ff297255000-7ff297256000 r--p 00027000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7ff297256000-7ff297257000 rw-p 00028000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7ff297257000-7ff29726c000 r-xp 00000000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7ff29726c000-7ff29746b000 ---p 00015000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7ff29746b000-7ff29746c000 r--p 00014000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7ff29746c000-7ff29746d000 rw-p 00015000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7ff29746d000-7ff29749d000 r-xp 00000000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7ff29749d000-7ff29769d000 ---p 00030000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7ff29769d000-7ff29769e000 r--p 00030000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7ff29769e000-7ff29769f000 rw-p 00031000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7ff29769f000-7ff2976a0000 rw-p 00000000 00:00 0 
7ff2976a0000-7ff29773f000 r-xp 00000000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7ff29773f000-7ff29793e000 ---p 0009f000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7ff29793e000-7ff29793f000 r--p 0009e000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7ff29793f000-7ff297942000 rw-p 0009f000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7ff297942000-7ff2979c6000 r-xp 00000000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7ff2979c6000-7ff297bc5000 ---p 00084000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7ff297bc5000-7ff297bc8000 r--p 00083000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7ff297bc8000-7ff297bcb000 rw-p 00086000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7ff297bcb000-7ff297bcc000 rw-p 00000000 00:00 0 
7ff297bcc000-7ff297bd4000 r-xp 00000000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7ff297bd4000-7ff297dd3000 ---p 00008000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7ff297dd3000-7ff297dd4000 r--p 00007000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7ff297dd4000-7ff297dd5000 rw-p 00008000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7ff297dd5000-7ff297dd8000 r-xp 00000000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7ff297dd8000-7ff297fd7000 ---p 00003000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7ff297fd7000-7ff297fd8000 r--p 00002000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7ff297fd8000-7ff297fd9000 rw-p 00003000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7ff297fd9000-7ff297fe0000 r-xp 00000000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7ff297fe0000-7ff2981df000 ---p 00007000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7ff2981df000-7ff2981e0000 r--p 00006000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7ff2981e0000-7ff2981e1000 rw-p 00007000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7ff2981e1000-7ff2981e4000 r-xp 00000000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7ff2981e4000-7ff2983e3000 ---p 00003000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7ff2983e3000-7ff2983e4000 r--p 00002000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7ff2983e4000-7ff2983e5000 rw-p 00003000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7ff2983e5000-7ff298422000 r-xp 00000000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7ff298422000-7ff298622000 ---p 0003d000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7ff298622000-7ff298623000 r--p 0003d000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7ff298623000-7ff298625000 rw-p 0003e000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7ff298625000-7ff298626000 rw-p 00000000 00:00 0 
7ff298626000-7ff29863f000 r-xp 00000000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7ff29863f000-7ff29883f000 ---p 00019000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7ff29883f000-7ff298840000 r--p 00019000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7ff298840000-7ff298841000 rw-p 0001a000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7ff298841000-7ff298858000 r-xp 00000000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7ff298858000-7ff298a58000 ---p 00017000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7ff298a58000-7ff298a59000 r--p 00017000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7ff298a59000-7ff298a5a000 rw-p 00018000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7ff298a5a000-7ff298a5c000 rw-p 00000000 00:00 0 
7ff298a5c000-7ff298a66000 r-xp 00000000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7ff298a66000-7ff298c65000 ---p 0000a000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7ff298c65000-7ff298c66000 r--p 00009000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7ff298c66000-7ff298c67000 rw-p 0000a000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7ff298c67000-7ff298c6a000 r-xp 00000000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7ff298c6a000-7ff298e69000 ---p 00003000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7ff298e69000-7ff298e6a000 r--p 00002000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7ff298e6a000-7ff298e6b000 rw-p 00003000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7ff298e6b000-7ff298e97000 r-xp 00000000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7ff298e97000-7ff299096000 ---p 0002c000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7ff299096000-7ff299098000 r--p 0002b000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7ff299098000-7ff299099000 rw-p 0002d000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7ff299099000-7ff29909a000 rw-p 00000000 00:00 0 
7ff29909a000-7ff29915d000 r-xp 00000000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7ff29915d000-7ff29935d000 ---p 000c3000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7ff29935d000-7ff29936a000 r--p 000c3000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7ff29936a000-7ff29936c000 rw-p 000d0000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7ff29936c000-7ff29937d000 r-xp 00000000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7ff29937d000-7ff29957d000 ---p 00011000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7ff29957d000-7ff29957e000 r--p 00011000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7ff29957e000-7ff29957f000 rw-p 00012000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7ff29957f000-7ff2995d8000 r-xp 00000000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7ff2995d8000-7ff2997d7000 ---p 00059000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7ff2997d7000-7ff2997e1000 r--p 00058000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7ff2997e1000-7ff2997e3000 rw-p 00062000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7ff2997e3000-7ff299862000 r-xp 00000000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7ff299862000-7ff299a61000 ---p 0007f000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7ff299a61000-7ff299a62000 r--p 0007e000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7ff299a62000-7ff299a63000 rw-p 0007f000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7ff299a63000-7ff299a95000 r-xp 00000000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7ff299a95000-7ff299c94000 ---p 00032000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7ff299c94000-7ff299c95000 r--p 00031000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7ff299c95000-7ff299c96000 rw-p 00032000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7ff299c96000-7ff299eb1000 r-xp 00000000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ff299eb1000-7ff29a0b0000 ---p 0021b000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ff29a0b0000-7ff29a0cc000 r--p 0021a000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ff29a0cc000-7ff29a0d8000 rw-p 00236000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ff29a0d8000-7ff29a0db000 rw-p 00000000 00:00 0 
7ff29a0db000-7ff29a139000 r-xp 00000000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ff29a139000-7ff29a339000 ---p 0005e000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ff29a339000-7ff29a33d000 r--p 0005e000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ff29a33d000-7ff29a344000 rw-p 00062000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ff29a344000-7ff29a35d000 r-xp 00000000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7ff29a35d000-7ff29a55c000 ---p 00019000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7ff29a55c000-7ff29a55d000 r--p 00018000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7ff29a55d000-7ff29a55e000 rw-p 00019000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7ff29a55e000-7ff29a5ab000 r-xp 00000000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7ff29a5ab000-7ff29a7aa000 ---p 0004d000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7ff29a7aa000-7ff29a7ac000 r--p 0004c000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7ff29a7ac000-7ff29a7ad000 rw-p 0004e000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7ff29a7ad000-7ff29a7af000 rw-p 00000000 00:00 0 
7ff29a7af000-7ff29a7bc000 r-xp 00000000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7ff29a7bc000-7ff29a9bc000 ---p 0000d000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7ff29a9bc000-7ff29a9bd000 r--p 0000d000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7ff29a9bd000-7ff29a9be000 rw-p 0000e000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7ff29a9be000-7ff29aa05000 r-xp 00000000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7ff29aa05000-7ff29ac04000 ---p 00047000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7ff29ac04000-7ff29ac06000 r--p 00046000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7ff29ac06000-7ff29ac08000 rw-p 00048000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7ff29ac08000-7ff29ad2b000 r-xp 00000000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7ff29ad2b000-7ff29af2a000 ---p 00123000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7ff29af2a000-7ff29af35000 r--p 00122000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7ff29af35000-7ff29af37000 rw-p 0012d000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7ff29af37000-7ff29af38000 rw-p 00000000 00:00 0 
7ff29af38000-7ff29af6c000 r-xp 00000000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7ff29af6c000-7ff29b16b000 ---p 00034000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7ff29b16b000-7ff29b16d000 r--p 00033000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7ff29b16d000-7ff29b16e000 rw-p 00035000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7ff29b16e000-7ff29b189000 r-xp 00000000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7ff29b189000-7ff29b388000 ---p 0001b000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7ff29b388000-7ff29b389000 r--p 0001a000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7ff29b389000-7ff29b38a000 rw-p 0001b000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7ff29b38a000-7ff29b3bb000 r-xp 00000000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7ff29b3bb000-7ff29b5bb000 ---p 00031000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7ff29b5bb000-7ff29b5bc000 r--p 00031000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7ff29b5bc000-7ff29b5bd000 rw-p 00032000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7ff29b5bd000-7ff29b77d000 r-xp 00000000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7ff29b77d000-7ff29b97d000 ---p 001c0000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7ff29b97d000-7ff29b981000 r--p 001c0000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7ff29b981000-7ff29b983000 rw-p 001c4000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7ff29b983000-7ff29b987000 rw-p 00000000 00:00 0 
7ff29b987000-7ff29b9cc000 r-xp 00000000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7ff29b9cc000-7ff29bbcc000 ---p 00045000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7ff29bbcc000-7ff29bbcd000 r--p 00045000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7ff29bbcd000-7ff29bbcf000 rw-p 00046000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7ff29bbcf000-7ff29bbf9000 r-xp 00000000 fd:01 775518                     /home/chips/lightning/external/libcli.so
7ff29bbf9000-7ff29bdf8000 ---p 0002a000 fd:01 775518                     /home/chips/lightning/external/libcli.so
7ff29bdf8000-7ff29bdf9000 r--p 00029000 fd:01 775518                     /home/chips/lightning/external/libcli.so
7ff29bdf9000-7ff29bdfa000 rw-p 0002a000 fd:01 775518                     /home/chips/lightning/external/libcli.so
7ff29bdfa000-7ff29bf02000 r-xp 00000000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7ff29bf02000-7ff29c101000 ---p 00108000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7ff29c101000-7ff29c102000 r--p 00107000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7ff29c102000-7ff29c103000 rw-p 00108000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7ff29c103000-7ff29c11b000 r-xp 00000000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff29c11b000-7ff29c31a000 ---p 00018000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff29c31a000-7ff29c31b000 r--p 00017000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff29c31b000-7ff29c31c000 rw-p 00018000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff29c31c000-7ff29c320000 rw-p 00000000 00:00 0 
7ff29c320000-7ff29c38a000 r-xp 00000000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7ff29c38a000-7ff29c589000 ---p 0006a000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7ff29c589000-7ff29c58c000 r--p 00069000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7ff29c58c000-7ff29c58d000 rw-p 0006c000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7ff29c58d000-7ff29c5b3000 r-xp 00000000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7ff29c794000-7ff29c7a8000 rw-p 00000000 00:00 0 
7ff29c7b1000-7ff29c7b2000 rw-p 00000000 00:00 0 
7ff29c7b2000-7ff29c7b3000 r--p 00025000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7ff29c7b3000-7ff29c7b4000 rw-p 00026000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7ff29c7b4000-7ff29c7b5000 rw-p 00000000 00:00 0 
7ffca4187000-7ffca41a8000 rw-p 00000000 00:00 0                          [stack]
7ffca41ee000-7ffca41f1000 r--p 00000000 00:00 0                          [vvar]
7ffca41f1000-7ffca41f3000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

DCV Crashed on Turn

DCV crashed after the second player's action on the turn.

Screenshot: http://i.norbert.dev/4fbb8f

Log on DCV:

*** Error in `./bet': free(): invalid next size (fast): 0x00007f1400058c90 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f140999c7e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f14099a537a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f14099a953c]
./bet[0x426943]
./bet[0x427a2d]
./bet(lws_callback_http_dummy+0x168)[0x427ddd]
/usr/local/lib/libwebsockets.so.14(+0x14e81)[0x7f1409d03e81]
/usr/local/lib/libwebsockets.so.14(+0x1e32a)[0x7f1409d0d32a]
/usr/local/lib/libwebsockets.so.14(+0x19b93)[0x7f1409d08b93]
/usr/local/lib/libwebsockets.so.14(+0x1a8c4)[0x7f1409d098c4]
/usr/local/lib/libwebsockets.so.14(lws_service_fd_tsi+0xb7)[0x7f1409d02ee7]
/usr/local/lib/libwebsockets.so.14(_lws_plat_service_tsi+0x249)[0x7f1409d1e769]
/usr/local/lib/libwebsockets.so.14(lws_service+0x3d)[0x7f1409d02fcd]
./bet[0x42e695]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f140a4726ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f1409a2c41d]
======= Memory map: ========
00400000-004e5000 r-xp 00000000 fd:01 770734                             /home/chips/bet/privatebet/bet
006e4000-006e5000 r--p 000e4000 fd:01 770734                             /home/chips/bet/privatebet/bet
006e5000-006ea000 rw-p 000e5000 fd:01 770734                             /home/chips/bet/privatebet/bet
006ea000-0091a000 rw-p 00000000 00:00 0 
016a9000-016ed000 rw-p 00000000 00:00 0                                  [heap]
7f13f8000000-7f13f8021000 rw-p 00000000 00:00 0 
7f13f8021000-7f13fc000000 ---p 00000000 00:00 0 
7f1400000000-7f1400060000 rw-p 00000000 00:00 0 
7f1400060000-7f1404000000 ---p 00000000 00:00 0 
7f1404019000-7f140402f000 r-xp 00000000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f140402f000-7f140422e000 ---p 00016000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f140422e000-7f140422f000 rw-p 00015000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f140422f000-7f1404230000 ---p 00000000 00:00 0 
7f1404230000-7f1404a30000 rw-p 00000000 00:00 0 
7f1404a30000-7f1404a39000 r-xp 00000000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f1404a39000-7f1404c38000 ---p 00009000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f1404c38000-7f1404c39000 r--p 00008000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f1404c39000-7f1404c3a000 rw-p 00009000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f1404c3a000-7f1404c68000 rw-p 00000000 00:00 0 
7f1404c68000-7f1404d37000 r-xp 00000000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f1404d37000-7f1404f36000 ---p 000cf000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f1404f36000-7f1404f39000 r--p 000ce000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f1404f39000-7f1404f3b000 rw-p 000d1000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f1404f3b000-7f1404f3c000 rw-p 00000000 00:00 0 
7f1404f3c000-7f1404f83000 r-xp 00000000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f1404f83000-7f1405182000 ---p 00047000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f1405182000-7f1405184000 r--p 00046000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f1405184000-7f1405186000 rw-p 00048000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f1405186000-7f1405187000 rw-p 00000000 00:00 0 
7f1405187000-7f1405195000 r-xp 00000000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f1405195000-7f1405394000 ---p 0000e000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f1405394000-7f1405395000 r--p 0000d000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f1405395000-7f1405396000 rw-p 0000e000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f1405396000-7f14053bd000 r-xp 00000000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f14053bd000-7f14055bd000 ---p 00027000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f14055bd000-7f14055be000 r--p 00027000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f14055be000-7f14055bf000 rw-p 00028000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f14055bf000-7f14055d4000 r-xp 00000000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f14055d4000-7f14057d3000 ---p 00015000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f14057d3000-7f14057d4000 r--p 00014000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f14057d4000-7f14057d5000 rw-p 00015000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f14057d5000-7f1405805000 r-xp 00000000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f1405805000-7f1405a05000 ---p 00030000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f1405a05000-7f1405a06000 r--p 00030000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f1405a06000-7f1405a07000 rw-p 00031000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f1405a07000-7f1405a08000 rw-p 00000000 00:00 0 
7f1405a08000-7f1405aa7000 r-xp 00000000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f1405aa7000-7f1405ca6000 ---p 0009f000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f1405ca6000-7f1405ca7000 r--p 0009e000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f1405ca7000-7f1405caa000 rw-p 0009f000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f1405caa000-7f1405d2e000 r-xp 00000000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f1405d2e000-7f1405f2d000 ---p 00084000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f1405f2d000-7f1405f30000 r--p 00083000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f1405f30000-7f1405f33000 rw-p 00086000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f1405f33000-7f1405f34000 rw-p 00000000 00:00 0 
7f1405f34000-7f1405f3c000 r-xp 00000000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f1405f3c000-7f140613b000 ---p 00008000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f140613b000-7f140613c000 r--p 00007000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f140613c000-7f140613d000 rw-p 00008000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f140613d000-7f1406140000 r-xp 00000000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f1406140000-7f140633f000 ---p 00003000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f140633f000-7f1406340000 r--p 00002000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f1406340000-7f1406341000 rw-p 00003000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f1406341000-7f1406348000 r-xp 00000000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f1406348000-7f1406547000 ---p 00007000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f1406547000-7f1406548000 r--p 00006000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f1406548000-7f1406549000 rw-p 00007000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f1406549000-7f140654c000 r-xp 00000000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f140654c000-7f140674b000 ---p 00003000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f140674b000-7f140674c000 r--p 00002000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f140674c000-7f140674d000 rw-p 00003000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f140674d000-7f140678a000 r-xp 00000000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f140678a000-7f140698a000 ---p 0003d000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f140698a000-7f140698b000 r--p 0003d000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f140698b000-7f140698d000 rw-p 0003e000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f140698d000-7f140698e000 rw-p 00000000 00:00 0 
7f140698e000-7f14069a7000 r-xp 00000000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f14069a7000-7f1406ba7000 ---p 00019000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f1406ba7000-7f1406ba8000 r--p 00019000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f1406ba8000-7f1406ba9000 rw-p 0001a000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f1406ba9000-7f1406bc0000 r-xp 00000000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f1406bc0000-7f1406dc0000 ---p 00017000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f1406dc0000-7f1406dc1000 r--p 00017000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f1406dc1000-7f1406dc2000 rw-p 00018000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f1406dc2000-7f1406dc4000 rw-p 00000000 00:00 0 
7f1406dc4000-7f1406dce000 r-xp 00000000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f1406dce000-7f1406fcd000 ---p 0000a000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f1406fcd000-7f1406fce000 r--p 00009000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f1406fce000-7f1406fcf000 rw-p 0000a000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f1406fcf000-7f1406fd2000 r-xp 00000000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f1406fd2000-7f14071d1000 ---p 00003000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f14071d1000-7f14071d2000 r--p 00002000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f14071d2000-7f14071d3000 rw-p 00003000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f14071d3000-7f14071ff000 r-xp 00000000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f14071ff000-7f14073fe000 ---p 0002c000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f14073fe000-7f1407400000 r--p 0002b000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f1407400000-7f1407401000 rw-p 0002d000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f1407401000-7f1407402000 rw-p 00000000 00:00 0 
7f1407402000-7f14074c5000 r-xp 00000000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f14074c5000-7f14076c5000 ---p 000c3000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f14076c5000-7f14076d2000 r--p 000c3000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f14076d2000-7f14076d4000 rw-p 000d0000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f14076d4000-7f14076e5000 r-xp 00000000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f14076e5000-7f14078e5000 ---p 00011000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f14078e5000-7f14078e6000 r--p 00011000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f14078e6000-7f14078e7000 rw-p 00012000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f14078e7000-7f1407940000 r-xp 00000000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f1407940000-7f1407b3f000 ---p 00059000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f1407b3f000-7f1407b49000 r--p 00058000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f1407b49000-7f1407b4b000 rw-p 00062000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f1407b4b000-7f1407bca000 r-xp 00000000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f1407bca000-7f1407dc9000 ---p 0007f000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f1407dc9000-7f1407dca000 r--p 0007e000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f1407dca000-7f1407dcb000 rw-p 0007f000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f1407dcb000-7f1407dfd000 r-xp 00000000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f1407dfd000-7f1407ffc000 ---p 00032000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f1407ffc000-7f1407ffd000 r--p 00031000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f1407ffd000-7f1407ffe000 rw-p 00032000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f1407ffe000-7f1408219000 r-xp 00000000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f1408219000-7f1408418000 ---p 0021b000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f1408418000-7f1408434000 r--p 0021a000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f1408434000-7f1408440000 rw-p 00236000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f1408440000-7f1408443000 rw-p 00000000 00:00 0 
7f1408443000-7f14084a1000 r-xp 00000000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f14084a1000-7f14086a1000 ---p 0005e000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f14086a1000-7f14086a5000 r--p 0005e000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f14086a5000-7f14086ac000 rw-p 00062000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f14086ac000-7f14086c5000 r-xp 00000000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f14086c5000-7f14088c4000 ---p 00019000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f14088c4000-7f14088c5000 r--p 00018000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f14088c5000-7f14088c6000 rw-p 00019000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f14088c6000-7f1408913000 r-xp 00000000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f1408913000-7f1408b12000 ---p 0004d000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f1408b12000-7f1408b14000 r--p 0004c000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f1408b14000-7f1408b15000 rw-p 0004e000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f1408b15000-7f1408b17000 rw-p 00000000 00:00 0 
7f1408b17000-7f1408b24000 r-xp 00000000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f1408b24000-7f1408d24000 ---p 0000d000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f1408d24000-7f1408d25000 r--p 0000d000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f1408d25000-7f1408d26000 rw-p 0000e000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f1408d26000-7f1408d6d000 r-xp 00000000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f1408d6d000-7f1408f6c000 ---p 00047000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f1408f6c000-7f1408f6e000 r--p 00046000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f1408f6e000-7f1408f70000 rw-p 00048000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f1408f70000-7f1409093000 r-xp 00000000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f1409093000-7f1409292000 ---p 00123000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f1409292000-7f140929d000 r--p 00122000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f140929d000-7f140929f000 rw-p 0012d000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f140929f000-7f14092a0000 rw-p 00000000 00:00 0 
7f14092a0000-7f14092d4000 r-xp 00000000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f14092d4000-7f14094d3000 ---p 00034000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f14094d3000-7f14094d5000 r--p 00033000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f14094d5000-7f14094d6000 rw-p 00035000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f14094d6000-7f14094f1000 r-xp 00000000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f14094f1000-7f14096f0000 ---p 0001b000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f14096f0000-7f14096f1000 r--p 0001a000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f14096f1000-7f14096f2000 rw-p 0001b000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f14096f2000-7f1409723000 r-xp 00000000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f1409723000-7f1409923000 ---p 00031000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f1409923000-7f1409924000 r--p 00031000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f1409924000-7f1409925000 rw-p 00032000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f1409925000-7f1409ae5000 r-xp 00000000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7f1409ae5000-7f1409ce5000 ---p 001c0000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7f1409ce5000-7f1409ce9000 r--p 001c0000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7f1409ce9000-7f1409ceb000 rw-p 001c4000 fd:01 1297                       /lib/x86_64-linux-gnu/libc-2.23.so
7f1409ceb000-7f1409cef000 rw-p 00000000 00:00 0 
7f1409cef000-7f1409d34000 r-xp 00000000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7f1409d34000-7f1409f34000 ---p 00045000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7f1409f34000-7f1409f35000 r--p 00045000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7f1409f35000-7f1409f37000 rw-p 00046000 fd:01 34464                      /usr/local/lib/libwebsockets.so.14
7f1409f37000-7f1409f61000 r-xp 00000000 fd:01 775518                     /home/chips/lightning/external/libcli.so
7f1409f61000-7f140a160000 ---p 0002a000 fd:01 775518                     /home/chips/lightning/external/libcli.so
7f140a160000-7f140a161000 r--p 00029000 fd:01 775518                     /home/chips/lightning/external/libcli.so
7f140a161000-7f140a162000 rw-p 0002a000 fd:01 775518                     /home/chips/lightning/external/libcli.so
7f140a162000-7f140a26a000 r-xp 00000000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7f140a26a000-7f140a469000 ---p 00108000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7f140a469000-7f140a46a000 r--p 00107000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7f140a46a000-7f140a46b000 rw-p 00108000 fd:01 1338                       /lib/x86_64-linux-gnu/libm-2.23.so
7f140a46b000-7f140a483000 r-xp 00000000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7f140a483000-7f140a682000 ---p 00018000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7f140a682000-7f140a683000 r--p 00017000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7f140a683000-7f140a684000 rw-p 00018000 fd:01 1384                       /lib/x86_64-linux-gnu/libpthread-2.23.so
7f140a684000-7f140a688000 rw-p 00000000 00:00 0 
7f140a688000-7f140a6f2000 r-xp 00000000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f140a6f2000-7f140a8f1000 ---p 0006a000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f140a8f1000-7f140a8f4000 r--p 00069000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f140a8f4000-7f140a8f5000 rw-p 0006c000 fd:01 65514                      /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f140a8f5000-7f140a91b000 r-xp 00000000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7f140aafc000-7f140ab10000 rw-p 00000000 00:00 0 
7f140ab19000-7f140ab1a000 rw-p 00000000 00:00 0 
7f140ab1a000-7f140ab1b000 r--p 00025000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7f140ab1b000-7f140ab1c000 rw-p 00026000 fd:01 1273                       /lib/x86_64-linux-gnu/ld-2.23.so
7f140ab1c000-7f140ab1d000 rw-p 00000000 00:00 0 
7fff7ade5000-7fff7ae06000 rw-p 00000000 00:00 0                          [stack]
7fff7af87000-7fff7af8a000 r--p 00000000 00:00 0                          [vvar]
7fff7af8a000-7fff7af8c000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

DCV Crashed after at the 2nd hand's blind posting

Player 1 and Player 2 joined after the reset method. DCV crashed after the small blind was supposed to be put in.

Screenshot: http://i.norbert.dev/fb4222

Log:

command=lightning-cli invoice 1000000 d6b9d59929229366b597f8b3733d6c062a3d77b3691aba2d46d7c8ddc2be7b6f_1_1_0_1000000 Invoice_details_playerID:1,round:0,betting_Amount:1000000 

*** Error in `./bet': free(): invalid next size (normal): 0x00007f839007d770 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f839b90b7e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f839b91437a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f839b91853c]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x103)[0x7f839b901363]
./bet[0x410585]
./bet[0x4265f6]
./bet[0x427a2d]
./bet(lws_callback_http_dummy+0x168)[0x427ddd]
/usr/local/lib/libwebsockets.so.14(+0x14e81)[0x7f839bc72e81]
/usr/local/lib/libwebsockets.so.14(+0x1e32a)[0x7f839bc7c32a]
/usr/local/lib/libwebsockets.so.14(+0x19b93)[0x7f839bc77b93]
/usr/local/lib/libwebsockets.so.14(+0x1a8c4)[0x7f839bc788c4]
/usr/local/lib/libwebsockets.so.14(lws_service_fd_tsi+0xb7)[0x7f839bc71ee7]
/usr/local/lib/libwebsockets.so.14(_lws_plat_service_tsi+0x249)[0x7f839bc8d769]
/usr/local/lib/libwebsockets.so.14(lws_service+0x3d)[0x7f839bc71fcd]
./bet[0x42e695]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f839c3e16ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f839b99b41d]
======= Memory map: ========
00400000-004e5000 r-xp 00000000 fd:01 770734                             /home/chips/bet/privatebet/bet
006e4000-006e5000 r--p 000e4000 fd:01 770734                             /home/chips/bet/privatebet/bet
006e5000-006ea000 rw-p 000e5000 fd:01 770734                             /home/chips/bet/privatebet/bet
006ea000-0091a000 rw-p 00000000 00:00 0 
01994000-019d8000 rw-p 00000000 00:00 0                                  [heap]
7f8388000000-7f8388021000 rw-p 00000000 00:00 0 
7f8388021000-7f838c000000 ---p 00000000 00:00 0 
7f8390000000-7f8390083000 rw-p 00000000 00:00 0 
7f8390083000-7f8394000000 ---p 00000000 00:00 0 
7f8395f88000-7f8395f9e000 r-xp 00000000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8395f9e000-7f839619d000 ---p 00016000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f839619d000-7f839619e000 rw-p 00015000 fd:01 1323                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f839619e000-7f839619f000 ---p 00000000 00:00 0 
7f839619f000-7f839699f000 rw-p 00000000 00:00 0 
7f839699f000-7f83969a8000 r-xp 00000000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f83969a8000-7f8396ba7000 ---p 00009000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f8396ba7000-7f8396ba8000 r--p 00008000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f8396ba8000-7f8396ba9000 rw-p 00009000 fd:01 1305                       /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f8396ba9000-7f8396bd7000 rw-p 00000000 00:00 0 
7f8396bd7000-7f8396ca6000 r-xp 00000000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f8396ca6000-7f8396ea5000 ---p 000cf000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f8396ea5000-7f8396ea8000 r--p 000ce000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f8396ea8000-7f8396eaa000 rw-p 000d1000 fd:01 4009                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f8396eaa000-7f8396eab000 rw-p 00000000 00:00 0 
7f8396eab000-7f8396ef2000 r-xp 00000000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f8396ef2000-7f83970f1000 ---p 00047000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f83970f1000-7f83970f3000 r--p 00046000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f83970f3000-7f83970f5000 rw-p 00048000 fd:01 33454                      /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f83970f5000-7f83970f6000 rw-p 00000000 00:00 0 
7f83970f6000-7f8397104000 r-xp 00000000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f8397104000-7f8397303000 ---p 0000e000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f8397303000-7f8397304000 r--p 0000d000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f8397304000-7f8397305000 rw-p 0000e000 fd:01 33426                      /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f8397305000-7f839732c000 r-xp 00000000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f839732c000-7f839752c000 ---p 00027000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f839752c000-7f839752d000 r--p 00027000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f839752d000-7f839752e000 rw-p 00028000 fd:01 33440                      /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f839752e000-7f8397543000 r-xp 00000000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f8397543000-7f8397742000 ---p 00015000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f8397742000-7f8397743000 r--p 00014000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f8397743000-7f8397744000 rw-p 00015000 fd:01 33384                      /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f8397744000-7f8397774000 r-xp 00000000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f8397774000-7f8397974000 ---p 00030000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f8397974000-7f8397975000 r--p 00030000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f8397975000-7f8397976000 rw-p 00031000 fd:01 33412                      /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f8397976000-7f8397977000 rw-p 00000000 00:00 0 
7f8397977000-7f8397a16000 r-xp 00000000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f8397a16000-7f8397c15000 ---p 0009f000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f8397c15000-7f8397c16000 r--p 0009e000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f8397c16000-7f8397c19000 rw-p 0009f000 fd:01 33398                      /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f8397c19000-7f8397c9d000 r-xp 00000000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f8397c9d000-7f8397e9c000 ---p 00084000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f8397e9c000-7f8397e9f000 r--p 00083000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f8397e9f000-7f8397ea2000 rw-p 00086000 fd:01 33468                      /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f8397ea2000-7f8397ea3000 rw-p 00000000 00:00 0 
7f8397ea3000-7f8397eab000 r-xp 00000000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f8397eab000-7f83980aa000 ---p 00008000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f83980aa000-7f83980ab000 r--p 00007000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f83980ab000-7f83980ac000 rw-p 00008000 fd:01 33482                      /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f83980ac000-7f83980af000 r-xp 00000000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f83980af000-7f83982ae000 ---p 00003000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f83982ae000-7f83982af000 r--p 00002000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f83982af000-7f83982b0000 rw-p 00003000 fd:01 33335                      /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f83982b0000-7f83982b7000 r-xp 00000000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f83982b7000-7f83984b6000 ---p 00007000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f83984b6000-7f83984b7000 r--p 00006000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f83984b7000-7f83984b8000 rw-p 00007000 fd:01 3969                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f83984b8000-7f83984bb000 r-xp 00000000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f83984bb000-7f83986ba000 ---p 00003000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f83986ba000-7f83986bb000 r--p 00002000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f83986bb000-7f83986bc000 rw-p 00003000 fd:01 1311                       /lib/x86_64-linux-gnu/libdl-2.23.so
7f83986bc000-7f83986f9000 r-xp 00000000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f83986f9000-7f83988f9000 ---p 0003d000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f83988f9000-7f83988fa000 r--p 0003d000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f83988fa000-7f83988fc000 rw-p 0003e000 fd:01 33496                      /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f83988fc000-7f83988fd000 rw-p 00000000 00:00 0 
7f83988fd000-7f8398916000 r-xp 00000000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f8398916000-7f8398b16000 ---p 00019000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f8398b16000-7f8398b17000 r--p 00019000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f8398b17000-7f8398b18000 rw-p 0001a000 fd:01 33526                      /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f8398b18000-7f8398b2f000 r-xp 00000000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f8398b2f000-7f8398d2f000 ---p 00017000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f8398d2f000-7f8398d30000 r--p 00017000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f8398d30000-7f8398d31000 rw-p 00018000 fd:01 1388                       /lib/x86_64-linux-gnu/libresolv-2.23.so
7f8398d31000-7f8398d33000 rw-p 00000000 00:00 0 
7f8398d33000-7f8398d3d000 r-xp 00000000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f8398d3d000-7f8398f3c000 ---p 0000a000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f8398f3c000-7f8398f3d000 r--p 00009000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f8398f3d000-7f8398f3e000 rw-p 0000a000 fd:01 33308                      /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f8398f3e000-7f8398f41000 r-xp 00000000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f8398f41000-7f8399140000 ---p 00003000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f8399140000-7f8399141000 r--p 00002000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f8399141000-7f8399142000 rw-p 00003000 fd:01 1304                       /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f8399142000-7f839916e000 r-xp 00000000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f839916e000-7f839936d000 ---p 0002c000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f839936d000-7f839936f000 r--p 0002b000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f839936f000-7f8399370000 rw-p 0002d000 fd:01 33320                      /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f8399370000-7f8399371000 rw-p 00000000 00:00 0 
7f8399371000-7f8399434000 r-xp 00000000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f8399434000-7f8399634000 ---p 000c3000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f8399634000-7f8399641000 r--p 000c3000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f8399641000-7f8399643000 rw-p 000d0000 fd:01 33353                      /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f8399643000-7f8399654000 r-xp 00000000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f8399654000-7f8399854000 ---p 00011000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f8399854000-7f8399855000 r--p 00011000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f8399855000-7f8399856000 rw-p 00012000 fd:01 4013                       /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f8399856000-7f83998af000 r-xp 00000000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f83998af000-7f8399aae000 ---p 00059000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f8399aae000-7f8399ab8000 r--p 00058000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f8399ab8000-7f8399aba000 rw-p 00062000 fd:01 3999                       /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f8399aba000-7f8399b39000 r-xp 00000000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f8399b39000-7f8399d38000 ---p 0007f000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f8399d38000-7f8399d39000 r--p 0007e000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f8399d39000-7f8399d3a000 rw-p 0007f000 fd:01 3977                       /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f8399d3a000-7f8399d6c000 r-xp 00000000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f8399d6c000-7f8399f6b000 ---p 00032000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f8399f6b000-7f8399f6c000 r--p 00031000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f8399f6c000-7f8399f6d000 rw-p 00032000 fd:01 3983                       /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f8399f6d000-7f839a188000 r-xp 00000000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f839a188000-7f839a387000 ---p 0021b000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f839a387000-7f839a3a3000 r--p 0021a000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f839a3a3000-7f839a3af000 rw-p 00236000 fd:01 5437                       /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f839a3af000-7f839a3b2000 rw-p 00000000 00:00 0 
7f839a3b2000-7f839a410000 r-xp 00000000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f839a410000-7f839a610000 ---p 0005e000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f839a610000-7f839a614000 r--p 0005e000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f839a614000-7f839a61b000 rw-p 00062000 fd:01 5438                       /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f839a61b000-7f839a634000 r-xp 00000000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f839a634000-7f839a833000 ---p 00019000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f839a833000-7f839a834000 r--p 00018000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f839a834000-7f839a835000 rw-p 00019000 fd:01 1420                       /lib/x86_64-linux-gnu/libz.so.1.2.8
7f839a835000-7f839a882000 r-xp 00000000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f839a882000-7f839aa81000 ---p 0004d000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f839aa81000-7f839aa83000 r--p 0004c000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f839aa83000-7f839aa84000 rw-p 0004e000 fd:01 9279                       /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f839aa84000-7f839aa86000 rw-p 00000000 00:00 0 
7f839aa86000-7f839aa93000 r-xp 00000000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f839aa93000-7f839ac93000 ---p 0000d000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f839ac93000-7f839ac94000 r--p 0000d000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f839ac94000-7f839ac95000 rw-p 0000e000 fd:01 9278                       /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f839ac95000-7f839acdc000 r-xp 00000000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f839acdc000-7f839aedb000 ---p 00047000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f839aedb000-7f839aedd000 r--p 00046000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f839aedd000-7f839aedf000 rw-p 00048000 fd:01 33372                      /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f839aedf000-7f839b002000 r-xp 00000000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f839b002000-7f839b201000 ---p 00123000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f839b201000-7f839b20c000 r--p 00122000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f839b20c000-7f839b20e000 rw-p 0012d000 fd:01 3981                       /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f839b20e000-7f839b20f000 rw-p 00000000 00:00 0 
7f839b20f000-7f839b243000 r-xp 00000000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f839b243000-7f839b442000 ---p 00034000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f839b442000-7f839b444000 r--p 00033000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f839b444000-7f839b445000 rw-p 00035000 fd:01 3997                       /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f839b445000-7f839b460000 r-xp 00000000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f839b460000-7f839b65f000 ---p 0001b000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f839b65f000-7f839b660000 r--p 0001a000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f839b660000-7f839b661000 rw-p 0001b000 fd:01 33561                      /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f839b661000-7f839b692000 r-xp 00000000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f839b692000-7f839b892000 ---p 00031000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f839b892000-7f839b893000 r--p 00031000 fd:01 3985                       /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f839b893000-7f839b894000 rw-p 00032000 fd:01 3985                       /usr/lib/x86_64-linux-gAborted (core dumped)

Table is Filled

I tested again with our nodes today.

I was able to play 1 game. When I pressed raise pre-flop, the core dumped. I suspect it's because I might be sending an illegal message to the backend - we were changing the schema previously.

When I tried to play another hand to debug, I was unable to play a new game. Table is filled - this is the error message that I have been receiving for the past 2 weeks.

I was always able to play the first hand, and never able to play the second. To me, it seems like that at the backend the game is "still going on", and I am unable to connect again, because the table is filled. When I try it again the next day, I can play another hand again.

Video recording of this issue: http://i.norbert.dev/f4e57a

Clicking start on the Dealer crashes the game

Steps to Reproduce

  • start dealer and two players on Vultr.
  • each player sits at a the table
  • click Start on the Dealer window

Description

Not sure if this has already been implemented. I assume clicking start should start the game, but at the moment it crashes with

chips@chips-01:~/bet/privatebet$ cd ~/bet/privatebet && ./bet dcv 45.77.139.155
ln is in sync with chips
Notary node status
1. 159.69.23.28 active
2. 159.69.23.29 active
3. 159.69.23.30 active
4. 159.69.23.31 active
table_id::23b4da30cc9758a7566ff8a67644dad30ad6a376e75bfd05dfa135e5b249d9f4
(tcp://45.77.139.155:7797) bound
(tcp://45.77.139.155:7798) bound
[2020/05/23 06:28:10:8132] U: LWS minimal ws broker | visit http://localhost:1234
lws_callback_http_dummy::250::LWS_CALLBACK_ESTABLISHED
lws_callback_http_dummy::250::LWS_CALLBACK_ESTABLISHED
Bus error (core dumped)

Add the withdrawAddressList to the walletInfo

Current situation

Currently there is a method withdrawRequest and it is called when the Cashier modal is open. The BE takes a while to respond to it so there is a high chance a user will open the Withdraw tab before GUI received the information.

Sample response to withdrawRequest -> withdrawResponse

{
  addrs: Array(18) [ "bD9eah3wd25vEAppYG4e9CZNntchg6mW3A", "bJgnQ7pPowSGzw1rkioX3rTmqxby1Tfa5H", "bJib7gMu78amaB2wxsfUw2WdMJDgoEXL4j", … ]
  balance: 0.3524875
  method: "withdrawResponse"
  tx_fee: 0.0005
}

Suggestion

Add the withdrawAddressList to the walletInfo message which is sent at the beginning when the user is successfully connected.

Questions

  • Is the transaction_fee which is in the withdrawResponse fixed or does it change throughout the game depending on the network?
    If it is fixed, please add it to the walletInfo message as well.

  • The withdrawResponse also provides user's wallet balance, but I assume that should be updated throughout the game and in between hands so I dont think we need to reconfirm the balance before withdrawing, do we?

The player shouldn't join again when a new hand starts

Every time a player sends player_join for the next hand, we receive back balance: 200. I suppose it's because joining the table is exactly the same as getting to the next hand.

We should distingish the next hand and when the player joins the table. These are two separate things.

Seat confirmation to avoid conflicts

At the moment this is what GUI sends when the user chooses a seat.

{
     method: player_join,
     gui_playerID: 1 (chosen seat number)
}
  1. BE needs to verify if no one is in that spot and return something like below. If GUI gets seat_taken:1 I will show a notification to the user to choose another seat.
{
     method: join_info, 
     playerid: 1,
     seat_taken: 0/1
}
  1. Backend needs to send another tableInfo message right after seat rejection, so I can show the players on the table correctly.

Frontend needs to receive a message with the users seating arrangement after initial connection

Once the user joins the table, before he seats, he needs to know which seats are occupied.
I imagine something like this sent from the backend would be sufficient.

Seats should start from 1.

{
   method: table_info
   players: [
         {
               isPlaying: false, // is the player joining the coming game
               seat: "player6", // can be just a number, does not need to have the word player next to it
               chips: 200
         },
   ]
}

There might be more data needed but I think for now the above is enough.

Players show the cards after a fold

Scenario:

  • player1 raises
  • player2 folds
  • finalInfo shows both player's cards

The only time player cards are being shown are:

  • If players call each other's bets on the river
  • Both players are all-in

We should not send finalInfo with the boardCards in this other scenario.

Frontend will send a tableId with the initial request

The user will always know the tableId when joining a game. It will either be one of the existing games in the list and the gui will know it's tableId. Or the user will provide his own private tableId for the private game.

GIU will send tableId with the initial websocket Connect request.

{
   type: Connect
   tableId: xxx
}

On first execution of "bet" command always crashes complaining about DB and starts fine on second attempt

When executing bet command for the first time, it aborts the command and errors about database.

satinder@cashier1:~/bet/privatebet$ ./bet cashier <IP_HERE>
ln is in sync with chips
sqlite3_init_db_name::36::db_name::/home/satinder/.bet/db/pangea.db
corrupted size vs. prev_size
Aborted
satinder@cashier1:~/bet/privatebet$

After this error, when executing the same command next time, the program moves forward with further operations.

There needs to be a condition put in place for relevant part of the code which creates the database if it's already not present, and then proceed with next set of operations.

Removing of Auto refill for the consecutive hands.

Right now, at the start of the each hand, the player hand is getting refilled to the table stack size. So its like forcing the auto refill at the start of each hand.

Ideally since in the poker auto refill is optional, we should need to work to make it optional.

Incorrect backend status after receiving seats

Issue

I am receiving backend status 0 after receiving the seats information on one of the player nodes.

Frontend

Screen Shot 2020-08-18 at 3 21 49 PM

Backend log

chips@chips-01:~/bet/privatebet$ cd ~/bet/privatebet && ./bet player
ln is in sync with chips
Notary node status
1. 159.69.23.28 not active
2. 159.69.23.29 active
3. 159.69.23.30 active
4. 159.69.23.31 active
Finding the dealer
The dealer is :: 45.77.139.155
bet_player_backend::1508::stack_info_resp
bet_player_backend::1579::{
	"method":	"stack_info_resp",
	"id":	"77a99a1d3c514da9519d871ae315d299d7f95b3b324536ca6e4ae315df490f0f",
	"max_players":	2,
	"table_stack_in_chips":	0.01000000,
	"chips_tx_fee":	0.00050000,
	"legacy_m_of_n_msig_addr":	"bTKNTJdn81HcB9EAJCvjksWqYRdqysBhRK",
	"table_id":	"782d5c22c1fed9854f430327acb020d3274f318d21d8c47916b4e8ed5e641f88",
	"threshold_value":	2,
	"msig_addr_nodes":	["159.69.23.29", "159.69.23.30", "159.69.23.31"]
}
error code: -26
error message:
dust (code 64)
bet_player_handle_stack_info_resp::1384::txid::(null)
bet_player_backend::1508::tx_status
bet_player_backend::1605::unable make lock_in transaction
bet_player_backend::1508::dcv_state
bet_player_backend::1508::dcv_state
bet_player_backend::1508::dcv_state
bet_player_backend::1508::dcv_state
bet_player_backend::1508::stack_info_resp
bet_player_backend::1579::{
	"method":	"stack_info_resp",
	"id":	"404f7debd7242f7f331206a0c5db0779b89292ed25700db49982ce5d41d68725",
	"max_players":	2,
	"table_stack_in_chips":	0.01000000,
	"chips_tx_fee":	0.00050000,
	"legacy_m_of_n_msig_addr":	"bTKNTJdn81HcB9EAJCvjksWqYRdqysBhRK",
	"table_id":	"782d5c22c1fed9854f430327acb020d3274f318d21d8c47916b4e8ed5e641f88",
	"threshold_value":	2,
	"msig_addr_nodes":	["159.69.23.29", "159.69.23.30", "159.69.23.31"]
}
lws_callback_http_player:1243::LWS_CALLBACK_ESTABLISHED
bet_gui_init_message::1214::{
	"method":	"warning",
	"warning_num":	0
}
lws_callback_http_player::1248::Writing data to the GUI
bet_player_backend::1508::tx_status
bet_player_backend::1508::seats_info_resp
lws_callback_http_player::1248::Writing data to the GUI
bet_player_frontend::1158::{
	"method":	"walletInfo"
}
bet_player_wallet_info::1139::{
	"method":	"walletInfo",
	"addr":	"RBHQ88xgPj9vuYKUMfdnCuwRePsqhZva4c",
	"balance":	0.01947823,
	"backend_status":	0,
	"max_players":	2,
	"table_stack_in_chips":	10,
	"table_id":	"782d5c22c1fed9854f430327acb020d3274f318d21d8c47916b4e8ed5e641f88"
}
lws_callback_http_player::1248::Writing data to the GUI
lws_callback_http_player:1243::LWS_CALLBACK_ESTABLISHED
bet_gui_init_message::1214::{
	"method":	"warning",
	"warning_num":	0
}
lws_callback_http_player::1248::Writing data to the GUI
bet_player_backend::1508::join_res
bet_update_seat_info::1497::{
	"method":	"seats",
	"seats":	[{
			"name":	"player1",
			"seat":	0,
			"chips":	0,
			"empty":	1,
			"playing":	0
		}, {
			"name":	"player2",
			"seat":	1,
			"chips":	10,
			"empty":	0,
			"playing":	0
		}]
}
lws_callback_http_player::1248::Writing data to the GUI
bet_player_frontend::1158::{
	"method":	"walletInfo"
}
bet_player_wallet_info::1139::{
	"method":	"walletInfo",
	"addr":	"RBHQ88xgPj9vuYKUMfdnCuwRePsqhZva4c",
	"balance":	0.01947823,
	"backend_status":	0,
	"max_players":	2,
	"table_stack_in_chips":	10,
	"table_id":	"782d5c22c1fed9854f430327acb020d3274f318d21d8c47916b4e8ed5e641f88"
}
lws_callback_http_player::1248::Writing data to the GUI
bet_player_backend::1508::stack
bet_player_frontend::1158::{
	"method":	"player_join",
	"gui_playerID":	1
}
bet_player_process_player_join::1082::{
	"method":	"warning",
	"warning_num":	0
}
lws_callback_http_player::1248::Writing data to the GUI

Logs neeed to be routed to an external service

For now, while we are developing alpha/beta we need to have access to the logs so we can fix issues that people are experiencing during those initial tests.

The logs need to be routed to some external service, e.g. loggly or logdna.

Timer should be implemented on the backend

Currently, the timer function is implemented on the frontend with JavaScript. The problem is that if the JavaScript execution stops somehow on the client-side (eg. the user calls alert() from the console), the timer will also stop, allowing the players to stop the game completely.

The timer therefore should be implemented on the backend.

*** Error in `./bet': free(): invalid next size (fast): 0x00007f9750063690 ***

while trying to play with the GUI (rest_dev branch), the error happened on DCV node, immediately after the first 2 cards of a player are dealt:

*** Error in `./bet': free(): invalid next size (fast): 0x00007f9750063690 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f975d2507e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f975d25937a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f975d25d53c]
./bet[0x46312e]
./bet(tal_free+0xb3)[0x4634b9]
/home/phba2061/lightning/external/libcli.so(cli_main+0xa8c)[0x7f975eee863c]
/home/phba2061/lightning/external/libcli.so(ln_bet+0x3e)[0x7f975eee8787]
./bet[0x436580]
./bet[0x43777d]
./bet(lws_callback_http_dummy+0x13f)[0x4379a6]
/usr/local/lib/libwebsockets.so.14(+0x14e81)[0x7f975d7cde81]
/usr/local/lib/libwebsockets.so.14(+0x1e32a)[0x7f975d7d732a]
/usr/local/lib/libwebsockets.so.14(+0x19b93)[0x7f975d7d2b93]
/usr/local/lib/libwebsockets.so.14(+0x1a8c4)[0x7f975d7d38c4]
/usr/local/lib/libwebsockets.so.14(lws_service_fd_tsi+0xb7)[0x7f975d7ccee7]
/usr/local/lib/libwebsockets.so.14(_lws_plat_service_tsi+0x249)[0x7f975d7e8769]
/usr/local/lib/libwebsockets.so.14(lws_service+0x3d)[0x7f975d7ccfcd]
./bet[0x43e24b]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f975f41b6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f975d2e041d]
======= Memory map: ========
00400000-0054b000 r-xp 00000000 08:01 291908 /home/phba2061/bet/privatebet/bet
0074b000-0074d000 r--p 0014b000 08:01 291908 /home/phba2061/bet/privatebet/bet
0074d000-00752000 rw-p 0014d000 08:01 291908 /home/phba2061/bet/privatebet/bet
00752000-00985000 rw-p 00000000 00:00 0
013df000-01430000 rw-p 00000000 00:00 0 [heap]
7f9748000000-7f9748021000 rw-p 00000000 00:00 0
7f9748021000-7f974c000000 ---p 00000000 00:00 0
7f9750000000-7f9750069000 rw-p 00000000 00:00 0
7f9750069000-7f9754000000 ---p 00000000 00:00 0
7f9757d20000-7f9757d21000 ---p 00000000 00:00 0
7f9757d21000-7f9758521000 rw-p 00000000 00:00 0
7f9758521000-7f975852a000 r-xp 00000000 08:01 2076 /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f975852a000-7f9758729000 ---p 00009000 08:01 2076 /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f9758729000-7f975872a000 r--p 00008000 08:01 2076 /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f975872a000-7f975872b000 rw-p 00009000 08:01 2076 /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f975872b000-7f9758759000 rw-p 00000000 00:00 0
7f9758759000-7f9758828000 r-xp 00000000 08:01 24834 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f9758828000-7f9758a27000 ---p 000cf000 08:01 24834 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f9758a27000-7f9758a2a000 r--p 000ce000 08:01 24834 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f9758a2a000-7f9758a2c000 rw-p 000d1000 08:01 24834 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f9758a2c000-7f9758a2d000 rw-p 00000000 00:00 0
7f9758a2d000-7f9758a74000 r-xp 00000000 08:01 26061 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f9758a74000-7f9758c73000 ---p 00047000 08:01 26061 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f9758c73000-7f9758c75000 r--p 00046000 08:01 26061 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f9758c75000-7f9758c77000 rw-p 00048000 08:01 26061 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f9758c77000-7f9758c78000 rw-p 00000000 00:00 0
7f9758c78000-7f9758c86000 r-xp 00000000 08:01 26057 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f9758c86000-7f9758e85000 ---p 0000e000 08:01 26057 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f9758e85000-7f9758e86000 r--p 0000d000 08:01 26057 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f9758e86000-7f9758e87000 rw-p 0000e000 08:01 26057 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f9758e87000-7f9758eae000 r-xp 00000000 08:01 26059 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f9758eae000-7f97590ae000 ---p 00027000 08:01 26059 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f97590ae000-7f97590af000 r--p 00027000 08:01 26059 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f97590af000-7f97590b0000 rw-p 00028000 08:01 26059 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f97590b0000-7f97590c5000 r-xp 00000000 08:01 26051 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f97590c5000-7f97592c4000 ---p 00015000 08:01 26051 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f97592c4000-7f97592c5000 r--p 00014000 08:01 26051 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f97592c5000-7f97592c6000 rw-p 00015000 08:01 26051 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f97592c6000-7f97592f6000 r-xp 00000000 08:01 26055 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f97592f6000-7f97594f6000 ---p 00030000 08:01 26055 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f97594f6000-7f97594f7000 r--p 00030000 08:01 26055 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f97594f7000-7f97594f8000 rw-p 00031000 08:01 26055 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f97594f8000-7f97594f9000 rw-p 00000000 00:00 0
7f97594f9000-7f9759598000 r-xp 00000000 08:01 26053 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f9759598000-7f9759797000 ---p 0009f000 08:01 26053 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f9759797000-7f9759798000 r--p 0009e000 08:01 26053 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f9759798000-7f975979b000 rw-p 0009f000 08:01 26053 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f975979b000-7f975981f000 r-xp 00000000 08:01 26065 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f975981f000-7f9759a1e000 ---p 00084000 08:01 26065 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f9759a1e000-7f9759a21000 r--p 00083000 08:01 26065 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f9759a21000-7f9759a24000 rw-p 00086000 08:01 26065 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f9759a24000-7f9759a25000 rw-p 00000000 00:00 0
7f9759a25000-7f9759a2d000 r-xp 00000000 08:01 26067 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f9759a2d000-7f9759c2c000 ---p 00008000 08:01 26067 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f9759c2c000-7f9759c2d000 r--p 00007000 08:01 26067 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f9759c2d000-7f9759c2e000 rw-p 00008000 08:01 26067 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f9759c2e000-7f9759c31000 r-xp 00000000 08:01 2200 /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f9759c31000-7f9759e30000 ---p 00003000 08:01 2200 /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f9759e30000-7f9759e31000 r--p 00002000 08:01 2200 /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f9759e31000-7f9759e32000 rw-p 00003000 08:01 2200 /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7f9759e32000-7f9759e39000 r-xp 00000000 08:01 25961 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f9759e39000-7f975a038000 ---p 00007000 08:01 25961 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f975a038000-7f975a039000 r--p 00006000 08:01 25961 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f975a039000-7f975a03a000 rw-p 00007000 08:01 25961 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f975a03a000-7f975a077000 r-xp 00000000 08:01 26069 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f975a077000-7f975a277000 ---p 0003d000 08:01 26069 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f975a277000-7f975a278000 r--p 0003d000 08:01 26069 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f975a278000-7f975a27a000 rw-p 0003e000 08:01 26069 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f975a27a000-7f975a27b000 rw-p 00000000 00:00 0
7f975a27b000-7f975a294000 r-xp 00000000 08:01 26092 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f975a294000-7f975a494000 ---p 00019000 08:01 26092 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f975a494000-7f975a495000 r--p 00019000 08:01 26092 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f975a495000-7f975a496000 rw-p 0001a000 08:01 26092 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f975a496000-7f975a4ad000 r-xp 00000000 08:01 2075 /lib/x86_64-linux-gnu/libresolv-2.23.so
7f975a4ad000-7f975a6ad000 ---p 00017000 08:01 2075 /lib/x86_64-linux-gnu/libresolv-2.23.so
7f975a6ad000-7f975a6ae000 r--p 00017000 08:01 2075 /lib/x86_64-linux-gnu/libresolv-2.23.so
7f975a6ae000-7f975a6af000 rw-p 00018000 08:01 2075 /lib/x86_64-linux-gnu/libresolv-2.23.so
7f975a6af000-7f975a6b1000 rw-p 00000000 00:00 0
7f975a6b1000-7f975a6bb000 r-xp 00000000 08:01 26033 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f975a6bb000-7f975a8ba000 ---p 0000a000 08:01 26033 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f975a8ba000-7f975a8bb000 r--p 00009000 08:01 26033 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f975a8bb000-7f975a8bc000 rw-p 0000a000 08:01 26033 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f975a8bc000-7f975a8bf000 r-xp 00000000 08:01 1988 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f975a8bf000-7f975aabe000 ---p 00003000 08:01 1988 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f975aabe000-7f975aabf000 r--p 00002000 08:01 1988 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f975aabf000-7f975aac0000 rw-p 00003000 08:01 1988 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f975aac0000-7f975aaec000 r-xp 00000000 08:01 26035 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f975aaec000-7f975aceb000 ---p 0002c000 08:01 26035 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f975aceb000-7f975aced000 r--p 0002b000 08:01 26035 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f975aced000-7f975acee000 rw-p 0002d000 08:01 26035 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f975acee000-7f975acef000 rw-p 00000000 00:00 0
7f975acef000-7f975adb2000 r-xp 00000000 08:01 26039 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f975adb2000-7f975afb2000 ---p 000c3000 08:01 26039 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f975afb2000-7f975afbf000 r--p 000c3000 08:01 26039 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f975afbf000-7f975afc1000 rw-p 000d0000 08:01 26039 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f975afc1000-7f975afd2000 r-xp 00000000 08:01 25920 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f975afd2000-7f975b1d2000 ---p 00011000 08:01 25920 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f975b1d2000-7f975b1d3000 r--p 00011000 08:01 25920 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f975b1d3000-7f975b1d4000 rw-p 00012000 08:01 25920 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f975b1d4000-7f975b22d000 r-xp 00000000 08:01 25918 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f975b22d000-7f975b42c000 ---p 00059000 08:01 25918 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f975b42c000-7f975b436000 r--p 00058000 08:01 25918 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f975b436000-7f975b438000 rw-p 00062000 08:01 25918 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f975b438000-7f975b4b7000 r-xp 00000000 08:01 25965 /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f975b4b7000-7f975b6b6000 ---p 0007f000 08:01 25965 /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f975b6b6000-7f975b6b7000 r--p 0007e000 08:01 25965 /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f975b6b7000-7f975b6b8000 rw-p 0007f000 08:01 25965 /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f975b6b8000-7f975b6ea000 r-xp 00000000 08:01 25912 /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f975b6ea000-7f975b8e9000 ---p 00032000 08:01 25912 /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f975b8e9000-7f975b8ea000 r--p 00031000 08:01 25912 /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f975b8ea000-7f975b8eb000 rw-p 00032000 08:01 25912 /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f975b8eb000-7f975b949000 r-xp 00000000 08:01 2151 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f975b949000-7f975bb49000 ---p 0005e000 08:01 2151 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f975bb49000-7f975bb4d000 r--p 0005e000 08:01 2151 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f975bb4d000-7f975bb54000 rw-p 00062000 08:01 2151 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f975bb54000-7f975bb57000 r-xp 00000000 08:01 2065 /lib/x86_64-linux-gnu/libdl-2.23.so
7f975bb57000-7f975bd56000 ---p 00003000 08:01 2065 /lib/x86_64-linux-gnu/libdl-2.23.so
7f975bd56000-7f975bd57000 r--p 00002000 08:01 2065 /lib/x86_64-linux-gnu/libdl-2.23.so
7f975bd57000-7f975bd58000 rw-p 00003000 08:01 2065 /lib/x86_64-linux-gnu/libdl-2.23.so
7f975bd58000-7f975bd5f000 r-xp 00000000 08:01 2063 /lib/x86_64-linux-gnu/librt-2.23.so
7f975bd5f000-7f975bf5e000 ---p 00007000 08:01 2063 /lib/x86_64-linux-gnu/librt-2.23.so
7f975bf5e000-7f975bf5f000 r--p 00006000 08:01 2063 /lib/x86_64-linux-gnu/librt-2.23.so
7f975bf5f000-7f975bf60000 rw-p 00007000 08:01 2063 /lib/x86_64-linux-gnu/librt-2.23.so
7f975bf60000-7f975bf79000 r-xp 00000000 08:01 2152 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f975bf79000-7f975c178000 ---p 00019000 08:01 2152 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f975c178000-7f975c179000 r--p 00018000 08:01 2152 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f975c179000-7f975c17a000 rw-p 00019000 08:01 2152 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f975c17a000-7f975c1c7000 r-xp 00000000 08:01 26095 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f975c1c7000-7f975c3c6000 ---p 0004d000 08:01 26095 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f975c3c6000-7f975c3c8000 r--p 0004c000 08:01 26095 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f975c3c8000-7f975c3c9000 rw-p 0004e000 08:01 26095 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f975c3c9000-7f975c3cb000 rw-p 00000000 00:00 0
7f975c3cb000-7f975c3d8000 r-xp 00000000 08:01 26094 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f975c3d8000-7f975c5d8000 ---p 0000d000 08:01 26094 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f975c5d8000-7f975c5d9000 r--p 0000d000 08:01 26094 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f975c5d9000-7f975c5da000 rw-p 0000e000 08:01 26094 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f975c5da000-7f975c621000 r-xp 00000000 08:01 26041 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f975c621000-7f975c820000 ---p 00047000 08:01 26041 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f975c820000-7f975c822000 r--p 00046000 08:01 26041 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f975c822000-7f975c824000 rw-p 00048000 08:01 26041 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f975c824000-7f975c947000 r-xp 00000000 08:01 25924 /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f975c947000-7f975cb46000 ---p 00123000 08:01 25924 /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f975cb46000-7f975cb51000 r--p 00122000 08:01 25924 /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f975cb51000-7f975cb53000 rw-p 0012d000 08:01 25924 /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f975cb53000-7f975cb54000 rw-p 00000000 00:00 0
7f975cb54000-7f975cb88000 r-xp 00000000 08:01 25914 /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f975cb88000-7f975cd87000 ---p 00034000 08:01 25914 /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f975cd87000-7f975cd89000 r--p 00033000 08:01 25914 /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f975cd89000-7f975cd8a000 rw-p 00035000 08:01 25914 /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f975cd8a000-7f975cda5000 r-xp 00000000 08:01 26099 /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f975cda5000-7f975cfa4000 ---p 0001b000 08:01 26099 /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f975cfa4000-7f975cfa5000 r--p 0001a000 08:01 26099 /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f975cfa5000-7f975cfa6000 rw-p 0001b000 08:01 26099 /usr/lib/x86_64-linux-gnu/librtmp.so.1
7f975cfa6000-7f975cfd7000 r-xp 00000000 08:01 25916 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f975cfd7000-7f975d1d7000 ---p 00031000 08:01 25916 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f975d1d7000-7f975d1d8000 r--p 00031000 08:01 25916 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f975d1d8000-7f975d1d9000 rw-p 00032000 08:01 25916 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f975d1d9000-7f975d399000 r-xp 00000000 08:01 2083 /lib/x86_64-linux-gnu/libc-2.23.so
7f975d399000-7f975d599000 ---p 001c0000 08:01 2083 /lib/x86_64-linux-gnu/libc-2.23.so
7f975d599000-7f975d59d000 r--p 001c0000 08:01 2083 /lib/x86_64-linux-gnu/libc-2.23.so
7f975d59d000-7f975d59f000 rw-p 001c4000 08:01 2083 /lib/x86_64-linux-gnu/libc-2.23.so
7f975d59f000-7f975d5a3000 rw-p 00000000 00:00 0
7f975d5a3000-7f975d5b9000 r-xp 00000000 08:01 1991 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f975d5b9000-7f975d7b8000 ---p 00016000 08:01 1991 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f975d7b8000-7f975d7b9000 rw-p 00015000 08:01 1991 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f975d7b9000-7f975d7fe000 r-xp 00000000 08:01 16362 /usr/local/lib/libwebsockets.so.14
7f975d7fe000-7f975d9fe000 ---p 00045000 08:01 16362 /usr/local/lib/libwebsockets.so.14
7f975d9fe000-7f975d9ff000 r--p 00045000 08:01 16362 /usr/local/lib/libwebsockets.so.14
7f975d9ff000-7f975da01000 rw-p 00046000 08:01 16362 /usr/local/lib/libwebsockets.so.14
7f975da01000-7f975db73000 r-xp 00000000 08:01 25941 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f975db73000-7f975dd73000 ---p 00172000 08:01 25941 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f975dd73000-7f975dd7d000 r--p 00172000 08:01 25941 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f975dd7d000-7f975dd7f000 rw-p 0017c000 08:01 25941 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f975dd7f000-7f975dd83000 rw-p 00000000 00:00 0
7f975dd83000-7f975ddc7000 r-xp 00000000 08:01 26163 /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5.1.9
7f975ddc7000-7f975dfc7000 ---p 00044000 08:01 26163 /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5.1.9
7f975dfc7000-7f975dfc8000 r--p 00044000 08:01 26163 /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5.1.9
7f975dfc8000-7f975dfc9000 rw-p 00045000 08:01 26163 /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5.1.9
7f975dfc9000-7f975e1e4000 r-xp 00000000 08:01 2150 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f975e1e4000-7f975e3e3000 ---p 0021b000 08:01 2150 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f975e3e3000-7f975e3ff000 r--p 0021a000 08:01 2150 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f975e3ff000-7f975e40b000 rw-p 00236000 08:01 2150 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f975e40b000-7f975e40e000 rw-p 00000000 00:00 0
7f975e40e000-7f975e432000 r-xp 00000000 08:01 85705 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0
7f975e432000-7f975e631000 ---p 00024000 08:01 85705 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0
7f975e631000-7f975e633000 r--p 00023000 08:01 85705 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0
7f975e633000-7f975e634000 rw-p 00025000 08:01 85705 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0
7f975e634000-7f975e6ae000 r-xp 00000000 08:01 86251 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0
7f975e6ae000-7f975e8ae000 ---p 0007a000 08:01 86251 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0
7f975e8ae000-7f975e8b1000 r--p 0007a000 08:01 86251 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0
7f975e8b1000-7f975e8b2000 rw-p 0007d000 08:01 86251 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0
7f975e8b2000-7f975e8c9000 r-xp 00000000 08:01 85783 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
7f975e8c9000-7f975eac8000 ---p 00017000 08:01 85783 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
7f975eac8000-7f975eac9000 r--p 00016000 08:01 85783 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
7f975eac9000-7f975eaca000 rw-p 00017000 08:01 85783 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
7f975eaca000-7f975eacd000 r-xp 00000000 08:01 85681 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7f975eacd000-7f975eccc000 ---p 00003000 08:01 85681 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7f975eccc000-7f975eccd000 r--p 00002000 08:01 85681 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7f975eccd000-7f975ecce000 rw-p 00003000 08:01 85681 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7f975ecce000-7f975ecde000 r-xp 00000000 08:01 264294 /home/phba2061/chips3/src/univalue/libunivalue.so
7f975ecde000-7f975eede000 ---p 00010000 08:01 264294 /home/phba2061/chips3/src/univalue/libunivalue.so
7f975eede000-7f975eedf000 r--p 00010000 08:01 264294 /home/phba2061/chips3/src/univalue/libunivalue.so
7f975eedf000-7f975eee0000 rw-p 00011000 08:01 264294 /home/phba2061/chips3/src/univalue/libunivalue.so
7f975eee0000-7f975ef0a000 r-xp 00000000 08:01 518196 /home/phba2061/lightning/external/libcli.so
7f975ef0a000-7f975f109000 ---p 0002a000 08:01 518196 /home/phba2061/lightning/external/libcli.so
7f975f109000-7f975f10a000 r--p 00029000 08:01 518196 /home/phba2061/lightning/external/libcli.so
7f975f10a000-7f975f10b000 rw-p 0002a000 08:01 518196 /home/phba2061/lightning/external/libcli.so
7f975f10b000-7f975f213000 r-xp 00000000 08:01 2086 /lib/x86_64-linux-gnu/libm-2.23.so
7f975f213000-7f975f412000 ---p 00108000 08:01 2086 /lib/x86_64-linux-gnu/libm-2.23.so
7f975f412000-7f975f413000 r--p 00107000 08:01 2086 /lib/x86_64-linux-gnu/libm-2.23.so
7f975f413000-7f975f414000 rw-p 00108000 08:01 2086 /lib/x86_64-linux-gnu/libm-2.23.so
7f975f414000-7f975f42c000 r-xp 00000000 08:01 2069 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f975f42c000-7f975f62b000 ---p 00018000 08:01 2069 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f975f62b000-7f975f62c000 r--p 00017000 08:01 2069 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f975f62c000-7f975f62d000 rw-p 00018000 08:01 2069 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f975f62d000-7f975f631000 rw-p 00000000 00:00 0
7f975f631000-7f975f69b000 r-xp 00000000 08:01 26100 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f975f69b000-7f975f89a000 ---p 0006a000 08:01 26100 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f975f89a000-7f975f89d000 r--p 00069000 08:01 26100 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f975f89d000-7f975f89e000 rw-p 0006c000 08:01 26100 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0
7f975f89e000-7f975f8c4000 r-xp 00000000 08:01 2068 /lib/x86_64-linux-gnu/ld-2.23.so
7f975f9a8000-7f975fab9000 rw-p 00000000 00:00 0
7f975fac2000-7f975fac3000 rw-p 00000000 00:00 0
7f975fac3000-7f975fac4000 r--p 00025000 08:01 2068 /lib/x86_64-linux-gnu/ld-2.23.so
7f975fac4000-7f975fac5000 rw-p 00026000 08:01 2068 /lib/x86_64-linux-gnu/ld-2.23.so
7f975fac5000-7f975fac6000 rw-p 00000000 00:00 0
7ffd399f7000-7ffd39a18000 rw-p 00000000 00:00 0 [stack]
7ffd39bdb000-7ffd39bde000 r--p 00000000 00:00 0 [vvar]
7ffd39bde000-7ffd39be0000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)
web UI error 3

This error only occurs to me when playing on rest_dev branch, I never had this problem when playing on poker branch.

Player to sit and play on multiple tables

At the moment the code base only supports a single player playing one hand on a backend node. The change request is to make the players to play multiple hands on a same backend node.

Rename toRaise to minRaiseTo

I suggest that we rename toRaise message that the backend sends to minRaiseTo, so it is more clear what this value does.

I have renamed this property on the frontend from minRaise to minRaiseTo.

Websocket doesn't receive message after player folds pre-flop

Consider the following scenario:

  1. Cards are dealt
  2. player1 folds
  3. player2 wins
  4. New hand starts after players receiving reset

For step 4, both players has to send player_join to the back-end nodes. player1 can successfully send the message, however, player2, who most was the winner of the previous cannot send any messages to the back-end node via WebSocket.

This breaks the game unfortunately.

The game doesnt start after both players sit and the Dealer clicks reset

Steps to reproduce

  • Start the nodes, sit the players, dealer clicks reset
  • nothing happens after, no cards are dealt.

Description

The game doesnt start and is sort of frozen, the errors below are thrown by the dealer. Resetting the game by the dealer doesnt help.

Screen Shot 2020-05-23 at 20 09 12

lws_callback_http_dummy:243:Failed to process the host commandtable_id::5794a3dd2f2c28ff905d90a53013e5e6129d42a2e2a2bc97fd1d70fd9a5b0cf7

lws_callback_http_dummy:243:Failed to process the host commandbet_dcv_backend_thrd::1582::stack_info_req

Terminal output

dealer.txt
player1.txt
player2.txt

Game freezes

Issue

The game freezes after one of the players chooses their seat. The message from the backend just does not reach the frontend.
This has happened to me multiple times.

Steps to reproduce

Please use Vultr nodes for testing.

You might have to repeat the following a few times to make it freeze because it does not freeze all the time.

  1. Run 2 player nodes on separate servers
  2. Run the dealer node (You can run the dealer first and the player nodes second, I dont think it makes a difference to the outcome)
  3. Both player receive seats message. Both players request walletInfo. Only one of the players receives walletInfo response though.
  4. Player 1 chooses his seat -> confirmed with the backend -> sits down.
  5. Player 2 chooses his seat -> nothing happens. I see the message in the logs from the backend but I do not see it being received on the frontend. (Maybe a socket connectivity issue? 🤷‍♀️ )
  6. The last message from the backend log for the node that freezes: player_lws_write::95::There is more data

Player 1

player1

Terminal log Player 1

player1.txt

Player 2 (Frozen node)

player2

Terminal log Player 2

player2.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.