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

With a long package name, a parse error occurs. #391

Closed
hogehuga opened this issue Mar 21, 2017 · 4 comments
Closed

With a long package name, a parse error occurs. #391

hogehuga opened this issue Mar 21, 2017 · 4 comments
Labels
Milestone

Comments

@hogehuga
Copy link
Contributor

Environment

Oracle Linux Server release 7.1 Local scan mode.

Vuls

Hash : vuls v0.2.0 af5a120

OS

  • Target Server: Oracle Linux Server release 7.1
  • Vuls Server: Same server.(Oracle Linux Server release 7.1)

Go

  • Go version: go version go1.8 linux/amd64

Current Output

Please re-run the command using -debug and provide the output below.

Addition Details

vuls scan failed.

# vuls scan
...
[date] ERROR [localhost] Failed to scan vulnerable packages
[date] ERROR [localhost] Error: localhost, err: [Failed to parse LANGUAGE=en_US.UTF-8 yum --color=never check-update. err: Unknown format: gnome-shell-extension-alternate-tab.noarch]
...
# yum check-update
読み込んだプラグイン:langpacks

ModemManager.x86_64 ...
...
gnome-shell.x86_64                     3.14.4-53.el7                  ol7_latest   
gnome-shell-extension-alternate-tab.noarch
                                       3.14.4-21.el7                  ol7_latest   
gnome-shell-extension-apps-menu.noarch 3.14.4-21.el7                  ol7_latest   
gnome-shell-extension-common.noarch    3.14.4-21.el7                  ol7_latest   
gnome-shell-extension-launch-new-instance.noarch
                                       3.14.4-21.el7                  ol7_latest   
gnome-shell-extension-places-menu.noarch
                                       3.14.4-21.el7                  ol7_latest   
gnome-shell-extension-window-list.noarch
                                       3.14.4-21.el7                  ol7_latest   
gnome-system-log.x86_64                1:3.9.90-3.el7                 ol7_latest   
gnome-system-monitor.x86_64            3.14.1-4.el7                   ol7_latest   
gnome-terminal.x86_64                  3.14.3-13.el7                  ol7_latest   
gnome-themes-standard.x86_64           3.14.2.2-2.el7                 ol7_latest   
...
#
@hogehuga
Copy link
Contributor Author

I tried the following changes.

  • executil.go#L225
    • Before: session.RequestPty("xterm", 400, 1000, modes)
    • After: session.RequestPty("xterm", 400, 2000, modes)
      • There was no effected..

LANGUAGE=en_US.UTF-8 yum --color=never check-update:
yum_check-update.txt

@kotakanbe kotakanbe added the bug label Mar 24, 2017
@hogehuga
Copy link
Contributor Author

I confirmed a similar situation.

  • On CentOS68, tcpdump.x86_64: 14:4.0.0-9.20090921gitdf3cb4.2.el6
  • Too long to yum check-update. It is longer than expected format.

yum_update

@knqyf263
Copy link
Contributor

I think it is a problem of the width of the terminal.
The following command will work.
$ stty columns 1000; yum check-update

PR welcome!

@kotakanbe
Copy link
Member

Please try v0.4.0.
If you are still in trouble, please reopen.

@kotakanbe kotakanbe added this to the v0.4.0 milestone Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants