Skip to content

NPROC count is not properly de-refcounted after exec #3214

@CPCer

Description

@CPCer

Please check before submitting an issue

  • I have searched the issues and haven't found anything relevant
  • I will upload bugreport file in KernelSU Manager - Settings - Report log
  • I know how to reproduce the issue which may not be specific to my device

Describe the bug

AdGuard crash after some time (1 day) with the following error reported:
java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
at java.lang.Thread.nativeCreate(Native Method)
at java.lang.Thread.start(Thread.java:1083)
at android.util.BoostFramework$ScrollOptimizer.setFrameInterval(BoostFramework.java:906)
at android.view.Choreographer.doFrame(Choreographer.java:1316)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:2003)
at android.os.Handler.handleCallback(Handler.java:1029)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:267)
at android.os.Looper.loop(Looper.java:360)
at android.app.ActivityThread.main(ActivityThread.java:10054)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:616)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1115)

Although it seem to be the bug of AdGuard itself, other user report it's only on KernelSU AdguardTeam/AdguardForAndroid#5995 (comment) . So might it be helpful if i file one
issue here?

To Reproduce

Use AdGuard for a day

Expected behavior

Continue usage

Screenshots

No response

Logs

Can anyone provide an email to send? Thank you!

Device info

  • Device: Xiaomi Nezha
  • OS Version: 3.0.41
  • KernelSU Version:v3.0.0-92-g9e233aa7
  • Kernel Version: 6.12.23-android16-5-g16e473de48a3-abogki462654244-4k

Additional context

Root got wiped after unstoppable system update, reproduction may take time. Would you turn to @lenox108 's post? Much appreciated!
由于无法停止系统更新,root丢失,复现问题和提供日志可能需要时间。请移玉手访问引用的链接,查看他提供的,感谢感谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions