termux/termux-root-packages

A Tshark bug report

IRISnoir opened this issue · 13 comments

Tshark:
When I try to execute tshark, it won't output anything at all. After execution, it just puts back the shell. I expected it to print something, but it doesn't do anything at all. Here is a screenshot. I hope this is enough for you to reproduce and understand what is the matter of this package.
Screen_Capture_Img_583

  1. Why you are launching tshark from regular shell ? It's a package that require root.

  2. Regarding #93, @Grimler91 that issue a bug/feature of dlopen() on Android. Workaround is available in my x11/wireshark-gtk package, see patches in https://github.com/termux/x11-packages/tree/master/packages/wireshark-gtk.

In an older version, I managed to do it without root. But now even with root, it's still the same
Screen_Capture_Img_7544

@HoangPhantom What your tshark version ? On all my devices tshark v3.0.1 works fine.

Just like yours: 3.0.1

Can my device's info help

Regarding #93, @Grimler91 that issue a bug/feature of dlopen() on Android. Workaround is available in my x11/wireshark-gtk package, see patches in https://github.com/termux/x11-packages/tree/master/packages/wireshark-gtk.

Yeah, I figured, updating to 3.0.1 felt easier though since the cmake system fixes it :)
Edit: I should grab some of those path-fix patches though!

@HoangPhantom What do you even want to dump? Select the interface with tshark -i {something}.

Check for available interfaces with dumpcap -D.

Can you show me the syntax of the command to fix it.

Oh and neither tshark nor dumpcap output anything

What does gdb -ex r --args dumpcap -D or gdb -ex r --args tshark tell you? (After installing gdb)

Please wait while I install gdb

Here is screenshot.
Screen_Capture_Img_7319
Screen_Capture_Img_9627

Nevermind, I restarted Termux and it worked again. Thank you anyways for your dedication and for taking your time to help all Termux users