Skip to content
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

panic: runtime error: index out of range [70] with length 70 #151

Open
3 tasks done
Miro0o opened this issue Mar 29, 2023 · 0 comments
Open
3 tasks done

panic: runtime error: index out of range [70] with length 70 #151

Miro0o opened this issue Mar 29, 2023 · 0 comments

Comments

@Miro0o
Copy link

Miro0o commented Mar 29, 2023

Prerequisites

Please verify these before submitting an issue.

  • I am running the latest versions of Termshark and Wireshark.
  • I checked the README and User Guide and found no answer
  • I searched issues and this has not yet been filed

Problem

Whenever I tried to start termshark on my mac, it runs normally for a while then crashes with error panic: runtime error: index out of range [70] with length 70 (range number varies at each time);

Current Behavior

Termshark can start and work normally for a while, but soon after crashes with error panic: runtime error: index out of range [70] with length 70.

Expected Behavior

Termshark keeps running without crashing.

Screenshots as applicable

Screenshot 2023-03-29 at 9 29 40 AM

Screenshot 2023-03-29 at 9 30 06 AM

Screenshot 2023-03-29 at 9 30 44 AM

Steps to Reproduce

$ termshark -i en0 -w test.pcap
.... running for a while
panic: runtime error: index out of range [150] with length 150
goroutine 1 [running]:
github.com/gcla/gowid/widgets/text.(*ContentToCellArray).ProcessCell(0xc037374c80?, {0x335, {0x0}, {0x0}, {0x0, 0x0}})
	/Users/mir0/Go/GoProjects/pkg/mod/github.com/gcla/[email protected]/widgets/text/text.go:499 +0x1a9
github.com/gcla/gowid/widgets/text.Content.RangeOver({0xc037064000, 0x3b4, 0xc03737

 ...

Context

termshark -v

STDIN
   1   TShark (Wireshark) 4.0.4 (Git commit ea14d468d9ca).
   2
   3   Copyright 1998-2023 Gerald Combs <[email protected]> and contributors.
   4   Licensed under the terms of the GNU General Public License (version 2 or later).
   5   This is free software; see the file named COPYING in the distribution. There is
   6   NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   7
   8   Compiled (64-bit) using Clang 14.0.0 (clang-1400.0.29.202), with GLib 2.74.6,
   9   with PCRE2, with zlib 1.2.11, with libpcap, without POSIX capabilities, without
  10   Lua, without GnuTLS, with Gcrypt 1.10.1, with Kerberos (MIT), with MaxMind, with
  11   nghttp2 1.52.0, without brotli, without LZ4, without Zstandard, without Snappy,
  12   with libxml2 2.9.13, with libsmi 0.5.0, with binary plugins, release build,
  13   without assertions.
  14
  15   Running on macOS 13.2.1, build 22D68 (Darwin 22.3.0), with Intel(R) Core(TM)
  16   i7-1068NG7 CPU @ 2.30GHz (with SSE4.2), with 16384 MB of physical memory, with
  17   GLib 2.76.1, with PCRE2 10.42 2022-12-11, with zlib 1.2.11, with libpcap 1.10.1,
  18   with c-ares 1.19.0, with Gcrypt 1.10.1, with nghttp2 1.52.0, with libsmi 0.5.0,
  19   with LC_TYPE=en_US.UTF-8, binary plugins supported.

Env

Please also provide any relevant information about your environment (OS, VM, pi,...)

OS:
Darwin xxxx.local 22.3.0 Darwin Kernel Version 22.3.0; root:xnu-8792.81.3~2/RELEASE_X86_64 x86_64

GO:
Screenshot 2023-03-29 at 9 46 05 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant