Btsync 2.0 Core Dumps In Some Linux X86_64 Computers


Recommended Posts

Hello!

 

I had 1.4 running in three computers without issue. I paid without hesitation and upgraded only to find it doesn't work in two of the machines.

 

In these two, BTSync segfaults right away

 

relevant parts of a strace:

[snip]open("/home/z-247/.config/btsync/btsync.conf", O_RDONLY|O_NOATIME) = 3 <0.000039>lstat("/home/z-247/.config/btsync/btsync.conf", {st_mode=S_IFREG|0644, st_size=2283, ...}) = 0 <0.000033>read(3, "{ \n  \"device_name\": \"Silverbox\","..., 2283) = 2283 <0.000032>close(3)                                = 0 <0.000032>--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x4} ---rt_sigaction(SIGSEGV, NULL, {0x5f62d0, [ILL ABRT BUS FPE SEGV], SA_RESTORER|SA_STACK|SA_SIGINFO, 0x7f1e73075740}, 8) = 0 <0.000031>prctl(PR_SET_DUMPABLE, 1)               = 0 <0.000029>gettid()                                = 12012 <0.000027>mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1e73fff000 <0.000043>pipe([3, 4])                            = 0 <0.000037>clone(child_stack=0x7f1e74000f40, flags=CLONE_FS|CLONE_FILES|CLONE_UNTRACED) = 12013 <0.000133>prctl(PR_SET_PTRACER, 0x2eed, 0, 0, 0)  = 0 <0.000040>write(4, "a", 1)                        = 1 <0.000036>wait4(12013, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], __WALL, NULL) = 12013 <0.000489>close(3)                                = 0 <0.000036>close(4)                                = 0 <0.000037>munmap(0x7f1e73fff000, 8192)            = 0 <0.000047>rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x7f1e73075740}, NULL, 8) = 0 <0.000029>rt_sigaction(SIGABRT, {SIG_DFL, [], SA_RESTORER, 0x7f1e73075740}, NULL, 8) = 0 <0.000028>rt_sigaction(SIGFPE, {SIG_DFL, [], SA_RESTORER, 0x7f1e73075740}, NULL, 8) = 0 <0.000029>rt_sigaction(SIGILL, {SIG_DFL, [], SA_RESTORER, 0x7f1e73075740}, NULL, 8) = 0 <0.000027>rt_sigaction(SIGBUS, {SIG_DFL, [], SA_RESTORER, 0x7f1e73075740}, NULL, 8) = 0 <0.000026>gettid()                                = 12012 <0.000027>tgkill(12012, 12012, SIGSEGV)           = 0 <0.000029>rt_sigreturn()                          = 0 <0.000028>--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_TKILL, si_pid=12012, si_uid=1000} ---+++ killed by SIGSEGV (core dumped) +++[1]    12007 segmentation fault (core dumped)  strace -fFT btsync --config .config/btsync/btsync.conf --nodaemon --log log

Using a default config file makes it dump with SIGABRT, for apparently a different reason:

[snip]12553 read(5, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\r\0\0\0\r\0\0\0\0"..., 4096) = 1872 <0.000010>12553 close(5)                          = 0 <0.000010>12553 munmap(0x7f1132f71000, 4096)      = 0 <0.000014>12553 fstat(4, {st_mode=S_IFREG|0644, st_size=13945, ...}) = 0 <0.000009>12553 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1132f71000 <0.000011>12553 write(4, "[14:18:16.195] Can't open file /"..., 100) = 100 <0.000013>12553 write(2, "btsync: /mnt/jenkins/workspace/B"..., 219) = 219 <0.000223>12553 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1132f70000 <0.000013>12553 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 <0.000010>12553 tgkill(12553, 12553, SIGABRT)     = 0 <0.000012>12553 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=12553, si_uid=1000} ---12553 rt_sigaction(SIGABRT, NULL, {0x5f62d0, [ILL ABRT BUS FPE SEGV], SA_RESTORER|SA_STACK|SA_SIGINFO, 0x7f1131fe6740}, 8) = 0 <0.000009>12553 prctl(PR_SET_DUMPABLE, 1)         = 0 <0.000009>12553 gettid()                          = 12553 <0.000009>12553 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1132f6e000 <0.000012>12553 pipe([5, 6])                      = 0 <0.000015>12553 clone(child_stack=0x7f1132f6ff40, flags=CLONE_FS|CLONE_FILES|CLONE_UNTRACED) = 12554 <0.000109>12553 prctl(PR_SET_PTRACER, 0x310a, 0, 0, 0) = 0 <0.000009>12553 write(6, "a", 1)                  = 1 <0.000013>12553 wait4(12554, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], __WALL, NULL) = 12554 <0.000891>12553 close(5)                          = 0 <0.000014>12553 close(6)                          = 0 <0.000016>12553 munmap(0x7f1132f6e000, 8192)      = 0 <0.000016>12553 rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x7f1131fe6740}, NULL, 8) = 0 <0.000010>12553 rt_sigaction(SIGABRT, {SIG_DFL, [], SA_RESTORER, 0x7f1131fe6740}, NULL, 8) = 0 <0.000009>12553 rt_sigaction(SIGFPE, {SIG_DFL, [], SA_RESTORER, 0x7f1131fe6740}, NULL, 8) = 0 <0.000009>12553 rt_sigaction(SIGILL, {SIG_DFL, [], SA_RESTORER, 0x7f1131fe6740}, NULL, 8) = 0 <0.000009>12553 rt_sigaction(SIGBUS, {SIG_DFL, [], SA_RESTORER, 0x7f1131fe6740}, NULL, 8) = 0 <0.000009>12553 gettid()                          = 12553 <0.000009>12553 tgkill(12553, 12553, SIGABRT)     = 0 <0.000011>12553 rt_sigreturn()                    = 0 <0.000011>12553 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=12553, si_uid=1000} ---12553 +++ killed by SIGABRT (core dumped) +++

How can I fix this?
 

 

378
Edited by DickPhallia
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.