[Galaxy S6 Original Android Development] moe61:
It seems after every call the audioserver crashes and is tried to restart. After many restarts of the audioserver Watchdog tries to restart the system because of low memory. But the service media.audio_policy woun't come up until a hard reset.

Can anybody fix that?

[ 02-25 13:50:34.559 10785:10785 F/libc ]Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 10785 (audioserver)
[ 02-25 13:50:34.560 2950: 2950 W/ ]debuggerd: handling request: pid=10785 uid=1041 gid=1005 tid=10785
[ 02-25 13:50:34.624 10789:10789 F/DEBUG ]*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[ 02-25 13:50:34.624 10789:10789 F/DEBUG ]LineageOS Version: '14.1-20180224-NIGHTLY-zerofltexx'
[ 02-25 13:50:34.625 10789:10789 F/DEBUG ]Build fingerprint: 'Samsung/lineage_zerofltexx/zerofltexx:7.1.2/NJH47F/fe1a8e2994:userdebug/release-keys'
[ 02-25 13:50:34.625 10789:10789 F/DEBUG ]Revision: '0'
[ 02-25 13:50:34.625 10789:10789 F/DEBUG ]ABI: 'arm'
[ 02-25 13:50:34.625 10789:10789 F/DEBUG ]pid: 10785, tid: 10785, name: audioserver >>> /system/bin/audioserver <<<
[ 02-25 13:50:34.626 10789:10789 F/DEBUG ]signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
[ 02-25 13:50:34.626 10789:10789 F/DEBUG ] r0 00000000 r1 00000000 r2 00000000 r3 00000000
[ 02-25 13:50:34.626 10789:10789 F/DEBUG ] r4 ffffffff r5 f668540e r6 f66e1778 r7 f66e1778
[ 02-25 13:50:34.626 10789:10789 F/DEBUG ] r8 f72d68fb r9 00000000 sl f66d2314 fp 00000000
[ 02-25 13:50:34.626 10789:10789 F/DEBUG ] ip f70c9d88 sp ff97d068 lr f7091705 pc f7059bd8 cpsr 600e0030
[ 02-25 13:50:34.632 10789:10789 F/DEBUG ]backtrace:
[ 02-25 13:50:34.632 10789:10789 F/DEBUG ] #00 pc 00018bd8 /system/lib/libc.so (strlen+71)
[ 02-25 13:50:34.632 10789:10789 F/DEBUG ] #01 pc 00050701 /system/lib/libc.so (__strlen_chk+4)
[ 02-25 13:50:34.632 10789:10789 F/DEBUG ] #02 pc 00046d95 /system/lib/libc.so (strdup+8)
[ 02-25 13:50:34.632 10789:10789 F/DEBUG ] #03 pc 000019ab /system/lib/libaudioroute.so
[ 02-25 13:50:34.632 10789:10789 F/DEBUG ] #04 pc 000067d1 /system/lib/libexpat.so
[ 02-25 13:50:34.633 10789:10789 F/DEBUG ] #05 pc 00005b97 /system/lib/libexpat.so
[ 02-25 13:50:34.633 10789:10789 F/DEBUG ] #06 pc 00003f23 /system/lib/libexpat.so (XML_ParseBuffer+82)
[ 02-25 13:50:34.633 10789:10789 F/DEBUG ] #07 pc 000015f7 /system/lib/libaudioroute.so (audio_route_init+398)
[ 02-25 13:50:34.633 10789:10789 F/DEBUG ] #08 pc 00004490 /system/lib/hw/audio.primary.universal7420.so
[ 02-25 13:50:34.633 10789:10789 F/DEBUG ] #09 pc 000248cf /system/lib/libaudioflinger.so
[ 02-25 13:50:34.633 10789:10789 F/DEBUG ] #10 pc 0002804b /system/lib/libaudioflinger.so
[ 02-25 13:50:34.633 10789:10789 F/DEBUG ] #11 pc 0000bb33 /system/lib/libaudiopolicyservice.so
[ 02-25 13:50:34.634 10789:10789 F/DEBUG ] #12 pc 00024385 /system/lib/libaudiopolicymanagerdefault.so (_ZN7android18AudioPolicyManagerC1EPNS_26AudioPolicyClientInterfaceE+692)
[ 02-25 13:50:34.634 10789:10789 F/DEBUG ] #13 pc 0000082f /system/lib/libaudiopolicymanager.so (createAudioPolicyManager+14)
[ 02-25 13:50:34.634 10789:10789 F/DEBUG ] #14 pc 0000603f /system/lib/libaudiopolicyservice.so
[ 02-25 13:50:34.634 10789:10789 F/DEBUG ] #15 pc 00001d8f /system/bin/audioserver
[ 02-25 13:50:34.634 10789:10789 F/DEBUG ] #16 pc 0000182b /system/bin/audioserver
[ 02-25 13:50:34.634 10789:10789 F/DEBUG ] #17 pc 00016c8d /system/lib/libc.so (__libc_init+48)
[ 02-25 13:50:34.634 10789:10789 F/DEBUG ] #18 pc 0000156c /system/bin/audioserver
[ 02-25 13:50:34.684 3492: 3625 W/NativeCrashListener ]Couldn't find ProcessRecord for pid 10785
[ 02-25 13:50:34.685 2950: 2950 W/ ]debuggerd: resuming target 10785
[ 02-25 13:50:34.687 3492: 3509 I/BootReceiver ]Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)
[ 02-25 13:50:34.688 3031: 3031 I/ServiceManager ]service 'media.audio_flinger' died
[ 02-25 13:50:34.835 4238: 4238 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:35.050 4179: 7892 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:35.500 3492: 3492 W/AudioSystem ]AudioPolicyService not published, waiting...
[ 02-25 13:50:35.837 4238: 4238 W/AudioSystem ]AudioPolicyService not published, waiting...
[ 02-25 13:50:36.002 3492: 3492 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:36.052 4179: 7892 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:36.339 4238: 4238 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:37.003 3492: 3492 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:37.053 4179: 7892 W/AudioSystem ]AudioPolicyService not published, waiting...
[ 02-25 13:50:37.340 4238: 4238 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:37.555 4179: 7892 I/ServiceManager ]Waiting for service media.audio_policy...

