2006-10-05 22:06:24

by C.Y.M

[permalink] [raw]
Subject: BUG: warning at fs/inotify.c:181 with linux-2.6.18

Since I updated to 2.6.18, I have had the following warnings in my syslog. Is
this a known problem? Better yet, is there a solution to this? I am running on
a i686 (Athlon XP) 32 bit cpu compiled under gcc-3.4.6.


Oct 5 08:27:31 sid kernel: BUG: warning at
fs/inotify.c:181/set_dentry_child_flags()
Oct 5 08:27:31 sid kernel: [<c0182a10>] set_dentry_child_flags+0x170/0x190
Oct 5 08:27:31 sid kernel: [<c0182adf>] remove_watch_no_event+0x5f/0x70
Oct 5 08:27:31 sid kernel: [<c0182b08>] inotify_remove_watch_locked+0x18/0x50
Oct 5 08:27:31 sid kernel: [<c01833dc>] inotify_rm_wd+0x6c/0xb0
Oct 5 08:27:31 sid kernel: [<c0183e98>] sys_inotify_rm_watch+0x38/0x60
Oct 5 08:27:31 sid kernel: [<c0102d8f>] syscall_call+0x7/0xb


Best Regards.


2006-10-06 01:45:31

by Nick Piggin

[permalink] [raw]
Subject: Re: BUG: warning at fs/inotify.c:181 with linux-2.6.18

C.Y.M wrote:
> Since I updated to 2.6.18, I have had the following warnings in my syslog. Is
> this a known problem? Better yet, is there a solution to this? I am running on
> a i686 (Athlon XP) 32 bit cpu compiled under gcc-3.4.6.
>
>
> Oct 5 08:27:31 sid kernel: BUG: warning at
> fs/inotify.c:181/set_dentry_child_flags()
> Oct 5 08:27:31 sid kernel: [<c0182a10>] set_dentry_child_flags+0x170/0x190
> Oct 5 08:27:31 sid kernel: [<c0182adf>] remove_watch_no_event+0x5f/0x70
> Oct 5 08:27:31 sid kernel: [<c0182b08>] inotify_remove_watch_locked+0x18/0x50
> Oct 5 08:27:31 sid kernel: [<c01833dc>] inotify_rm_wd+0x6c/0xb0
> Oct 5 08:27:31 sid kernel: [<c0183e98>] sys_inotify_rm_watch+0x38/0x60
> Oct 5 08:27:31 sid kernel: [<c0102d8f>] syscall_call+0x7/0xb

I don't think it is a known problem. Is it reproduceable? Any idea what
is making the inotify syscalls?

--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com

2006-10-06 02:20:27

by C.Y.M

[permalink] [raw]
Subject: Re: BUG: warning at fs/inotify.c:181 with linux-2.6.18

Nick Piggin wrote:
> C.Y.M wrote:
>> Since I updated to 2.6.18, I have had the following warnings in my
>> syslog. Is
>> this a known problem? Better yet, is there a solution to this? I am
>> running on
>> a i686 (Athlon XP) 32 bit cpu compiled under gcc-3.4.6.
>>
>>
>> Oct 5 08:27:31 sid kernel: BUG: warning at
>> fs/inotify.c:181/set_dentry_child_flags()
>> Oct 5 08:27:31 sid kernel: [<c0182a10>]
>> set_dentry_child_flags+0x170/0x190
>> Oct 5 08:27:31 sid kernel: [<c0182adf>] remove_watch_no_event+0x5f/0x70
>> Oct 5 08:27:31 sid kernel: [<c0182b08>]
>> inotify_remove_watch_locked+0x18/0x50
>> Oct 5 08:27:31 sid kernel: [<c01833dc>] inotify_rm_wd+0x6c/0xb0
>> Oct 5 08:27:31 sid kernel: [<c0183e98>] sys_inotify_rm_watch+0x38/0x60
>> Oct 5 08:27:31 sid kernel: [<c0102d8f>] syscall_call+0x7/0xb
>
> I don't think it is a known problem. Is it reproduceable? Any idea what
> is making the inotify syscalls?
>

The warning messages start about an hour or two after I boot into the 2.6.18
kernel. I am not doing anything on the machine when it happens. I don't see
any new processes starting up at that time either. As soon as I boot back to
2.6.17.13, there are no more problems. Also, the machine is not running X when
it occurs.

root@sid:~$ grep BUG /var/log/syslog
Oct 5 08:27:31 sid kernel: BUG: warning at
fs/inotify.c:181/set_dentry_child_flags()
Oct 5 11:46:36 sid kernel: BUG: warning at
fs/inotify.c:181/set_dentry_child_flags()
Oct 5 13:24:50 sid kernel: BUG: warning at
fs/inotify.c:181/set_dentry_child_flags()
Oct 5 15:17:55 sid kernel: BUG: warning at
fs/inotify.c:181/set_dentry_child_flags()
Oct 5 16:40:10 sid kernel: BUG: warning at
fs/inotify.c:181/set_dentry_child_flags()


