Bug#420241: quota: error while getting quota: Success

2007-06-07 Thread Piotr Gasidlo
Hello,

I've got same problem. But I've do futher investigations. I tried both
kernels:

ii  linux-image-2.6.18-4-amd642.6.18.dfsg.1-12etch2   Linux 2.6.18 
image on AMD64
(from backports)
ii  linux-image-2.6.21-1-amd642.6.21-4~bpo.1  Linux 2.6.21 
image on AMD64

I running etch 4.0, 64-bit kernel.

Edquota segfaults, quota command results:

# quota -u 1500
quota: error while getting quota from /dev/sda7 for #1500 (id 1500): Success

I wrote simple program in perl to setup and check quota (using package
libquota-perl):

#v+
#!/usr/bin/perl

use Quota;
use Data::Dumper;

my $dev = Quota::getqcarg('/var/www');
Quota::setqlim($dev, 1500, 1000, 1000, 0, 0);
my @quota = Quota::query($dev, 1500);
print Dumper([EMAIL PROTECTED]);
#v-

And i get:
# perl q.pl 
$VAR1 = [
  0,
  1000,
  1000,
  0,
  0,
  0,
  0,
  0
];

Which is good result. So i think, that problem exists in quota/edquota tools, 
not in kernel.

-- 
Piotr 'QuakeR' Gasidło, BOFH @ pandora.barbara.eu.org
## sending lusers to /dev/null since 1998
# Waiting for tomorrow, for a little ray of light
### Waiting for tomorrow just to see your smile again


signature.asc
Description: Digital signature


Bug#420241: quota: error while getting quota: Success

2007-04-24 Thread Michael Meskes
reassign 420241 linux-image-2.6.18-4-amd64
thanks.

On Tue, Apr 24, 2007 at 12:34:02AM +0200, J.M.Roth wrote:
 I have now installed linux-image-2.6.18-4-486 and it works.
 
 I have also tried linux-image-2.6.20-1-486 from etch-backports, with
 which it worked too.

This makes be believe that the bug is in the amd64 kernel image. Thus
I'm reassigning the bug report to that package.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#420241: quota: error while getting quota: Success

2007-04-23 Thread Michael Meskes
On Sun, Apr 22, 2007 at 05:00:13PM +0200, J.M.Roth wrote:
 I have now recreated the quota files, the problem is still there.

From looking at the sources it seems that the message comes if reading
quota information for user web8 on device /dev/md2 yields 0 bytes but
no error, which certainly does not make sense.

 You mentioned trying another kernel, which one? Actually I am using the
 AMD64 kernel, but it's all still 32-bit here! AFAIK this AMD64 kernel is
 just a 32-bit kernel with optimizations for AMD64. Should I try the K7
 kernel instead?

I'm not usre which optimization will work on AMD64. If you can run a 486
version that's fine too. I'd also like to know whether the bug is still
present when using a 2.6.20 kernel from sid.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#420241: quota: error while getting quota: Success

2007-04-23 Thread J.M.Roth
I have now installed linux-image-2.6.18-4-486 and it works.

I have also tried linux-image-2.6.20-1-486 from etch-backports, with
which it worked too.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#420241: quota: error while getting quota: Success

2007-04-22 Thread Michael Meskes
On Sun, Apr 22, 2007 at 01:43:15AM +0200, J.M.Roth wrote:
 quota: error while getting quota from /dev/md2 for web8 (id 10008): Success
 
 However, this last message is not normal. Could it just be that my quota
 file is corrupt? But then why are the other tools working?

Yes, it could. Not sure why the other tools are working though,
especially with repquota using the same code as quota. Could you
recreate the quota files with quotacheck?

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#420241: quota: error while getting quota: Success

2007-04-22 Thread J.M.Roth
I have now recreated the quota files, the problem is still there.
I also have pulled the source and recompiled the quota stuff
(non-stripped), however since I cannot reproduce the segfaults (they
appear randomly), this will probably not help.

You mentioned trying another kernel, which one? Actually I am using the
AMD64 kernel, but it's all still 32-bit here! AFAIK this AMD64 kernel is
just a 32-bit kernel with optimizations for AMD64. Should I try the K7
kernel instead?



