Your message dated Tue, 29 Dec 2015 20:36:08 +0000
with message-id <[email protected]>
and subject line Bug#742757: fixed in lfm 3.0-1
has caused the Debian Bug report #742757,
regarding lfm: crashes when showing infos about a file with a given long 
filename pattern
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
742757: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742757
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lfm
Version: 2.3-1
Severity: important


--- DESCRIPTION ---

lfm crashes when it has to show informations (pressing "i" on the file) about a 
file having this name pattern:
my_very_long_file_name_which_exceeds_the_terminal_width.(www.some-site.com)

in general, any file with a name in this form crashes it:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(zzz.xxx-ccc.vvv)

where the first part of the name (the "a"s) is a long string which exceeds the 
terminal width.


--- RESULTS ---

This is what i get in my terminal after the crash:

Traceback (most recent call last):
  File "/usr/bin/lfm", line 27, in <module>
    lfm_start(sys.argv)
  File "/usr/share/lfm/lfm/lfm.py", line 1155, in lfm_start
    path = curses.wrapper(main, prefs, paths1, paths2)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/share/lfm/lfm/lfm.py", line 1077, in main
    ret = app.run()
  File "/usr/share/lfm/lfm/lfm.py", line 209, in run
    ret = self.act_pane.manage_keys()
  File "/usr/share/lfm/lfm/lfm.py", line 804, in manage_keys
    ret = actions.do(self.act_tab, ch)
  File "/usr/share/lfm/lfm/actions.py", line 169, in do
    exec(act)
  File "<string>", line 1, in <module>
  File "/usr/share/lfm/lfm/actions.py", line 569, in file_info
    do_show_file_info(tab)
  File "/usr/share/lfm/lfm/actions.py", line 1202, in do_show_file_info
    show_info(tab, tab.sorted[tab.file_i])
  File "/usr/share/lfm/lfm/actions.py", line 1195, in show_info
    pyview.InternalView('Information about \'%s\'' % encode(file),  buf).run()
  File "/usr/share/lfm/lfm/pyview.py", line 109, in __init__
    self.init_curses()
  File "/usr/share/lfm/lfm/pyview.py", line 152, in init_curses
self.win_title.addstr(0, int((app.maxw-len(title))/2), title)
_curses.error: addstr() returned ERR


--- TO REPRODUCE ---

$ touch 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\(www.some-site.com\)
$ lfm
$ < Once in lfm, browse for the file and press "i" on it to show its 
informations >

I think the filename lenght may vary depending on the width of the terminal we 
are testing in.


--- WHAT I TRIED ---

i'll refer to this filename:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(www.some-site.com)

I tested the issue creating some files with different names, trying to exclude 
isolate the issue.
I couldn't come to a conclusion, or investigate more, since it has a very weird 
behaviour. For example:
- using the above filename, but followed by something like 
"(wwwwwwwwww.some-site.ccccccccccc)" doesn't crash it;
- using the above filename, but with no brackets and an underscore separating 
the a's string from the url part, crashes it;
- using the above filename, but with no brackets and an nothing separating the 
a's string from the url part, doesn't crash it;
- using the above filename, but with no hyphen, doesn't crash it;
- using the above filename, but with a shorter a's string, doesn't crash it;

I guess one should focus on the last part of the filename (the one including 
brackets, dots and hyphens)


I flagged this issue as "important" since it makes the software unusable, and 
there may be some more filename patterns affected by it.
Thanks for your nice work.

Bye.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.13-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lfm depends on:
ii  python          2.7.5-5
ii  python-support  1.0.15

lfm recommends no packages.

lfm suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: lfm
Source-Version: 3.0-1

