08-25 13:26:29.598 1006 1006 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 1006 (vendor.dolby.me), pid 1006 (vendor.dolby.me) 08-25 13:26:29.731 3084 3084 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 08-25 13:26:29.731 3084 3084 F DEBUG : crDroid Version: '11.8' 08-25 13:26:29.731 3084 3084 F DEBUG : Build fingerprint: 'Xiaomi/vili/vili:14/UKQ1.231207.002/V816.0.10.0.UKDMIXM:user/release-keys' 08-25 13:26:29.731 3084 3084 F DEBUG : Revision: '0' 08-25 13:26:29.731 3084 3084 F DEBUG : ABI: 'arm64' 08-25 13:26:29.731 3084 3084 F DEBUG : Timestamp: 2025-08-25 13:26:29.665897496+0530 08-25 13:26:29.731 3084 3084 F DEBUG : Process uptime: 10s 08-25 13:26:29.731 3084 3084 F DEBUG : Cmdline: /vendor/bin/hw/vendor.dolby.media.c2@1.0-service 08-25 13:26:29.731 3084 3084 F DEBUG : pid: 1006, tid: 1006, name: vendor.dolby.me >>> /vendor/bin/hw/vendor.dolby.media.c2@1.0-service <<< 08-25 13:26:29.731 3084 3084 F DEBUG : uid: 1046 08-25 13:26:29.731 3084 3084 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000 08-25 13:26:29.731 3084 3084 F DEBUG : Cause: null pointer dereference 08-25 13:26:29.731 3084 3084 F DEBUG : x0 b400006f05b52fc0 x1 0000007fc905ed10 x2 0000006f45b59a90 x3 0000007fc905ecd8 08-25 13:26:29.731 3084 3084 F DEBUG : x4 0000000000000028 x5 0200006ef5b52470 x6 0000000000000000 x7 0000000000000000 08-25 13:26:29.731 3084 3084 F DEBUG : x8 00000000ffffffff x9 00000000eff00000 x10 0000006fe69e4fa4 x11 0000000012b97fad 08-25 13:26:29.731 3084 3084 F DEBUG : x12 0000000000028003 x13 b400006ef5b528e0 x14 0000000000000024 x15 000000000000005f 08-25 13:26:29.731 3084 3084 F DEBUG : x16 0000006fe5ebd230 x17 0000006fede1ca84 x18 0000006fef730000 x19 0000000000000000 08-25 13:26:29.731 3084 3084 F DEBUG : x20 b400006f05b52eb0 x21 0000006d55852090 x22 0000006fef2fff00 x23 0000000000000000 08-25 13:26:29.731 3084 3084 F DEBUG : x24 0000006fef2fff00 x25 b400006d55b59140 x26 0000000000000001 x27 0000000000000000 08-25 13:26:29.731 3084 3084 F DEBUG : x28 0000000000000000 x29 0000007fc905ece0 08-25 13:26:29.731 3084 3084 F DEBUG : lr 0000006fe5e915f4 sp 0000007fc905ece0 pc 0000006fede1caa0 pst 0000000080001000 08-25 13:26:29.731 3084 3084 F DEBUG : 7 total frames 08-25 13:26:29.731 3084 3084 F DEBUG : backtrace: 08-25 13:26:29.731 3084 3084 F DEBUG : #00 pc 0000000000010aa0 /vendor/lib64/libutils.so (android::RefBase::decStrong(void const*) const+28) (BuildId: 2fd112063e39cb6f651b185f9e6234f2) 08-25 13:26:29.731 3084 3084 F DEBUG : #01 pc 00000000000515f0 /vendor/lib64/android.hardware.media.c2@1.0.so (android::hardware::media::c2::V1_0::BnHwComponentStore::_hidl_createInterface(android::hidl::base::V1_0::BnHwBase*, android::hardware::Parcel const&, android::hardware::Parcel*, std::__1::function<void (android::hardware::Parcel&)>)+376) (BuildId: f0d25f49428387d313920490e7ec7c8c) 08-25 13:26:29.731 3084 3084 F DEBUG : #02 pc 00000000000525f0 /vendor/lib64/android.hardware.media.c2@1.0.so (android::hardware::media::c2::V1_0::BnHwComponentStore::onTransact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+1004) (BuildId: f0d25f49428387d313920490e7ec7c8c) 08-25 13:26:29.731 3084 3084 F DEBUG : #03 pc 000000000008ab7c /vendor/lib64/libhidlbase.so (android::hardware::BHwBinder::transact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+92) (BuildId: 1d845c84de7e27fc2c78f04ee8f4aae0) 08-25 13:26:29.731 3084 3084 F DEBUG : #04 pc 0000000000042eac /vendor/lib64/libhidlbase.so (android::hardware::IPCThreadState::joinThreadPool(bool)+1344) (BuildId: 1d845c84de7e27fc2c78f04ee8f4aae0) 08-25 13:26:29.731 3084 3084 F DEBUG : #05 pc 000000000000124c /vendor/bin/hw/vendor.dolby.media.c2@1.0-service (main+500) (BuildId: 394e52c5b5064b9f64c91bd2d615f078) 08-25 13:26:29.731 3084 3084 F DEBUG : #06 pc 0000000000055160 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+116) (BuildId: b310372d5ddccd24fca9f3a465bff80c) Co-Authored-By: ZiadTamer <ziadtamer150@gmail.com> Signed-off-by: swiitchOFF <120115258+swiitchOFF@users.noreply.github.com>
28 lines
861 B
C++
28 lines
861 B
C++
//
|
|
// SPDX-FileCopyrightText: The LineageOS Project
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#include <log/log.h>
|
|
#include <dlfcn.h>
|
|
|
|
extern "C" void _ZNK7android7RefBase9incStrongEPKv(void* thisptr, const void* id) {
|
|
if (!thisptr) {
|
|
ALOGE("DolbyShim: incStrong called on nullptr!");
|
|
return;
|
|
}
|
|
typedef void (*RealFunc)(void*, const void*);
|
|
static RealFunc real = (RealFunc)dlsym(RTLD_NEXT, "_ZNK7android7RefBase9incStrongEPKv");
|
|
if (real) real(thisptr, id);
|
|
}
|
|
|
|
extern "C" void _ZNK7android7RefBase9decStrongEPKv(void* thisptr, const void* id) {
|
|
if (!thisptr) {
|
|
ALOGE("DolbyShim: decStrong called on nullptr!");
|
|
return;
|
|
}
|
|
typedef void (*RealFunc)(void*, const void*);
|
|
static RealFunc real = (RealFunc)dlsym(RTLD_NEXT, "_ZNK7android7RefBase9decStrongEPKv");
|
|
if (real) real(thisptr, id);
|
|
}
|