New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when looking up processes due to UID > int #537

Closed
d4rken opened this Issue Oct 7, 2016 · 0 comments

Comments

1 participant
@d4rken
Owner

d4rken commented Oct 7, 2016

Seems unusual:
http://serverfault.com/questions/105260/how-big-in-bits-is-a-unix-uid

While weird, we just pass this in and out again, no downside to just accepting long values.

java.lang.NumberFormatException: Invalid int: "4294967295"
        at java.lang.Integer.invalidInt(Integer.java:137)
        at java.lang.Integer.parse(Integer.java:377)
        at java.lang.Integer.parseInt(Integer.java:365)
        at java.lang.Integer.parseInt(Integer.java:331)
        at eu.thedarken.sdm.tools.binaries.a.a.p.a(Unknown:-1)
        at eu.thedarken.sdm.tools.binaries.a.a.o$b$a.a(PsApplet.java:1038)
        at eu.thedarken.sdm.tools.process.ProcessInfoFactory.parseMatch(ProcessInfoFactory.java:124)
        at eu.thedarken.sdm.tools.process.ProcessInfoFactory.getProcessInfoFromShell(ProcessInfoFactory.java:77)
        at eu.thedarken.sdm.appcontrol.AppControlWorker.v(AppControlWorker.java:11132)
        at eu.thedarken.sdm.appcontrol.AppControlWorker.doBuildData(AppControlWorker.java:171)
        at eu.thedarken.sdm.appcontrol.AppControlWorker.doBuildData(AppControlWorker.java:63)
        at eu.thedarken.sdm.AbstractListWorker.a(AbstractListWorker.java:1055)
        at eu.thedarken.sdm.appcontrol.AppControlWorker.a(AppControlWorker.java:50215)
        at eu.thedarken.sdm.AbstractWorker$1.run(AbstractWorker.java:232)
        at eu.thedarken.sdm.ak.run(Unknown:1090)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
        at eu.thedarken.sdm.SDMThreadFactory$1.run(SDMThreadFactory.java:57)
        at java.lang.Thread.run(Thread.java:848)
V/SDM:InteractiveShell: Output: S<      199 0
V/SDM:InteractiveShell: Output: S<      200 0
V/SDM:InteractiveShell: Output: S       230 1002
V/SDM:InteractiveShell: Output: S       232 1023
V/SDM:InteractiveShell: Output: S       233 1000
V/SDM:InteractiveShell: Output: S       234 1000
V/SDM:InteractiveShell: Output: S       235 4294967295
V/SDM:InteractiveShell: Output: S       491 2000
V/SDM:InteractiveShell: Output: S       492 1001
V/SDM:InteractiveShell: Output: S       611 1001
V/SDM:InteractiveShell: Output: S       640 1000
V/SDM:InteractiveShell: Output: S<      643 1000
V/SDM:InteractiveShell: Output: S       711 10012
V/SDM:InteractiveShell: Output: S       783 0

@d4rken d4rken added bug c: Core labels Oct 7, 2016

@d4rken d4rken added this to the v4.3.7 milestone Oct 7, 2016

@d4rken d4rken closed this Oct 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment