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

replay_bbox_ltm.rb : `initialize': Bad file descriptor #8

Closed
DzikuVx opened this issue Apr 3, 2016 · 6 comments
Closed

replay_bbox_ltm.rb : `initialize': Bad file descriptor #8

DzikuVx opened this issue Apr 3, 2016 · 6 comments

Comments

@DzikuVx
Copy link

DzikuVx commented Apr 3, 2016

I'm unable to run replay_bbox_ltm.rb on Linux Mint 17.3 with Xfce (Debian)

Tried both ruby2.0 and ruby 2.2. Every time I get

replay_bbox_ltm.rb --fd 18 -i 1 -t 3 -f /home/pawel/Downloads/BBlog sobota 2.TXT
/usr/bin/replay_bbox_ltm.rb:374:in `initialize': Bad file descriptor (Errno::EBADF)
    from /usr/bin/replay_bbox_ltm.rb:374:in `new'
    from /usr/bin/replay_bbox_ltm.rb:374:in `<main>'

All other tools seems to be working fine

@stronnag
Copy link
Owner

stronnag commented Apr 3, 2016

I'd guess it's not escaping the spaces in the file name properly. Can
you try it with a name without spaces?

-jonathan

On Sun, 03 Apr 2016 11:56:44 -0700
Paweł Spychalski [email protected] wrote:

I'm unable to run replay_bbox_ltm.rb on Linux Mint 17.3 with Xfce (Debian)

Tried both ruby2.0 and ruby 2.2. Every time I get

replay_bbox_ltm.rb --fd 18 -i 1 -t 3 -f /home/pawel/Downloads/BBlog sobota 2.TXT
/usr/bin/replay_bbox_ltm.rb:374:in `initialize': Bad file descriptor (Errno::EBADF)
  from /usr/bin/replay_bbox_ltm.rb:374:in `new'
  from /usr/bin/replay_bbox_ltm.rb:374:in `<main>'

All other tools seems to be working fine


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#8

@DzikuVx
Copy link
Author

DzikuVx commented Apr 3, 2016

I also thought it might be it, but looks like not

pawel@Min ~ $ replay_bbox_ltm.rb --fd 18 -i 1 -t 3 -f /home/pawel/Downloads/bb2.TXT
/usr/bin/replay_bbox_ltm.rb:374:in `initialize': Bad file descriptor (Errno::EBADF)
    from /usr/bin/replay_bbox_ltm.rb:374:in `new'
    from /usr/bin/replay_bbox_ltm.rb:374:in `<main>'

File exists, blackbox explorer reads it.
Ah, it latest master at 19f0db6

@stronnag
Copy link
Owner

stronnag commented Apr 3, 2016

You can't just run --fd from the command line, because it needs fd 18
to exist. And there are multiple issues with file names with spaces
that I need to fix.

So:

$ exec 18<> /tmp/foo
$ bbox-replay/replay_bbox_ltm.rb --fd 18 -i 1 -t 3 -f "/tmp/Test Log.TXT"

will fail elsewhere.

-jonathan

On Sun, 03 Apr 2016 12:08:51 -0700
Paweł Spychalski [email protected] wrote:

I also thought it might be it, but looks like not

pawel@Min ~ $ replay_bbox_ltm.rb --fd 18 -i 1 -t 3 -f /home/pawel/Downloads/bb2.TXT
/usr/bin/replay_bbox_ltm.rb:374:in `initialize': Bad file descriptor (Errno::EBADF)
  from /usr/bin/replay_bbox_ltm.rb:374:in `new'
  from /usr/bin/replay_bbox_ltm.rb:374:in `<main>'

File exists, blackbox explorer reads it


You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#8 (comment)

@DzikuVx
Copy link
Author

DzikuVx commented Apr 3, 2016

OK, don't know what I did by replay started to work after restarting. Closing.

@DzikuVx DzikuVx closed this as completed Apr 3, 2016
@stronnag
Copy link
Owner

stronnag commented Apr 3, 2016

No, there was a bug in the replay script involving file names with spaces, fixed by cdf0199

Thanks for the report

@DzikuVx
Copy link
Author

DzikuVx commented Apr 3, 2016

Well, I did not pulled yet :) Glad to been able to find a bug without finding it after all :)

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

2 participants