Debian Bug report logs - #414268
aide: syntax errors tell wrong line number

version graph

Package: aide; Maintainer for aide is Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>; Source for aide is src:aide.

Reported by: Marc Schiffbauer <marc@schiffbauer.net>

Date: Sat, 10 Mar 2007 12:51:04 UTC

Severity: normal

Tags: confirmed, upstream

Found in version aide/0.13.1-2

Forwarded to https://sourceforge.net/tracker/index.php?func=detail&aid=1685090&group_id=86976&atid=581579

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#414268; Package aide. Full text and rfc822 format available.

Acknowledgement sent to Marc Schiffbauer <marc@schiffbauer.net>:
New Bug report received and forwarded. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Marc Schiffbauer <marc@schiffbauer.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: aide: syntax errors tell wrong line number
Date: Sat, 10 Mar 2007 13:48:25 +0100
Package: aide
Version: 0.13.1-2
Severity: normal


For example I got this message:
linux:/etc/aide# aide -D -c /var/lib/aide/aide.conf.autogenerated
44:syntax error:(
44:Error while reading configuration:(
Configuration error

Correct would be "45". Look here:

linux:/etc/aide# nl -ba -nln /var/lib/aide/aide.conf.autogenerated | grep "^4[1-9] "
41
42
43
44
45      (|/srv/chroots/build|/srv/chroots/db-mysql|/srv/chroots/www)/var/log/acpid$ Logs
46      @@{CHROOTS}/var/log/acpid\.1$ RotatedLogs
47      @@{CHROOTS}/var/log/acpid\.2\.gz$ RotatedLogs+ANF
48      @@{CHROOTS}/var/log/acpid\.3\.gz$ RotatedLogs
49      @@{CHROOTS}/var/log/acpid\.4\.gz$ RotatedLogs+ARF



-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.3-grsec
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages aide depends on:
ii  debconf [debconf 1.5.11                  Debian configuration management sy
ii  liblockfile1     1.06.1                  NFS-safe locking library, includes
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii  ucf              2.0020                  Update Configuration File: preserv

Versions of packages aide recommends:
ii  cron                          3.0pl1-100 management of regular background p

-- debconf information:
* aide/aideinit: false
* aideinit/copynew: true
  aideinit/overwritenew: true
  aide/newlibdir: false



Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#414268; Package aide. Full text and rfc822 format available.

Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #10 received at 414268@bugs.debian.org (full text, mbox):

From: Marc Haber <mh+debian-packages@zugschlus.de>
To: Marc Schiffbauer <marc@schiffbauer.net>, 414268@bugs.debian.org
Subject: Re: [Pkg-aide-maintainers] Bug#414268: aide: syntax errors tell wrong line number
Date: Sat, 10 Mar 2007 15:40:43 +0100
On Sat, Mar 10, 2007 at 01:48:25PM +0100, Marc Schiffbauer wrote:
> For example I got this message:
> linux:/etc/aide# aide -D -c /var/lib/aide/aide.conf.autogenerated
> 44:syntax error:(
> 44:Error while reading configuration:(
> Configuration error
> 
> Correct would be "45".

That depends on your point of view. Aide begins counting with line
zero, IIRC.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835



Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#414268; Package aide. Full text and rfc822 format available.

Acknowledgement sent to Marc Schiffbauer <marc@schiffbauer.net>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #15 received at 414268@bugs.debian.org (full text, mbox):

From: Marc Schiffbauer <marc@schiffbauer.net>
To: Marc Haber <mh+debian-packages@zugschlus.de>
Cc: 414268@bugs.debian.org
Subject: Re: [Pkg-aide-maintainers] Bug#414268: aide: syntax errors tell wrong line number
Date: Sat, 10 Mar 2007 17:25:16 +0100
* Marc Haber schrieb am 10.03.07 um 15:40 Uhr:
> On Sat, Mar 10, 2007 at 01:48:25PM +0100, Marc Schiffbauer wrote:
> > For example I got this message:
> > linux:/etc/aide# aide -D -c /var/lib/aide/aide.conf.autogenerated
> > 44:syntax error:(
> > 44:Error while reading configuration:(
> > Configuration error
> > 
> > Correct would be "45".
> 
> That depends on your point of view. Aide begins counting with line
> zero, IIRC.

Maybe, but not a human... and this message is for a human, right?

I think fixing this would increase usability. Any other parser that
I know of points me to the line number where the first line is
number 1 not 0.



>
> Greetings
> Marc

dito

-- 
8AAC 5F46 83B4 DB70 8317  3723 296C 6CCA 35A6 4134



Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#414268; Package aide. Full text and rfc822 format available.

Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #20 received at 414268@bugs.debian.org (full text, mbox):

From: Marc Haber <mh+debian-packages@zugschlus.de>
To: Marc Schiffbauer <marc@schiffbauer.net>, 414268@bugs.debian.org, 414268-submitter@bugs.debian.org
Cc: Marc Haber <mh+debian-packages@zugschlus.de>
Subject: Re: Bug#414268: aide: syntax errors tell wrong line number
Date: Wed, 21 Mar 2007 12:15:01 +0100
package aide
tags #414268 confirmed upstream
forwarded #414268 https://sourceforge.net/tracker/index.php?func=detail&aid=1685090&group_id=86976&atid=581579
thanks

On Sat, Mar 10, 2007 at 01:48:25PM +0100, Marc Schiffbauer wrote:
> For example I got this message:
> linux:/etc/aide# aide -D -c /var/lib/aide/aide.conf.autogenerated
> 44:syntax error:(
> 44:Error while reading configuration:(
> Configuration error
> 
> Correct would be "45".

I can confirm this. Also, I can confirm that the line number is
correct when the forced error is somewhere in a macro definition, so
it is a clear bug.

Thanks for spotting this.

Forwarded upstream.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835



Tags added: confirmed, upstream Request was from Marc Haber <mh+debian-packages@zugschlus.de> to control@bugs.debian.org. (Wed, 21 Mar 2007 11:18:17 GMT) Full text and rfc822 format available.

Noted your statement that Bug has been forwarded to https://sourceforge.net/tracker/index.php?func=detail&aid=1685090&group_id=86976&atid=581579. Request was from Marc Haber <mh+debian-packages@zugschlus.de> to control@bugs.debian.org. (Wed, 21 Mar 2007 11:18:18 GMT) Full text and rfc822 format available.

Message sent on to Marc Schiffbauer <marc@schiffbauer.net>:
Bug#414268. Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 03:57:00 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.