Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Fix error handling when unknown exception occurs in run_crash_cmd #293

Merged
merged 2 commits into from
Jan 30, 2020

Conversation

DaveWysochanskiRH
Copy link
Collaborator

If an unknown error occurs the following cryptic error is thrown:
[2020-01-29 17:11:52] [I] Searching for kernel-debuginfo package for 2.6.32-504.el6.x86_64
[2020-01-29 17:11:52] [E] not enough arguments for format string

The intent was to print out more info about the exception, and
fixing this bug shows better info:
[2020-01-29 17:30:15] [I] Searching for kernel-debuginfo package for 2.6.32-504.el6.x86_64
[2020-01-29 17:30:15] [W] crash command: 'mod; quit' triggered Unknown exception stdin and input arguments may not both be used.
[2020-01-29 17:30:15] [W] <class 'ValueError'>
[2020-01-29 17:30:15] [E] prepare_debuginfo failed: 'NoneType' object has no attribute 'decode'

Signed-off-by: Dave Wysochanski [email protected]

@abrt-bot
Copy link
Contributor

Can one of the admins verify this patch?

If an unknown error occurs the following cryptic error is thrown:
[2020-01-29 17:11:52] [I] Searching for kernel-debuginfo package for 2.6.32-504.el6.x86_64
[2020-01-29 17:11:52] [E] not enough arguments for format string

The intent was to print out more info about the exception, and
fixing this bug shows better info:
[2020-01-29 17:30:15] [I] Searching for kernel-debuginfo package for 2.6.32-504.el6.x86_64
[2020-01-29 17:30:15] [W] crash command: 'mod; quit' triggered Unknown exception stdin and input arguments may not both be used.
[2020-01-29 17:30:15] [W]   <class 'ValueError'>
[2020-01-29 17:30:15] [E] prepare_debuginfo failed: 'NoneType' object has no attribute 'decode'

Signed-off-by: Dave Wysochanski <[email protected]>
This fixes a small problem caused by the conversion from Popen to
run in commit fd40267 where run_crash_cmdline may fail with the
following error:
  crash command: 'mod; quit' triggered Unknown exception
  stdin and input arguments may not both be used.

Signed-off-by: Dave Wysochanski <[email protected]>
@mkutlak
Copy link
Contributor

mkutlak commented Jan 30, 2020

@trapas add to whitelist

@mkutlak mkutlak merged commit b21a64e into abrt:master Jan 30, 2020
@mkutlak
Copy link
Contributor

mkutlak commented Jan 30, 2020

Thank you very much!

Seems like we really need some proper tests for retrace-server.

@DaveWysochanskiRH DaveWysochanskiRH deleted the fix-prepare-debuginfo-failure branch April 6, 2020 22:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants