I was using 32-bit daemon_cl to stabilized clock synchronization between master and slave devices and it is working properly. But now due to project requirements i have to use 64-bit daemon_cl in place of 32 bit one. As i am using Android platform(Marshmallow), So i have made single change("LOCAL_MODULE_STEM_64 := daemon_cl" in Android.mk) for generating 64-bit daemon_cl. With this change i was able to generate 64-bit daemon_cl image, but i observed that if we use gptp(daemon_cl) daemon in 64-bit mode, it is getting crashed, below is the snippet of crash logs:
================
11-11 11:11:17.750 2442 2442 I GPTP : gPTP starting
11-11 11:11:17.750 2442 2442 I GPTP : gPTP starting
11-11 11:11:17.750 2442 2442 D GPTP : AsCapable: Enabled
11-11 11:11:17.751 2442 2442 E GPTP : Using clock device: /dev/ptp0
11-11 11:11:17.751 2442 2442 D GPTP : Switching to Master
11-11 11:11:17.752 2442 2442 D GPTP : AVnu AP Status : STATION_STATE_ETHERNET_READY
11-11 11:11:17.752 2442 2448 D GPTP : Link Speed: 1000000 kb/sec
11-11 11:11:17.770 2442 2446 D GPTP : AVnu AP Status : STATION_STATE_AVB_SYNC
11-11 11:11:23.537 2556 2556 F DEBUG : ABI: 'x86_64'
11-11 11:11:23.537 2556 2556 F DEBUG : pid: 3830, tid: 3831, name: daemon_cl >>> /system/vendor/bin/daemon_cl <<<
11-11 11:11:23.537 2556 2556 F DEBUG : signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
11-11 11:11:23.538 2556 2556 F DEBUG : rax 0000000000000007 rbx 0000000000000001 rcx 0000000000000ef6 rdx 00007f13d9c53000
11-11 11:11:23.538 2556 2556 E DEBUG : AM write failed: Broken pipe
11-11 11:11:23.538 2556 2556 F DEBUG : rsi 0000000000000000 rdi 00007f13d9c53000
11-11 11:11:23.538 2556 2556 F DEBUG : r8 0000000000000000 r9 0000000000000000 r10 000055c10cf7c4d0 r11 00007f13d99ff080
11-11 11:11:23.538 2556 2556 F DEBUG : r12 0000000000000000 r13 12552b7d71f2a389 r14 00000000000297b8 r15 0000000000000000
11-11 11:11:23.538 2556 2556 F DEBUG : cs 0000000000000033 ss 000000000000002b
11-11 11:11:23.538 2556 2556 F DEBUG : rip 000055c10cf60379 rbp 0000000000000000 rsp 00007f13d99ff0f0 eflags 0000000000010246
11-11 11:11:23.540 2556 2556 F DEBUG :
11-11 11:11:23.540 2556 2556 F DEBUG : backtrace:
11-11 11:11:23.540 2556 2556 F DEBUG : #00 pc 0000000000014379 /vendor/bin/daemon_cl
11-11 11:11:23.540 2556 2556 F DEBUG : #01 pc 0000000000013959 /vendor/bin/daemon_cl
11-11 11:11:23.540 2556 2556 F DEBUG : #02 pc 000000000000fd1b /vendor/bin/daemon_cl
11-11 11:11:23.540 2556 2556 F DEBUG : #03 pc 0000000000017255 /vendor/bin/daemon_cl
11-11 11:11:23.540 2556 2556 F DEBUG : #04 pc 0000000000084fbf /system/lib64/libc.so (_ZL15pthread_startPv+47)
11-11 11:11:23.540 2556 2556 F DEBUG : #05 pc 000000000002777c /system/lib64/libc.so (__start_thread+12)
11-11 11:11:23.540 2556 2556 F DEBUG : #06 pc 000000000001c6d5 /system/lib64/libc.so (bionic_clone+53)
11-11 11:11:23.557 2556 2556 F DEBUG :
11-11 11:11:23.557 2556 2556 F DEBUG : Tombstone written to: /data/tombstones/tombstone_00
This behavior is only seen in 64-bit(daemon_cl) not with 32-bit daemon_cl, Could you please provide us some pointers on this crash issue?
Following are the platform Info:
Platform: Intel (gordon peak) x86-64
OS : Android(Marshmallow)
Please find attached crash logs.
Hi,
I was using 32-bit daemon_cl to stabilized clock synchronization between master and slave devices and it is working properly. But now due to project requirements i have to use 64-bit daemon_cl in place of 32 bit one. As i am using Android platform(Marshmallow), So i have made single change("LOCAL_MODULE_STEM_64 := daemon_cl" in Android.mk) for generating 64-bit daemon_cl. With this change i was able to generate 64-bit daemon_cl image, but i observed that if we use gptp(daemon_cl) daemon in 64-bit mode, it is getting crashed, below is the snippet of crash logs:
================ 11-11 11:11:17.750 2442 2442 I GPTP : gPTP starting 11-11 11:11:17.750 2442 2442 I GPTP : gPTP starting 11-11 11:11:17.750 2442 2442 D GPTP : AsCapable: Enabled 11-11 11:11:17.751 2442 2442 E GPTP : Using clock device: /dev/ptp0 11-11 11:11:17.751 2442 2442 D GPTP : Switching to Master 11-11 11:11:17.752 2442 2442 D GPTP : AVnu AP Status : STATION_STATE_ETHERNET_READY 11-11 11:11:17.752 2442 2448 D GPTP : Link Speed: 1000000 kb/sec 11-11 11:11:17.770 2442 2446 D GPTP : AVnu AP Status : STATION_STATE_AVB_SYNC 11-11 11:11:23.537 2556 2556 F DEBUG : ABI: 'x86_64' 11-11 11:11:23.537 2556 2556 F DEBUG : pid: 3830, tid: 3831, name: daemon_cl >>> /system/vendor/bin/daemon_cl <<< 11-11 11:11:23.537 2556 2556 F DEBUG : signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0 11-11 11:11:23.538 2556 2556 F DEBUG : rax 0000000000000007 rbx 0000000000000001 rcx 0000000000000ef6 rdx 00007f13d9c53000 11-11 11:11:23.538 2556 2556 E DEBUG : AM write failed: Broken pipe 11-11 11:11:23.538 2556 2556 F DEBUG : rsi 0000000000000000 rdi 00007f13d9c53000 11-11 11:11:23.538 2556 2556 F DEBUG : r8 0000000000000000 r9 0000000000000000 r10 000055c10cf7c4d0 r11 00007f13d99ff080 11-11 11:11:23.538 2556 2556 F DEBUG : r12 0000000000000000 r13 12552b7d71f2a389 r14 00000000000297b8 r15 0000000000000000 11-11 11:11:23.538 2556 2556 F DEBUG : cs 0000000000000033 ss 000000000000002b 11-11 11:11:23.538 2556 2556 F DEBUG : rip 000055c10cf60379 rbp 0000000000000000 rsp 00007f13d99ff0f0 eflags 0000000000010246 11-11 11:11:23.540 2556 2556 F DEBUG : 11-11 11:11:23.540 2556 2556 F DEBUG : backtrace: 11-11 11:11:23.540 2556 2556 F DEBUG : #00 pc 0000000000014379 /vendor/bin/daemon_cl 11-11 11:11:23.540 2556 2556 F DEBUG : #01 pc 0000000000013959 /vendor/bin/daemon_cl 11-11 11:11:23.540 2556 2556 F DEBUG : #02 pc 000000000000fd1b /vendor/bin/daemon_cl 11-11 11:11:23.540 2556 2556 F DEBUG : #03 pc 0000000000017255 /vendor/bin/daemon_cl 11-11 11:11:23.540 2556 2556 F DEBUG : #04 pc 0000000000084fbf /system/lib64/libc.so (_ZL15pthread_startPv+47) 11-11 11:11:23.540 2556 2556 F DEBUG : #05 pc 000000000002777c /system/lib64/libc.so (__start_thread+12) 11-11 11:11:23.540 2556 2556 F DEBUG : #06 pc 000000000001c6d5 /system/lib64/libc.so (bionic_clone+53) 11-11 11:11:23.557 2556 2556 F DEBUG : 11-11 11:11:23.557 2556 2556 F DEBUG : Tombstone written to: /data/tombstones/tombstone_00
This behavior is only seen in 64-bit(daemon_cl) not with 32-bit daemon_cl, Could you please provide us some pointers on this crash issue?
Following are the platform Info: Platform: Intel (gordon peak) x86-64 OS : Android(Marshmallow) Please find attached crash logs.
Regards, Manoj gptp_64_bit_crash_logs.txt