Bug 249546 - Cancelling apt-get dist-upgrade question in konsole results in crash of /bin/bash
Summary: Cancelling apt-get dist-upgrade question in konsole results in crash of /bin/...
Status: RESOLVED DUPLICATE of bug 168539
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.5
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 22:36 UTC by Kai Uwe Broulik
Modified: 2011-08-02 17:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2010-08-30 22:36:02 UTC
Version:           2.5 (using KDE 4.5.0) 
OS:                Linux

I have a .desktop file running the command "sudo apt-get update && sudo apt-get dist-upgrade" to check for new updates in my plasma quick launcher (I don't like that gui-ish package managing).
I launch that script, enter my user password, then it updates the repository list, and checks for updates.
It states “After this operation there will be xx MB more space consumed.”
“Do you want to continue?”
I often cancel the application using Ctrl-C if there’s only the chromium-browser update without the chromium codecs as this often breaks html5 video playback (there are different versions of the browser and its codecs installed then).
If I cancel the question via Ctrl-C (Not entering “N” to the question) there comes the messasge: “Attention: the program /bin/bash crashed.”
(German version, do not know the exact term used)

Reproducible: Sometimes
Comment 1 Christoph Feck 2010-08-31 00:10:17 UTC
Well, that would only be a Konsole bug if "bash" did not actually crash. Could you try reproducing the bug when you run the bash shell inside "gdb" debugger?

If the "bash" shell really crashes, you could report the bug to bash developers directly via the "bashbug" command line program (see http://www.faqs.org/faqs/unix-faq/shell/bash/ for more information)

If you got a Konsole crash (i.e. the KDE crash handler), then please add the backtrace to this bugreport.
Comment 2 Kai Uwe Broulik 2010-08-31 00:15:18 UTC
The crash message only appears if I run that command from my .desktop file located in the quicklauncher inside a panel.
If I type "sudo apt-get update && sudo apt-get dist-upgrade" manually, and cancel the process when it's asking to proceed, I just get returned to the bash prompt.
Comment 3 Christoph Feck 2010-08-31 00:40:00 UTC
Could you give the exact string for the "Attention: program ... crashed" message in english locale? I cannot find it anywhere in KDE (or anywhere else, using google). If you use a different language, you could switch it temporarily to english.
Comment 4 Kai Uwe Broulik 2010-08-31 00:43:30 UTC
The exact term used is:
“Warning: Program '/bin/bash' crashed.“ (written in bold red font)
Comment 5 Christoph Feck 2010-08-31 01:10:23 UTC
Thanks, that is indeed a Konsole generated message. Still not sure if that is a Konsole bug.
Comment 6 Kai Uwe Broulik 2010-09-22 11:01:27 UTC
So the command I used was “bash -c "sudo apt-get update && sudo apt-get dist-upgrade && exit"” and marked Terminal=true.
Now I removed that bash stuff and not it says “Warning: Program '/bin/sh' crashed.” when I cancel it.
Comment 7 Jekyll Wu 2011-08-02 17:21:52 UTC
Ctrl+C should be the root cause. That will cause $? to be 130 and konsole will get a QProcess::CrashExit. Pressing 'N' will cause $? to be 1 and konsole will get a QProcess::NormalExit.

Although this is a different case, it actually has the same reason as #168539 does. See its comment #12

*** This bug has been marked as a duplicate of bug 168539 ***