Best Regards.

2006-10-14 17:40:07

by C.Y.M

[permalink] [raw]
Subject: Re: BUG: warning at fs/inotify.c:181 with linux-2.6.18

C.Y.M wrote:
> Nick Piggin wrote:
>> C.Y.M wrote:
>>> Since I updated to 2.6.18, I have had the following warnings in my
>>> syslog. Is
>>> this a known problem? Better yet, is there a solution to this? I am
>>> running on
>>> a i686 (Athlon XP) 32 bit cpu compiled under gcc-3.4.6.
>>>
>>>
>>> Oct 5 08:27:31 sid kernel: BUG: warning at
>>> fs/inotify.c:181/set_dentry_child_flags()
>>> Oct 5 08:27:31 sid kernel: [<c0182a10>]
>>> set_dentry_child_flags+0x170/0x190
>>> Oct 5 08:27:31 sid kernel: [<c0182adf>] remove_watch_no_event+0x5f/0x70
>>> Oct 5 08:27:31 sid kernel: [<c0182b08>]
>>> inotify_remove_watch_locked+0x18/0x50
>>> Oct 5 08:27:31 sid kernel: [<c01833dc>] inotify_rm_wd+0x6c/0xb0
>>> Oct 5 08:27:31 sid kernel: [<c0183e98>] sys_inotify_rm_watch+0x38/0x60
>>> Oct 5 08:27:31 sid kernel: [<c0102d8f>] syscall_call+0x7/0xb
>> I don't think it is a known problem. Is it reproduceable? Any idea what
>> is making the inotify syscalls?
>>
>
> The warning messages start about an hour or two after I boot into the 2.6.18
> kernel. I am not doing anything on the machine when it happens. I don't see
> any new processes starting up at that time either. As soon as I boot back to
> 2.6.17.13, there are no more problems. Also, the machine is not running X when
> it occurs.
>
> root@sid:~$ grep BUG /var/log/syslog
> Oct 5 08:27:31 sid kernel: BUG: warning at
> fs/inotify.c:181/set_dentry_child_flags()
> Oct 5 11:46:36 sid kernel: BUG: warning at
> fs/inotify.c:181/set_dentry_child_flags()
> Oct 5 13:24:50 sid kernel: BUG: warning at
> fs/inotify.c:181/set_dentry_child_flags()
> Oct 5 15:17:55 sid kernel: BUG: warning at
> fs/inotify.c:181/set_dentry_child_flags()
> Oct 5 16:40:10 sid kernel: BUG: warning at
> fs/inotify.c:181/set_dentry_child_flags()
>

This bug just happened again with 2.6.18.1. Has anyone else noticed this in
their logs? I would really like to make that error go away. Any Ideas? I do
not see anything that would cause this to happen.

Best Regards.

2006-10-14 17:56:34

by Michal Piotrowski

[permalink] [raw]
Subject: Re: BUG: warning at fs/inotify.c:181 with linux-2.6.18

On 06/10/06, Nick Piggin <[email protected]> wrote:
> C.Y.M wrote:
> > Since I updated to 2.6.18, I have had the following warnings in my syslog. Is
> > this a known problem? Better yet, is there a solution to this? I am running on
> > a i686 (Athlon XP) 32 bit cpu compiled under gcc-3.4.6.
> >
> >
> > Oct 5 08:27:31 sid kernel: BUG: warning at
> > fs/inotify.c:181/set_dentry_child_flags()
> > Oct 5 08:27:31 sid kernel: [<c0182a10>] set_dentry_child_flags+0x170/0x190
> > Oct 5 08:27:31 sid kernel: [<c0182adf>] remove_watch_no_event+0x5f/0x70
> > Oct 5 08:27:31 sid kernel: [<c0182b08>] inotify_remove_watch_locked+0x18/0x50
> > Oct 5 08:27:31 sid kernel: [<c01833dc>] inotify_rm_wd+0x6c/0xb0
> > Oct 5 08:27:31 sid kernel: [<c0183e98>] sys_inotify_rm_watch+0x38/0x60
> > Oct 5 08:27:31 sid kernel: [<c0102d8f>] syscall_call+0x7/0xb
>
> I don't think it is a known problem. Is it reproduceable?

It is a known problem.
http://www.ussg.iu.edu/hypermail/linux/kernel/0608.1/1209.html

> Any idea what
> is making the inotify syscalls?
>
> --
> SUSE Labs, Novell Inc.

Regards,
Michal

--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/)

2006-10-14 18:30:31

by C.Y.M

[permalink] [raw]
Subject: Re: BUG: warning at fs/inotify.c:181 with linux-2.6.18