[ 02-25 13:50:55.079 4179: 7892 W/AudioSystem ]AudioPolicyService not published, waiting...
[ 02-25 13:50:55.239 3492: 3492 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:55.377 4238: 4238 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:55.580 4179: 7892 I/ServiceManager ]Waiting for service media.audio_policy...
[ 02-25 13:50:55.768 3492: 3760 I/Watchdog_N ]dumpKernelStacks
[ 02-25 13:50:55.856 3492: 3760 W/Watchdog ]*** WATCHDOG KILLING SYSTEM PROCESS: Blocked in handler on main thread (main)
[ 02-25 13:50:55.856 3492: 3760 W/Watchdog ]main thread stack trace:
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.media.AudioSystem.listAudioPorts(Native Method)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.media.AudioManager.updateAudioPortCache(AudioManager.java:3798)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.media.AudioManager.listAudioDevicePorts(AudioManager.java:3621)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.media.AudioManager.broadcastDeviceListChange(AudioManager.java:4105)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.media.AudioManager.-wrap1(AudioManager.java)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.media.AudioManager$OnAmPortUpdateListener.onServiceDied(AudioManager.java:4166)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.media.AudioPortEventHandler$1.handleMessage(AudioPortEventHandler.java:114)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.os.Handler.dispatchMessage(Handler.java:102)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at android.os.Looper.loop(Looper.java:154)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at com.android.server.SystemServer.run(SystemServer.java:383)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at com.android.server.SystemServer.main(SystemServer.java:237)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at java.lang.reflect.Method.invoke(Native Method)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
[ 02-25 13:50:55.857 3492: 3760 W/Watchdog ]*** GOODBYE!
[ 02-25 13:50:55.858 3492: 3760 I/Process ]Sending signal. PID: 3492 SIG: 9
[ 02-25 13:50:55.947 3050: 3050 E/ ]eof
[ 02-25 13:50:55.948 3050: 3050 E/ ]failed to read size
[ 02-25 13:50:55.948 3050: 3050 I/ ]closing connection
[ 02-25 13:50:55.948 3030: 3030 I/lowmemorykiller ]ActivityManager disconnected
[ 02-25 13:50:55.948 3030: 3030 I/lowmemorykiller ]Closing Activity Manager data connection