SIGSEGV upon entering '#' at beginning of line at prompt

Bug #1086873 reported by Robert Irelan
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ksh (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Typing a '#' character at the start of the line at the interactive prompt, followed by any other character (except if it is deleted by using backspace, Ctrl-U, etc.) causes ksh to immediately segfault and coredump. If you use Ctrl-V to input a control character literal, it doesn't crash on Ctrl-V, but the next character. Core dump is attached.

Ubuntu 12.04.1, ksh 93u-1.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ksh 93u-1
ProcVersionSignature: Ubuntu 3.2.0-32.51-generic 3.2.30
Uname: Linux 3.2.0-32-generic x86_64
ApportVersion: 2.0.1-0ubuntu15
Architecture: amd64
Date: Wed Dec 5 10:15:04 2012
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
MarkForUpload: True
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ksh
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Robert Irelan (rirelan) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ksh (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Kiick (9e9o1ko8b2f5xpiibgscjzlhug6x-759v2-0zxvj9hhx1hzo5xiyhxz186cr43t) wrote :

same problem
> echo ${.sh.version}
Version JM 93u 2011-02-08
Ubuntu 12.04 fully updated.

Revision history for this message
Phi (phi-debian) wrote :

Hi All,
I reported the same at debian (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720441)

For my day to day work I use

Tc$ /usr/bin/lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise

Tc$ uname -a
Linux phitc 3.5.0-37-generic #58~precise1-Ubuntu SMP Wed Jul 10 17:51:56 UTC 2013 i686 athlon i386 GNU/Linux

And I got the ksh93 core dump as well (i.e 32bits, while this initial post was about 64bits.)

As a fix I did an apt-get source ksh then build, (I was doing this in an attempt to fix it) and to my surprise, bugs goes away when build out of the box, so I replaced /bin/ksh93 with my newly built.

Cheers,
Phi

Revision history for this message
Phi (phi-debian) wrote :

Hi All,

I got a fix for this, how should I propose the fix upstream ?

Cheers,
Phi

Revision history for this message
Phi (phi-debian) wrote :

Hi All,

I provided a fix for debian
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720441

I guess it will gets down to ubuntu mint and al....

Cheers,
Phi

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

This appears to be fixed in the version from 13.04+

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

@Phi, You could attach a similar debdiff here to get this fix backported to Ubuntu. The only real difference would be in the changelog...

A page I find useful for this: http://packaging.ubuntu.com/html/traditional-packaging.html

Revision history for this message
Anuradha Weeraman (aweeraman) wrote :

Thank you for taking the time to report this bug. We have tried to recreate this on the latest release of Ubuntu, but cannot reproduce it. This bug is being marked as Invalid. If you believe the problem to still exist in the latest version of Ubuntu, please comment on why that is the case and change the bug status to NEW.

Changed in ksh (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.