Michal Piotrowski wrote:
> On 06/10/06, Nick Piggin <[email protected]> wrote:
>> C.Y.M wrote:
>> > Since I updated to 2.6.18, I have had the following warnings in my
>> syslog. Is
>> > this a known problem? Better yet, is there a solution to this? I am
>> running on
>> > a i686 (Athlon XP) 32 bit cpu compiled under gcc-3.4.6.
>> >
>> >
>> > Oct 5 08:27:31 sid kernel: BUG: warning at
>> > fs/inotify.c:181/set_dentry_child_flags()
>> > Oct 5 08:27:31 sid kernel: [<c0182a10>]
>> set_dentry_child_flags+0x170/0x190
>> > Oct 5 08:27:31 sid kernel: [<c0182adf>]
>> remove_watch_no_event+0x5f/0x70
>> > Oct 5 08:27:31 sid kernel: [<c0182b08>]
>> inotify_remove_watch_locked+0x18/0x50
>> > Oct 5 08:27:31 sid kernel: [<c01833dc>] inotify_rm_wd+0x6c/0xb0
>> > Oct 5 08:27:31 sid kernel: [<c0183e98>]
>> sys_inotify_rm_watch+0x38/0x60
>> > Oct 5 08:27:31 sid kernel: [<c0102d8f>] syscall_call+0x7/0xb
>>
>> I don't think it is a known problem. Is it reproduceable?
>
> It is a known problem.
> http://www.ussg.iu.edu/hypermail/linux/kernel/0608.1/1209.html
>

Thank you for the confirmation. Please include me in this thread if someone
finds the answer. This bug seems to occur very frequently on my machine with
2.6.18.1 so I have been forced to revert back to 2.6.17.13 until I can fix it.

Best Regards.

2006-10-15 07:49:38

by Nick Piggin

[permalink] [raw]
Subject: Re: BUG: warning at fs/inotify.c:181 with linux-2.6.18

C.Y.M wrote:
> Michal Piotrowski wrote:
>
>>On 06/10/06, Nick Piggin <[email protected]> wrote:
>>
>>>C.Y.M wrote:
>>>
>>>>Since I updated to 2.6.18, I have had the following warnings in my
>>>
>>>syslog. Is
>>>
>>>>this a known problem? Better yet, is there a solution to this? I am
>>>
>>>running on
>>>
>>>>a i686 (Athlon XP) 32 bit cpu compiled under gcc-3.4.6.
>>>>
>>>>
>>>>Oct 5 08:27:31 sid kernel: BUG: warning at
>>>>fs/inotify.c:181/set_dentry_child_flags()
>>>>Oct 5 08:27:31 sid kernel: [<c0182a10>]
>>>
>>>set_dentry_child_flags+0x170/0x190
>>>
>>>>Oct 5 08:27:31 sid kernel: [<c0182adf>]
>>>
>>>remove_watch_no_event+0x5f/0x70
>>>
>>>>Oct 5 08:27:31 sid kernel: [<c0182b08>]
>>>
>>>inotify_remove_watch_locked+0x18/0x50
>>>
>>>>Oct 5 08:27:31 sid kernel: [<c01833dc>] inotify_rm_wd+0x6c/0xb0
>>>>Oct 5 08:27:31 sid kernel: [<c0183e98>]
>>>
>>>sys_inotify_rm_watch+0x38/0x60
>>>
>>>>Oct 5 08:27:31 sid kernel: [<c0102d8f>] syscall_call+0x7/0xb
>>>
>>>I don't think it is a known problem. Is it reproduceable?
>>
>>It is a known problem.
>>http://www.ussg.iu.edu/hypermail/linux/kernel/0608.1/1209.html
>>
>
>
> Thank you for the confirmation. Please include me in this thread if someone
> finds the answer. This bug seems to occur very frequently on my machine with
> 2.6.18.1 so I have been forced to revert back to 2.6.17.13 until I can fix it.

I haven't got around to looking at it yet, sorry.

It does seem like my inotify scalability patch is involved, however it is
interesting that you cannot reproduce the problem in 2.6.17.13.

I probably won't get around to having a look at it for a while, but if you
would like to speed up the process you could try running a git bisect to
find which patch is making the error trigger for you.

--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com

2006-11-18 09:21:24

by C.Y.M

[permalink] [raw]
Subject: Re: BUG: warning at fs/inotify.c:181 with linux-2.6.18


>>
>> Thank you for the confirmation. Please include me in this thread if
>> someone
>> finds the answer. This bug seems to occur very frequently on my
>> machine with
>> 2.6.18.1 so I have been forced to revert back to 2.6.17.13 until I can
>> fix it.
>
> I haven't got around to looking at it yet, sorry.
>
> It does seem like my inotify scalability patch is involved, however it is
> interesting that you cannot reproduce the problem in 2.6.17.13.
>
> I probably won't get around to having a look at it for a while, but if you
> would like to speed up the process you could try running a git bisect to
> find which patch is making the error trigger for you.
>

I finally got around to try 2.6.18.2 and I still seem to have this problem. Has
anyone had a chance to make a patch for this yet?

Best Regards.