Michael Meskes wrote:
 On Sun, Apr 22, 2007 at 01:43:15AM +0200, J.M.Roth wrote:
 quota: error while getting quota from /dev/md2 for web8 (id 10008): Success

 However, this last message is not normal. Could it just be that my quota
 file is corrupt? But then why are the other tools working?
 
 Yes, it could. Not sure why the other tools are working though,
 especially with repquota using the same code as quota. Could you
 recreate the quota files with quotacheck?
 
 Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#420241: quota: error while getting quota: Success

2007-04-21 Thread Michael Meskes
On Sat, Apr 21, 2007 at 02:20:08AM +0200, J.M.Roth wrote:
 Since the upgrade from sarge to etch the following appears regularly in my 
 logs
 
 ...
 quota[3345]: segfault at 8100 rip 0804ba4d rsp 
 ff976c50 error 6
 quota[2647]: segfault at 8100 rip 0804ba4d rsp 
 ffe6a140 error 6
 quota[24912]: segfault at 8100 rip 0804ba4d rsp 
 ff843b20 error 6
 quota[17277]: segfault at 8100 rip 0804ba4d rsp 
 ffd117e0 error 6
 ...

You're getting a page fault during quota execution. Could you run quota
with debugging enabled so we can see where it segfaults? Also, could you
run a different kernel? I'd like to figure out if this is a quota bug
or even a kernel problem. Since this message seem to be x86_64 specific
other archs probably won't have the problem although the quota sources
are the same. 

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#420241: quota: error while getting quota: Success

2007-04-21 Thread J.M.Roth
To be honest, I haven't been able to reproduce the segfaults exactly.
Seems like sometimes they occur, while the rest of the time it just
returns the error ..: Success message.

It seems to still recognize which user/group exists and which one doesn't:
# ./quota -v -g web8xxx
quota: group web8xxx does not exist.
# ./quota -v -g web8
quota: error while getting quota from /dev/md2 for web8 (id 10008): Success

However, this last message is not normal. Could it just be that my quota
file is corrupt? But then why are the other tools working?

Regards,
Marc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#420241: quota: error while getting quota: Success

2007-04-20 Thread J.M.Roth
Package: quota
Version: 3.14-7
Severity: important


Since the upgrade from sarge to etch the following appears regularly in my logs

...
quota[3345]: segfault at 8100 rip 0804ba4d rsp 
ff976c50 error 6
quota[2647]: segfault at 8100 rip 0804ba4d rsp 
ffe6a140 error 6
quota[24912]: segfault at 8100 rip 0804ba4d rsp 
ff843b20 error 6
quota[17277]: segfault at 8100 rip 0804ba4d rsp 
ffd117e0 error 6
...

Since I use the quota command in several regularly running scripts this is no 
surprise. So, why is it not working? Running it manually gives:

# quota -g web8 -v
quota: error while getting quota from /dev/md2 for web8 (id 10008): Success

repquota and quotatool do actually work:

# repquota -a
*** Report for user quotas on device /dev/md2
Block grace time: 7days; Inode grace time: 7days
Block limitsFile limits
Userusedsofthard  graceused  soft  hard  grace
--
root  -- 30024068   0   0  23236 0 0
daemon--  16   0   0  4 0 0
[]

# quotatool -g web8 /dev/md2 -d
10008 /dev/md2 7616444 1536 3072 0 236735 0 0 0


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. 
Trouble? Contact [EMAIL PROTECTED] 

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages quota depends on:
ii  debconf  1.5.11  Debian configuration management sy
ii  e2fslibs 1.39+1.40-WIP-2006.11.14+dfsg-2 ext2 filesystem libraries
ii  libc62.3.6.ds1-13GNU C Library: Shared libraries
ii  libcomer 1.39+1.40-WIP-2006.11.14+dfsg-2 common error description library
ii  libldap2 2.1.30-13.3 OpenLDAP libraries
ii  libssl0. 0.9.8c-4SSL shared libraries
ii  libwrap0 7.6.dbs-13  Wietse Venema's TCP wrappers libra
ii  lsb-base 3.1-23.1Linux Standard Base 3.1 init scrip

quota recommends no packages.

-- debconf information:
  quota/supportemail:
  quota/supportphone:
  quota/rquota_setquota:
  quota/mailfrom:
  quota/signature:
  quota/subject:
* quota/run_warnquota: false
  quota/group_message:
  quota/cc:
  quota/cc_before:
  quota/group_signature:
  quota/message:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]