vysheng / tg

telegram-cli
GNU General Public License v2.0
6.5k stars 1.54k forks source link

crushing on macos when trying use socket ( -S /tmp/telegram ) #482

Open maiaz opened 9 years ago

maiaz commented 9 years ago

~/shell/tg ./bin/telegram-cli -S /tmp/telegram -I SIGNAL received S0 telegram-cli 0x000000010870d78a print_backtrace + 42 1 telegram-cli 0x000000010870d897 termination_signal_handler + 199 2 libsystem_platform.dylib 0x00007fff99a0ef1a _sigtramp + 26 3 ??? 0x00000001145f8000 0x0 + 4636770304 4 libsystem_c.dylib 0x00007fff94832b53 abort + 129 5 libsystem_c.dylib 0x00007fff94832cca _UTF2_init + 0 6 libsystem_c.dylib 0x00007fff94858db0 __chk_fail_overlap + 0 7 libsystem_c.dylib 0x00007fff94858d80 chk_fail + 0 8 libsystem_c.dylib 0x00007fff948590c6 strcat_chk + 0 9 telegram-cli 0x000000010870ddf7 main + 919 10 libdyld.dylib 0x00007fff93e035c9 start + 1

martinpfannemueller commented 9 years ago

I can confirm the issue. Just compiled the current version.

matriphe commented 9 years ago

Use latest code (just installed) and it's still there.

$ bin/telegram-cli -k tg-server.pub -dWS /tmp/tg.sck --json
SIGNAL received
S0   telegram-cli                        0x000000010d7f7e1a print_backtrace + 42
1   telegram-cli                        0x000000010d7f7f24 termination_signal_handler + 196
2   libsystem_platform.dylib            0x00007fff8ee54f1a _sigtramp + 26
3   ???                                 0x000000011ad8e000 0x0 + 4745388032
4   libsystem_c.dylib                   0x00007fff86d1fb53 abort + 129
5   libsystem_c.dylib                   0x00007fff86d1fcca _UTF2_init + 0
6   libsystem_c.dylib                   0x00007fff86d45db0 __chk_fail_overlap + 0
7   libsystem_c.dylib                   0x00007fff86d45d80 __chk_fail + 0
8   libsystem_c.dylib                   0x00007fff86d460c6 __strcat_chk + 0
9   telegram-cli                        0x000000010d7f850a main + 1034
10  libdyld.dylib                       0x00007fff8c9a35c9 start + 1

But when using port (nothing shown)