Package: xtail
Version: 2.1-5
Severity: important

Hi,

I seem to have hit a wall here:

% xtail /opt/build-web/build-web/storage/logs/josip/
zsh: segmentation fault (core dumped)  xtail 
/opt/build-web/build-web/storage/logs/josip/

Kernel logs at the time things like:

[99470.526562] traps: xtail[15506] general protection ip:4021ed sp:7fff9162b1f0 
error:0 in xtail[400000+4000]

A DEB_BUILD_OPTIONS=debug build says:

% echo bt | gdb /tmp/xtail-2.1/xtail core
Reading symbols from /tmp/xtail-2.1/xtail...done.
[New LWP 15506]
Core was generated by `/tmp/xtail-2.1/xtail 
/opt/build-web/build-web/storage/logs/josip/'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000000004021ed in scan_directory (dirname=<optimized out>) at 
miscfuncs.c:90
90              for (i = List_file->num_entries, elist=List_file->list ; i > 0 
; --i, ++elist) {
(gdb) bt
#0  0x00000000004021ed in scan_directory (dirname=<optimized out>) at 
miscfuncs.c:90
#1  0x000000000040180c in main (argc=<optimized out>, argv=0x7fff9162b4f8) at 
xtail.c:72

It actually doesn't crash with an expanded wildcard on the same directory,

% xtail /opt/build-web/build-web/storage/logs/josip/*

In there, Ctrl+C says:

currently watching:  408 files  0 dirs  0 unknown entries

But I wanted it specifically for the advertized functionality of not having
to have a fixed list of files to monitor, so this bug makes the program
useless to me.

The machine it's running on is an Ubuntu 14.04 LTS VM (512 MB RAM) ane
the directory is on an ext4 filesystem.

Let me know if there's anything else I can do to help.

Please fix this. TIA.

-- 
     2. That which causes joy or happiness.

Reply via email to