Bug 426107 - sigsegv when displaying non-existing file after short file
Summary: sigsegv when displaying non-existing file after short file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: less
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Zdenek Prikryl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-18 17:05 UTC by Petr Machata
Modified: 2015-05-05 01:33 UTC (History)
1 user (show)

Fixed In Version: 406-13.fc8
Clone Of:
Environment:
Last Closed: 2007-12-20 20:15:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
ltrace of the command (160.25 KB, application/octet-stream)
2007-12-18 17:05 UTC, Petr Machata
no flags Details

Description Petr Machata 2007-12-18 17:05:39 UTC
Description of problem:
When you have less display a file that fits to single screen, and a non-existing
file, less sigsegvs when you request the second file be displayed.

Version-Release number of selected component (if applicable):
less-406-12.fc8

How reproducible:
Consistently.

Steps to Reproduce:
$ ls -ls vile-9.5/w32ole.rc foo
ls: cannot access foo: No such file or directory
8 -rw-r--r-- 1 petr petr 45 1998-11-05 01:42 vile-9.5/w32ole.rc
$ less vile-9.5/w32ole.rc foo
<press :n>
  
Actual results:
Segmentation fault.

Expected results:
"File foo not found." or something like that.

I will attach the output of ltrace.

Comment 1 Petr Machata 2007-12-18 17:05:39 UTC
Created attachment 289903 [details]
ltrace of the command

Comment 2 Fedora Update System 2007-12-20 20:15:47 UTC
less-406-13.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.