Package: tweak
Version: 3.01-5
Severity: normal

    % cd /tmp
    # make a nesting set of directories
    % unset x; for f in `seq 0 9` ; do x=${x}DeepDirectory$f ; mkdir $x ; x=$x/ 
; done
    % cd $x

    # make an 80 meg file of zeros
    % dd if=/dev/zero of=bar.dat ibs=1 count=81669539
    
    # running 'tweak bar.dat' in this dir works fine.
    # but not from the '/tmp' dir
    % cd -      # back to /tmp
    % tweak ${x}bar.dat ; echo $?
    Segmentation fault
    139
    
Attached is the output of:

    % strace -o tweak.log tweak ${x}bar.dat
    
Notes:

    1) Remove the string 'DeepDirectory' from the above nested dir maker
       and 'tweak' doesn't crash.
       
    2) 'tweak' doesn't crash with small files either; I
       haven't tested how big the file needs to be to crash it.
    
    3) Lowering 'bar.dat' through the nest, one directory at a time, 
       it crashes 'tweak' even down to 'DeepDirectory2', 
       but not in 'DeepDirectory1'.

Hope this helps...


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

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages tweak depends on:
ii  libc6                     2.7-9          GNU C Library: Shared libraries
ii  libncurses5               5.6+20080203-1 Shared libraries for terminal hand

tweak recommends no packages.

-- no debconf information

Attachment: tweak.log.gz
Description: GNU Zip compressed data

Reply via email to