-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Trippy BSOD on NetBSD when resizing window #276
Comments
Also occurs with the existing |
@fujiapple852 I don't because, I do not resize windows, I use But, I can reproduce the error with |
Thank you @0323pin! Given it isn't a regression bug I'll proceed with the |
No worries, @fujiapple852 |
@fujiapple852 Just so you know, I've updated the package already but, didn't have the time to merge it. Most probably late this evening or, tomorrow early morning. |
Best guess is this relates to not handling https://unix.stackexchange.com/questions/509375/what-is-interrupted-system-call |
Sorry for the slow reply, been AFK for a few days. I've asked internally, if we are missing something obvious here. |
Thanks @0323pin, there is nothing needed right now, Edit: I spoke to soon, I'm unable to build the latest
I'm using the public AMI It appears to be Aside: I can |
If you want, I can do a test build on bare-metal x86_64. |
@0323pin that would be useful, thanks. I'm going to release Apart from checking that it builds from
When running, resize the window and it should fail with the |
Yes, I can do this but, I've already built from the 5b5ca30
Resizing the window causes the expected failure. I'll try to find the time to build with the logging feature enabled later today. But, at least you know it builds and runs. |
Hopefully it comes through, it's 19 MB. Let me know if it doesn't get to you and I'll host it on git. |
Thanks, I got the file. From the trace it doesn't look like it crashed, so I guess it only crashes when you resize when the TUI is running and the backend tracing is running, which the current tracing code doesn't support. To fix this I think I'll need a netBSD env I can use to debug this directly (also I tried a VM in virtualBox without much luck). What would be a good forum to ask for help for this? Anyway good news that the latest code that it builds ok, so I can proceed with the release. |
Yeah, i tried that also but, got verbose option is not available in TUI mode or, something along those lines.
I've never used VirtualBox, I always use QEMU
www.unitedbsd.com EDIT: 0.8.0 merged, https://mail-index.netbsd.org/pkgsrc-changes/2023/05/15/msg274784.html |
@0323pin I was eventually able to get NetBSD running locally on macOS (intel Mac) using I installed
I downloaded: http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/202308261920Z/images/NetBSD-9.3_STABLE-amd64.iso I created the VM with:
For the initial install I ran:
...and followed the prompts (picked defaults for most things, enabled sshd and nntpd) After installation, i'm running it with (i've tried a few variation on this to try and speed things up):
I then installed I don't know why but I then installed
It runs, though i'm obviously missing some setup as it looks like the following: I don't see any ICMP traffic being received, which I guess is some qemu config I need to tweak. A standard Because i'm working directly in the console I don't have any way to trigger the bug with a window "resize", I guess I need some kind of graphical environment? I wasn't able to ssh into the vm from my Mac host, so i'm just working in the qemu window that pops up. |
Hi, great that you have managed to install it :)
I've never experienced this. Ok, it's not as fast as
There are two window managers (kind of anyway, |
@fujiapple852 Are you on Matrix? I'm really short of time today but we could set-up sometime to chat through your issues. |
@fujiapple852 On a second thought ... If your intention is only to debug the window-resize issue on a disposable qemu-vm, which you do not intend to keep, NetBSD has everything you need on the base install. Xorg is part of base and Sorry, if I can't give you proper If you, by any chance, run into issues with
Note: I've posted this on a forum a longtime ago so, I've hidden the numbers, 000.0.0.0 is actually something else. Don't touch the default, just fix domain name and hostname. Now, you should be able to resize your terminal and reproduce the issue. |
@0323pin I am now! @fujiapple852:matrix.org |
Yeh, disposable is fine. I'd like to be able to fire up trippy on netbsd run a basic test before each release like I used to do on a cloud env.
Wow, that just...worked :) From the graphical env I was able to start trippy, resize the window and observe the crash. Nice! |
Is there an easy way to add this to the pre-release CI? |
I also joined matrix @one.----:matrix.org |
I know nothing about CIs but, there's now support for NetBSD in https://cirrus-ci.com/build/6221284932583424 |
@0323pin provisional fix available in #670 It seems to fix it in my One caveat here is that I've had to temporarily downgrade |
That's awesome! Now I wonder if it allows raw sockets and ICMP (GH actions do not...) |
Thanks! I'll take it for a spin after the weekend. Did you see my comment on the Rust version in your branch commit? |
@0323pin yes I did, that's fine. No rush here, we've waited this long (over a year!) it can wait a few more weeks :) |
@fujiapple852 It works 😄 Built with Rust-1.71.1, resize without crash. |
Thanks! The fix has been Merged and will go into the |
[0.9.0] - 2023-11-30 Added - Added support for tracing flows ([#776](fujiapple852/trippy#776)) - Added support for `icmp` extensions ([#33](fujiapple852/trippy#33)) - Added support for `MPLS` label stack class `icmp` extension objects ([#753](fujiapple852/trippy#753)) - Added support for [paris] (https://github.com/libparistraceroute/libparistraceroute) ECMP routing for `IPv6/udp` ([#749](fujiapple852/trippy#749)) - Added `--unprivileged` (`-u`) flag to allow tracing without elevated privileges (macOS only) ([#101](fujiapple852/trippy#101)) - Added `--tui-privacy-max-ttl` flag to hide host and IP details for low ttl hops ([#766](fujiapple852/trippy#766)) - Added `toggle-privacy` (default: `p`) key binding to show or hide private hops ([#823](fujiapple852/trippy#823)) - Added `toggle-flows` (default: `f`) key binding to show or hide tracing flows ([#777](fujiapple852/trippy#777)) - Added `--dns-resolve-all` (`-y`) flag to allow tracing to all IPs resolved from DNS lookup entry ([#743](fujiapple852/trippy#743)) - Added `dot` report mode (`-m dot`) to output hop graph in Graphviz `DOT` format ([#582](fujiapple852/trippy#582)) - Added `flows` report mode (`-m flows`) to output a list of all unique tracing flows ([#770](fujiapple852/trippy#770)) - Added `--icmp-extensions` (`-e`) flag for parsing `IPv4`/`IPv6` `icmp` extensions ([#751](fujiapple852/trippy#751)) - Added `--tui-icmp-extension-mode` flag to control how `icmp` extensions are rendered ([#752](fujiapple852/trippy#752)) - Added `--print-config-template` flag to output a template config file ([#792](fujiapple852/trippy#792)) - Added `--icmp` flag as a shortcut for `--protocol icmp` ([#649](fujiapple852/trippy#649)) - Added `toggle-help-alt` (default: `?`) key binding to show or hide help ([#694](fujiapple852/trippy#694)) - Added panic handing to Tui ([#784](fujiapple852/trippy#784)) - Added official Windows `scoop` package ([#462](fujiapple852/trippy#462)) - Added official Windows `winget` package ([#460](fujiapple852/trippy#460)) - Release `musl` Debian `deb` binary asset ([#568](fujiapple852/trippy#568)) - Release `armv7` Linux binary assets ([#712](fujiapple852/trippy#712)) - Release `aarch64-apple-darwin` (aka macOS Apple Silicon) binary assets ([#801](fujiapple852/trippy#801)) - Added additional Rust Tier 1 and Tier 2 binary assets ([#811](fujiapple852/trippy#811)) Changed - [BREAKING CHANGE] `icmp` extension object data added to `json` and `stream` reports ([#806](fujiapple852/trippy#806)) - [BREAKING CHANGE] IPs field added to `csv` and all tabular reports ([#597](fujiapple852/trippy#597)) - [BREAKING CHANGE] Command line flags `--dns-lookup-as-info` and `--tui-preserve-screen` no longer require a boolean argument ([#708](fujiapple852/trippy#708)) - [BREAKING CHANGE] Default key binding for `ToggleFreeze` changed from `f` to `ctrl+f` ([#785](fujiapple852/trippy#785)) - Always render AS lines in hop details mode ([#825](fujiapple852/trippy#825)) - Expose DNS resolver module as part of `trippy` library ([#754](fujiapple852/trippy#754)) - Replaced unmaintained `tui-rs` crate with `ratatui` crate ([#569](fujiapple852/trippy#569)) Fixed - Reverse DNS lookup not working in reports ([#509](fujiapple852/trippy#509)) - Crash on NetBSD during window resizing ([#276](fujiapple852/trippy#276)) - Protocol mismatch causes tracer panic ([#745](fujiapple852/trippy#745)) - Incorrect row height in Tui hop detail navigation view for hops with no responses ([#765](fujiapple852/trippy#765)) - Unnecessary socket creation in certain tracing modes ([#647](fujiapple852/trippy#647)) - Incorrect byte order in `IPv4` packet length calculation ([#686](fujiapple852/trippy#686))
Starting trippy (
0.6.0-dev
) and resizing the window will result in a BSOD with the error:The text was updated successfully, but these errors were encountered: