Skip to main content
DevM
Associate II
Nov 10, 2020 8:00 AM UTC
Solved

Null pointer dereference using st_imu68 driver and STMems_Android_Sensor_HAL_IIO

Hi all,

I opened a issue on github about it:

https://github.com/STMicroelectronics/STMems_Android_Sensor_HAL_IIO/issues/6

Once i add the STMems_Android_Sensor_HAL_IIO library on my system the sensor service crash.

01-01 00:02:12.558 2358 2358 F DEBUG : Revision: '0'
01-01 00:02:12.558 2358 2358 F DEBUG : ABI: 'arm'
01-01 00:02:12.558 2358 2358 F DEBUG : pid: 2355, tid: 2355, name: android.hardwar >>> /vendor/bin/hw/android.hardware.sensors@1.0-service <<<
01-01 00:02:12.558 2358 2358 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1c
01-01 00:02:12.558 2358 2358 F DEBUG : Cause: null pointer dereference
01-01 00:02:12.559 2358 2358 F DEBUG : r0 00000001 r1 00000000 r2 af5905c8 r3 00000000
01-01 00:02:12.559 2358 2358 F DEBUG : r4 af5905c8 r5 0000005a r6 00000000 r7 00000003
01-01 00:02:12.559 2358 2358 F DEBUG : r8 bebad354 r9 00000004 sl 00000000 fp bebab950
01-01 00:02:12.559 2358 2358 F DEBUG : ip af86062c sp bebab910 lr af8252ad pc af371b64 cpsr 200e0030
01-01 00:02:12.619 2358 2358 F DEBUG :
01-01 00:02:12.619 2358 2358 F DEBUG : backtrace:
01-01 00:02:12.620 2358 2358 F DEBUG : #00 pc 00007b64 /vendor/lib/hw/STsensors.msm8909.so (st_hal_open_sensors(hw_module_t const*, char const*, hw_device_t**)+275)

I don't know if this is the official way to report a bug, Otherwise let me know the right way to do it.

Thank you in advance.

    This topic has been closed for replies.
    Eleon BORLINI
    Eleon BORLINIBest answer
    ST Employee
    Nov 10, 2020 3:47 PM UTC

    Hi @DevM​ ,

    you are right, the official way to open an issue concerning those Android libraries is reporting it on Github.

    Same for the C libraries, for example.

    Please let me know if you will or will not receive a feedback (in about 1 week max).

    Edit: the topic should now be closed on Github.

    -Eleon

    3 replies

    Eleon BORLINI
    Eleon BORLINIBest answer
    ST Employee
    Nov 10, 2020 3:47 PM UTC

    Hi @DevM​ ,

    you are right, the official way to open an issue concerning those Android libraries is reporting it on Github.

    Same for the C libraries, for example.

    Please let me know if you will or will not receive a feedback (in about 1 week max).

    Edit: the topic should now be closed on Github.

    -Eleon

    DevM
    DevMAuthor
    Associate II
    Nov 16, 2020 10:33 AM UTC

    Hi @Eleon BORLINI​ ,

    Any update on the issue?

    Thank you.

    Eleon BORLINI
    ST Employee
    Nov 16, 2020 11:18 AM UTC

    Hi @DevM​ ,

    uhm... let me please check internally and then come back to you.

    -Eleon