[Android Q&A, Help & Troubleshooting] guzhal:
Hello all,

We have ported Android 4.4 (kitkat) version on a custom board with iMX6 processor and are successful in getting Android running on the custom board. Now, when tried to add support for 3G modem provided by ZTE, the rild daemon is crashing continuously there disabling the complete telephony.

Android service for rild in init.rc file is as below

service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyUSB2

class main

socket rild stream 660 root radio

socket rild-debug stream 660 radio system

user root

group radio cache inet misc audio

The sockets are getting created with the specified permissions as specified in the init.rc but unfortunately rild daemon is crashing throwing segmentation fault (SIGSEGV). The core dump of the crash

F/libc ( 2810): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 2821 (rild)

I/DEBUG ( 2387): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 2387): Build fingerprint: 'HKI/indus_1012/i1012:4.4.2/1.0.0-rc3/20140630:user/dev-keys'

I/DEBUG ( 2387): Revision: '405525'

I/DEBUG ( 2387): pid: 2810, tid: 2821, name: rild >>> /system/bin/rild <<<

I/DEBUG ( 2387): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c

I/DEBUG ( 2387): r0 0000000c r1 00000000 r2 00000011 r3 00000000

I/DEBUG ( 2387): r4 0000000c r5 00000000 r6 00000000 r7 4021909c

I/DEBUG ( 2387): r8 40219157 r9 4021d02c sl 402190fc fp 4021d028

I/DEBUG ( 2387): ip 4021cf00 sp 405f7cd8 lr 4015315d pc 4014f708 cpsr 200d0010

I/DEBUG ( 2387): d0 0000000000000000 d1 0000000000000000

I/DEBUG ( 2387): d2 0000000000000000 d3 0000000000000000

I/DEBUG ( 2387): d4 0000000000000000 d5 0000000000000000

I/DEBUG ( 2387): d6 0000000000000000 d7 0243d58000000000

I/DEBUG ( 2387): d8 0000000000000000 d9 0000000000000000

I/DEBUG ( 2387): d10 0000000000000000 d11 0000000000000000

I/DEBUG ( 2387): d12 0000000000000000 d13 0000000000000000

I/DEBUG ( 2387): d14 0000000000000000 d15 0000000000000000

I/DEBUG ( 2387): d16 41826b235ab851ec d17 3f50624dd2f1a9fc

I/DEBUG ( 2387): d18 41c2ab23a6000000 d19 0000000000000000

I/DEBUG ( 2387): d20 0000000000000000 d21 0000000000000000

I/DEBUG ( 2387): d22 0000000000000000 d23 0000000000000000

I/DEBUG ( 2387): d24 0000000000000000 d25 0000000000000000

I/DEBUG ( 2387): d26 0000000000000000 d27 0000000000000000

I/DEBUG ( 2387): d28 0000000000000000 d29 0000000000000000

I/DEBUG ( 2387): d30 0000000000000000 d31 0000000000000000

I/DEBUG ( 2387): scr 00000010

I/DEBUG ( 2387):

I/DEBUG ( 2387): backtrace:

I/DEBUG ( 2387): #00 pc 0000e708 /system/lib/libc.so

I/DEBUG ( 2387): #01 pc 00012159 /system/lib/libc.so (readdir+10)

I/DEBUG ( 2387): #02 pc 000026fd /system/lib/libreference-ril-mw3820.so

I/DEBUG ( 2387): #03 pc 00004069 /system/lib/libreference-ril-mw3820.so

I/DEBUG ( 2387): #04 pc 0000d248 /system/lib/libc.so (__thread_entry+72)

I/DEBUG ( 2387): #05 pc 0000d3e0 /system/lib/libc.so (pthread_create+240)

I/DEBUG ( 2387):

I/DEBUG ( 2387): stack:

I/DEBUG ( 2387): 405f7c98 00000000

I/DEBUG ( 2387): 405f7c9c 00000000

I/DEBUG ( 2387): 405f7ca0 00000000

I/DEBUG ( 2387): 405f7ca4 00000000

I/DEBUG ( 2387): 405f7ca8 00000000

libc.so is not getting loaded but libc.so and libreference-ril-mw3820.so are all available in the system/lib folder. and the contents of system.prop is

rild.libpath=/system/lib/libreference-ril-mw3820.so

rild.libargs=-d /dev/ttyUSB2

but still the above crash persists. Any help on this would be of great help.