We believe that the bug you reported is fixed in the latest version of
lfm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Echeverry <[email protected]> (supplier of updated lfm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 21 Dec 2015 15:28:44 -0500
Source: lfm
Binary: lfm
Architecture: source all
Version: 3.0-1
Distribution: unstable
Urgency: medium
Maintainer: Daniel Echeverry <[email protected]>
Changed-By: Daniel Echeverry <[email protected]>
Description:
 lfm        - simple but powerful file manager for the UNIX console
Closes: 588023 667527 694922 700274 727260 742757
Changes:
 lfm (3.0-1) unstable; urgency=medium
 .
   * New upstream release. (Closes: #727260, #742757, #667527,
      #694922, #700274, #588023)
   * debian/control
     + Change Homepage field
     + Remove python (>= 2.6.6-3~) in B-D-I field
     + Add python3-all in B-D-I field
     + Change X-Python-Version to X-Python3-Version
       now the code works with python3
     + Change ${python:Depends} to ${python3:Depends} in Depends
   * debian/copyright
     + Update source field
     + Extend copyright holder years
   * Remove lfm.docs file
   * Remove lfm.links file
   * debian/patches
     + Update ignore_COPYING.patch patch
     + Remove remove_install_changelog.patch patch
     + Add fix_interpreter.diff patch
       + Fix shebang
   * debian/rules
     + unexport LANG variables to prevent encoding error
     + Use dh-python helper and pybuild as buildsystem
       + export PYBUILDNAME variable
     + Remove override_dh_compress
     + Remove override_dh_auto_install
     + Add override_dh_installchangelogs to install upstream changelog
   * Update debian/watch file
Checksums-Sha1:
 668efd8adefa6e73b1d14fc7465d7b57f67b2745 1680 lfm_3.0-1.dsc
 a7ef8503c1a9b054ad64c2327173a02eb741389c 87341 lfm_3.0.orig.tar.gz
 b070037ba5211092fbac11708f05ced9956dae65 3812 lfm_3.0-1.debian.tar.xz
 bb92afc4870123a638b00985ef1f6f3282f9b72d 73186 lfm_3.0-1_all.deb
Checksums-Sha256:
 1876d0967ece84ea085c15e72418e70fa48997ad25449c9db03c065bd4636b15 1680 
lfm_3.0-1.dsc
 dcb9c3dc3122ed41bfb72ed2f03e41afa917d17b23ee8459371e7f39e9b888e7 87341 
lfm_3.0.orig.tar.gz
 2621beea0fbb2b0da068098dee56356f89ef7ccc8bb028d7222aeceec67f2324 3812 
lfm_3.0-1.debian.tar.xz
 4b82d8866650af960b086dd84937ec55c25be1ba89dc5dfa2032c9f2bae24c9f 73186 
lfm_3.0-1_all.deb
Files:
 3de2f03963023b3a550192ecabfda456 1680 utils optional lfm_3.0-1.dsc
 9c13c5fafcb1aecd43f51fa9b0278000 87341 utils optional lfm_3.0.orig.tar.gz
 d83fe874e02489fbcddaca855de7d84a 3812 utils optional lfm_3.0-1.debian.tar.xz
 f8df071045da7c6c701f3e8a3c05e379 73186 utils optional lfm_3.0-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJWgujoAAoJENX9/BVhaL9glsMQANPH2Fm2d4GL0ogwBIlL6OHF
KZcHevYu2NQw347m+VyQl6M9hNCC70LP8QxIHYYCb4i3EiWyCx1ngaO5kx8m2HbN
hXTAzVd1qzaLgRgXaBRHUQuxDH4XTmz7fy/709kwI3cyVBwuE0jlemAFUBa5At4A
2/bdqu4F6sJd2lPANg2KNmEqfsbD0DIFmBGragiK/Uc0b/w2dC70uQ/Xjk+GYXqg
LR7Jr+2kMjL4yYfi8yAu+179JTWAaMRRrkFc2e2uYAgDvES+zyXwcNF6Wi1CmvXo
tFhVwh8kxjmvyPiQgO8wM/99IQ0WGljwaQiOxc+jZnAgJgvbJ1YO0lV234CpnFfU
OjS4BRx8IzJL+n4k6RYV9cEwUg7u/XjztQNFkxAyx7mWRisRdBGHRMPBy8UQ6g1u
tx5G6Cr+ZSpbumpcwRXhNnWf1g1jlvQhoBy61d27xOkqrnDiJxmLbRS3t4mnlw/Y
eeXLL1LGvduVPc/NXm4XKefsau++HkfX6obZW5w7KGIeHRfEaBx28w9w5E0NV0JU
FEdTsCln3lAVA/9N63SJSMFq+RibPsF7Xn1fP+f8EpesxiXvSN7M6fOwvLhizGoW
4F24bwpGMdPRMES5PJp3pmAce3TrMneNrZFXzZgd/6r4DLS+MEJ8bKFdgeJ4shjT
kUKnI5NlDQ+VrSevnYPp
=mvz7
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to