From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <455B9666.8080604@domain.hid> Date: Wed, 15 Nov 2006 23:36:22 +0100 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Xenomai-help] Kernel crash during queue create/destroy References: <200611151121.51836.s.zimmermann@domain.hid> <200611151544.00429.s.zimmermann@domain.hid> <455B8016.2020605@domain.hid> <1163629342.4974.36.camel@domain.hid> In-Reply-To: <1163629342.4974.36.camel@domain.hid> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig31F66C67551F711937CBB4B6" Sender: jan.kiszka@domain.hid List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: rpm@xenomai.org Cc: xenomai@xenomai.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig31F66C67551F711937CBB4B6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Philippe Gerum wrote: > On Wed, 2006-11-15 at 22:01 +0100, Jan Kiszka wrote: >=20 >> /me unfortunately failed to reproduce your problem here. Instead, I >> found a regression in SVN head - different story for a different threa= d. >> >=20 > It's reproducible here. This bug triggers if you leave enough time > between queue creation and deletion for Linux to deal with its usual > business, like running workqueues... Additionally, this bug would not > trigger with different queue names passed to the creation routines. It > seems to be caused by out-of-sequence create/delete requests of /proc > entries relayed to the proc_fs subsystem, which does not perform any > sanity checks on the data it is submitted. >=20 Yes, that delay makes the difference. I just added a huge one (100 ticks), and now I get tones of this: > xenomai 2.2.4 timer-test > task shadow:0 > timer set mode:0 > task sleep:0 > testing XENOMAI q-functions > Bad page state in process 'maintask' > page:c10e8b20 flags:0x80000400 mapping:00000000 mapcount:0 count:0 > Trying to fix it up, but a reboot is needed > Backtrace: > show_trace+0x12/0x14 dump_stack+0x1c/0x1e > bad_page+0x49/0x73 free_hot_cold_page+0x68/0x13= d > free_hot_page+0xf/0x11 __free_pages+0x2e/0x39 > __vunmap+0x90/0xbc vfree+0x2e/0x30 > xnheap_destroy_mapped+0xe2/0x11b rt_queue_delet= e+0xb5/0xf2 [xeno_native] > __rt_queue_delete+0x4e/0x72 [xeno_native] losys= call_event+0xa3/0x145 > __ipipe_dispatch_event+0xac/0x16c __ipipe_sysca= ll_root+0x78/0x100 > system_call+0x20/0x38=20 Is this also what you see? Looks quite different on first sight. [Note: it's on a qemu box.] --------------enig31F66C67551F711937CBB4B6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFW5ZmniDOoMHTA+kRAscRAJwKLTwitR8ZImqNQQdF4BQKH5ITPwCeIvjB QYOJX4q9ajkk5RbZSQ1CTO8= =S9Me -----END PGP SIGNATURE----- --------------enig31F66C67551F711937CBB4B6--