Skip to contentSkip to conversation

Another panic!

DISCUSSION T�rnqvist 2 participants 8 messages Nov 21, 2004 – Nov 23, 2004 4 messages not in the archive

lore
Share & tools
lore

T�rnqvist

author
#0 lore raw

Hi!

I got weirdass segfaults and hangs, so I thought I'd reboot the all-debug version of -cko3 I have around. However, I saw the following:
(Reiser4 for 2.6.9 as merged by Piotr Neuman, afaik)

Nov 21 17:55:23 shrike -- MARK --
Nov 21 18:07:13 shrike kernel: 
Nov 21 18:07:14 shrike kernel: WARNING: Found but not happy: 2
Nov 21 18:07:14 shrike kernel: reiser4[ent:hda2!(175)]: jnode_lock_parent_coord 
(fs/reiser4/flush.c:3093)[nikita-3178]:
Nov 21 18:07:14 shrike kernel: WARNING: Found but not happy: 2

That went obviously on for quite a while:

Nov 21 18:09:06 shrike kernel: WARNING: Found but not happy: 2
Nov 21 18:09:07 shrike kernel: reiser4[ent:hda2!(175)]: jnode_lock_parent_coord 
(fs/reiser4/flush.c:3093)[nikita-3178]:
Nov 21 18:17:18 shrike syslogd 1.4.1#16: restart.

So with the debug kernel I got this:

shrike kernel: reiser4 panicked cowardly: assertion failed: extent_get_start(ext) == extent_get_start(&uf_coord->extension.extent.extent)

And in the logs:

(Added newlines for ease of reading, otherwise just as it came)

Nov 21 18:24:08 shrike kernel: reiser4[http(5264)]: ext_by_ext_coord (fs/reiser4 /plugin/item/extent_file_ops.c:26)[vs-1650]:
Nov 21 18:24:08 shrike kernel: 0xc01fd1b0 0xc01f97cb 0xc01f94e5 0xc028ac8a 
Nov 21 18:24:08 shrike kernel: code: -2 at fs/reiser4/search.c:1214
Nov 21 18:24:08 shrike kernel: reiser4 panicked cowardly: assertion failed: extent_get_start(ext) == extent_get_start(&uf_coord->extension.extent.extent)
Nov 21 18:24:08 shrike kernel: context: trace_flags: 0
Nov 21 18:24:08 shrike kernel: pid: 5264, comm: http
Nov 21 18:24:08 shrike kernel: ^Ilock stack:
Nov 21 18:24:08 shrike kernel: .... nr_signaled 0
Nov 21 18:24:08 shrike kernel: .... curpri low
Nov 21 18:24:08 shrike kernel: .... current locks:
Nov 21 18:24:08 shrike kernel: ...... write: 1455893
Nov 21 18:24:08 shrike kernel: ^Iatom: refcount: 2 id: 2786 flags: 0 txnh_count: 1 capture_count: 9 stage: 1 start: 87972, flushed: 0
Nov 21 18:24:08 shrike kernel: ------------[ cut here ]------------
Nov 21 18:24:08 shrike kernel: kernel BUG at fs/reiser4/debug.c:131!
Nov 21 18:24:08 shrike kernel: invalid operand: 0000 [#1]
Nov 21 18:24:08 shrike kernel: PREEMPT DEBUG_PAGEALLOC
Nov 21 18:24:08 shrike kernel: Modules linked in: fglrx lp snd_bt87x ohci1394

ieee1394 snd_emu10k1 snd_rawmidi snd_pcm snd_timer snd_seq_device snd_ac97_codec snd_page_alloc snd_util_mem snd_hwdep snd soundcore parport_pc parport evdev tun iptable_nat ip_conntrack ip_tables uhci_hcd usbcore tuner tda9887 msp3400 bttv video_buf firmware_class i2c_algo_bit v4l2_common btcx_risc videodev i2c_dev i2c_core amd_k7_agp agpgart nvram ide_cd cdrom md5 des blowfish oprofile msr cpuid

Nov 21 18:24:08 shrike kernel: CPU:    0
Nov 21 18:24:08 shrike kernel: EIP:    0060:[reiser4_do_panic+517/688]    Tainted: P   VLI
Nov 21 18:24:08 shrike kernel: EFLAGS: 00010246   (2.6.9-cko3debug) 
Nov 21 18:24:08 shrike kernel: EIP is at reiser4_do_panic+0x205/0x2b0
Nov 21 18:24:08 shrike kernel: eax: 00000000   ebx: c0607ee0   ecx: c0607ee0   edx: c0607ee0
Nov 21 18:24:08 shrike kernel: esi: cf606000   edi: cf607cf4   ebp: cf607bec   esp: cf607bd8
Nov 21 18:24:08 shrike kernel: ds: 007b   es: 007b   ss: 0068
Nov 21 18:24:08 shrike kernel: Process http (pid: 5264, threadinfo=cf606000 task=c0c5bab0)
Nov 21 18:24:08 shrike kernel: Stack: c048f900 c0607a80 000004be 05560a12 05560a12 cf607c2c c0263328 c0476858 
Nov 21 18:24:08 shrike kernel:        c049d520 0000001a c0288d77 cf607c14 cf607cf4 cf607c24 cf607cb4 d5c65000 
Nov 21 18:24:08 shrike kernel:        d0edbed8 cf607d14 cf606000 00000000 cf607cf4 cf607c64 c0265cc3 00000003 
Nov 21 18:24:09 shrike kernel: Call Trace:
Nov 21 18:24:09 shrike kernel:  [show_stack+122/144] show_stack+0x7a/0x90
Nov 21 18:24:09 shrike kernel:  [show_registers+333/432] show_registers+0x14d/0x1b0
Nov 21 18:24:09 shrike kernel:  [die+240/384] die+0xf0/0x180
Nov 21 18:24:09 shrike kernel:  [do_invalid_op+231/240] do_invalid_op+0xe7/0xf0
Nov 21 18:24:09 shrike kernel:  [error_code+45/56] error_code+0x2d/0x38
Nov 21 18:24:09 shrike kernel:  [coord_extension_is_ok+552/1152] coord_extension_is_ok+0x228/0x480
Nov 21 18:24:09 shrike kernel:  [make_extent+547/960] make_extent+0x223/0x3c0
Nov 21 18:24:09 shrike kernel:  [capture_extent+275/1824] capture_extent+0x113/0x720
Nov 21 18:24:09 shrike kernel:  [find_or_create_extent+363/640] find_or_create_extent+0x16b/0x280
Nov 21 18:24:09 shrike kernel:  [shorten_file+355/848] shorten_file+0x163/0x350
Nov 21 18:24:09 shrike kernel:  [truncate_file_body+48/64] truncate_file_body+0x30/0x40
Nov 21 18:24:09 shrike kernel:  [setattr_truncate+114/496] setattr_truncate+0x72/0x1f0
Nov 21 18:24:09 shrike kernel:  [setattr_unix_file+47/80] setattr_unix_file+0x2f/0x50
Nov 21 18:24:09 shrike kernel:  [reiser4_setattr+189/592] reiser4_setattr+0xbd/0x250
Nov 21 18:24:09 shrike kernel:  [notify_change+419/480] notify_change+0x1a3/0x1e0
Nov 21 18:24:09 shrike kernel:  [do_truncate+89/144] do_truncate+0x59/0x90
Nov 21 18:24:09 shrike kernel:  [sys_ftruncate+235/352] sys_ftruncate+0xeb/0x160Nov 21 18:24:09 shrike kernel:  [sysenter_past_esp+82/113] sysenter_past_esp+0x52/0x71
Nov 21 18:24:09 shrike kernel: Code: d2 0f 84 4e ff ff ff 8b 00 39 c8 0f 85 44 ff ff ff 39 42 04 0f 85 3b ff ff ff b8 00 e0 ff ff 21 e0 ff 48 14 8b 40 08 a8 08 75 1c <0f> 0b 83 00 6e 68 47 c0 c7 04 24 7c 64 47 c0 c7 44 24 04 80 7a
Nov 21 18:27:31 shrike kernel:  <1>Unable to handle kernel paging request at virtual address cf607e50
Nov 21 18:27:31 shrike kernel:  printing eip:

And there it ended, with no eip printed below;

Nov 21 18:29:17 shrike syslogd 1.4.1#16: restart.

Any help is appreciated; thanks!

Signature · 1 line
mjt
author
#1 lore raw
Quoted 2 lines · Markus Törnqvist
Nov 21 18:27:31 shrike kernel:  <1>Unable to handle kernel paging request at virtual address cf607e50
Nov 21 18:27:31 shrike kernel:  printing eip:

Just for the record, seems to be totally reproducible; This time I didn't get any info out of it before it totally locked.

Except for this:

Nov 21 19:28:21 shrike kernel: reiser4[http(12259)]: ext_by_ext_coord (fs/reiser4/plugin/item/extent_file_ops.c:26)[vs-1650]:

Hope there's a cure for this :P

Thanks!

Signature · 1 line
mjt
author
#2 lore raw
Quoted 3 lines · Markus Törnqvist

Just for the record, seems to be totally reproducible; This time I didn't get any info out of it before it totally locked.

I fired up 2.6.10-rc2-mm2 for shits and giggles and see what I got:

Nov 21 21:45:11 shrike kernel: ------------[ cut here ]------------
Nov 21 21:45:11 shrike kernel: kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:58!
Nov 21 21:45:11 shrike kernel: invalid operand: 0000 [#1]
Nov 21 21:45:11 shrike kernel: PREEMPT
Nov 21 21:45:11 shrike kernel: Modules linked in: lp ohci1394 ieee1394 snd_emu10k1 snd_rawmidi snd_seq_device snd_ac97_codec snd_pcm snd_timer snd_page_alloc snd_util_mem snd_hwdep snd soundcore i2c_viapro parport_pc parport evdev tun iptable_nat ip_conntrack ip_tables uhci_hcd usbcore tuner tda9887 msp3400 bttv video_buf firmware_class i2c_algo_bit v4l2_common btcx_risc videodev i2c_dev i2c_core

amd_k7_agp agpgart nvram ide_cd md5 des blowfish oprofile msr cpuid

Nov 21 21:45:11 shrike kernel: CPU:    0
Nov 21 21:45:11 shrike kernel: EIP:    0060:[get_nonexclusive_access+38/48]   Not tainted VLI
Nov 21 21:45:11 shrike kernel: EFLAGS: 00010286   (2.6.10-rc2-mm2)
Nov 21 21:45:11 shrike kernel: EIP is at get_nonexclusive_access+0x26/0x30
Nov 21 21:45:11 shrike kernel: eax: d985bf30   ebx: d9a16690   ecx: dcb76160   edx: d9a16638
Nov 21 21:45:11 shrike kernel: esi: d9a16660   edi: d9a16638   ebp: dacc0544   esp: d985bcb0
Nov 21 21:45:11 shrike kernel: ds: 007b   es: 007b   ss: 0068
Nov 21 21:45:11 shrike kernel: Process apt-get (pid: 5628, threadinfo=d985a000 task=dcf13560)
Nov 21 21:45:11 shrike kernel: Stack: c01f539a b712c000 00000000 00000000 00000000 00000000 00000000 00000000
Nov 21 21:45:11 shrike kernel:        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Nov 21 21:45:11 shrike kernel:        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Nov 21 21:45:11 shrike kernel: Call Trace:
Nov 21 21:45:11 shrike kernel:  [unix_file_filemap_nopage+90/176] unix_file_filemap_nopage+0x5a/0xb0
Nov 21 21:45:11 shrike kernel:  [do_no_page+179/784] do_no_page+0xb3/0x310
Nov 21 21:45:11 shrike kernel:  [__wait_on_bit_lock+64/96] __wait_on_bit_lock+0x40/0x60
Nov 21 21:45:11 shrike kernel:  [handle_mm_fault+190/352] handle_mm_fault+0xbe/0x160
Nov 21 21:45:11 shrike kernel:  [__follow_page+155/192] __follow_page+0x9b/0xc0
Nov 21 21:45:11 shrike kernel:  [get_user_pages+290/896] get_user_pages+0x122/0x380
Nov 21 21:45:11 shrike kernel:  [reiser4_get_user_pages+135/176] reiser4_get_user_pages+0x87/0xb0
Nov 21 21:45:11 shrike kernel:  [read_unix_file+612/640] read_unix_file+0x264/0x280
Nov 21 21:45:11 shrike kernel:  [reiser4_getattr+94/176] reiser4_getattr+0x5e/0xb0
Nov 21 21:45:11 shrike kernel:  [reiser4_read+97/144] reiser4_read+0x61/0x90
Nov 21 21:45:11 shrike kernel:  [sys_fstat64+43/48] sys_fstat64+0x2b/0x30
Nov 21 21:45:11 shrike kernel:  [vfs_read+164/304] vfs_read+0xa4/0x130
Nov 21 21:45:11 shrike kernel:  [sys_read+71/128] sys_read+0x47/0x80
Nov 21 21:45:11 shrike kernel: Code: 0f 00 00 c3 90 89 c2 b8 00 e0 ff ff 21 e0 8b 00 8b 80 b8 04 00 00 8b 40 3c 8b 48 08 85 c9 75 0b 89 d0 ff 00 0f 88 a3 0f 00 00 c3 <0f> 0b 3a 00 00 32 3c c0 eb eb ba ff ff ff ff 0f c1 10 0f 88 98

Then I did it again and this is just the output on the screen:
(At least as far as I could quickly copypaste it in ;)

kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:58! invalid operand: 0000 [#2]
PREEMPT

Modules linked in: lp ohci1394 ieee1394 snd_emu10k1 snd_rawmidi snd_seq_device

snd_ac97_codec snd_pcm snd_timer snd_page_alloc snd_util_mem snd_hwdep snd soundcore i2c_viapro parport_pc parport evdev tun iptable_nat ip_conntrack ip_tables uhci_hcd usbcore tuner tda9887 msp3400 bttv video_buf firmware_class i2c_algo_bit v4l2_common btcx_risc videodev i2c_dev i2c_core amd_k7_agp agpgart nvram ide_cd md5 des blowfish oprofile msr cpuid

CPU:    0
EIP:    0060:[<c01f64b6>]    Not tainted VLI
EFLAGS: 00010286   (2.6.10-rc2-mm2)

EIP is at get_nonexclusive_access+0x26/0x30
eax: d9b55f30 ebx: d9a16690 ecx: dcb76160 edx: d9a16638
esi: d9a16660 edi: d9a16638 ebp: db3ecb74 esp: d9b55cb0
ds: 007b es: 007b ss: 0068
Process apt-get (pid: 5694, threadinfo=d9b54000 task=dcf13560)

Stack: c01f539a b712c000 00000000 00000000 00000000 00000000 00000000 00000000
       00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
       00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Call Trace:

 [<c01f539a>] unix_file_filemap_nopage+0x5a/0xb0
 [<c0142423>] do_no_page+0xb3/0x310
 [<c014284e>] handle_mm_fault+0xbe/0x160
 [<c0140f4b>] __follow_page+0x9b/0xc0
 [<c01410d2>] get_user_pages+0x122/0x380
 [<c01f49a7>] reiser4_get_user_pages+0x87/0xb0
 [<c01f4f54>] read_unix_file+0x264/0x280
 [<c01cd42e>] reiser4_getattr+0x5e/0xb0
 [<c01cdb81>] reiser4_read+0x61/0x90
 [<c0159b8b>] sys_fstat64+0x2b/0x30
 [<c0150694>] vfs_read+0xa4/0x130
 [<c0150977>] sys_read+0x47/0x80
 [<c0102f0d>] sysenter_past_esp+0x52/0x71
Code: 0f 00 00 c3 90 89 c2 b8 00 e0 ff ff 21 e0 8b 00 8b 80 b8 04
 00 00 8b 40 3c 8b 48 08 85 c9 75 0b 89 d0 ff 00 0f 88 a3 0f 00 00
 c3 <0f> 0b 3a 00 00 32 3c c0 eb eb ba ff ff ff ff 0f c1 10 0f 88
 98
 Segmentation fault
author
#7 lore raw
In reply to a message not in the archive

I'm setting the Cc to the list, these questions may be relevant to other people with the same issues and I think they should probably reply as well :)

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

I do an apt-get source --build crystalspace (but some others on the list said they used apt-get update, which I haven't tested)

Anyway, zam said this should be fixed already in -rc2-mm2, but not for me it wasn't; I just need to get my second lan cable back and do a netconsole dump later.

was reiser4 debug "on"?

At first no, that's when I got:

Nov 21 18:07:14 shrike kernel: WARNING: Found but not happy: 2
Nov 21 18:07:14 shrike kernel: reiser4[ent:hda2!(175)]: jnode_lock_parent_coord 
(fs/reiser4/flush.c:3093)[nikita-3178]:
Nov 21 18:07:14 shrike kernel: WARNING: Found but not happy: 2
Nov 21 18:07:14 shrike kernel: reiser4[ent:hda2!(175)]: jnode_lock_parent_coord 

(fs/reiser4/flush.c:3093)[nikita-3178]:

And so on

With debug:

Nov 21 21:45:11 shrike kernel: kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:58!
Quoted 3 lines

sorry, forgot to ask the following:
what gcc and glibc version do you use for building kernel and apt-get? how much ram do you use?

ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries and Timezone

gcc version 3.3.5 (Debian 1:3.3.5-2)

I have 215MB of ram and about equally swap, but swap is seldom used because of -ck's mapped watermark

I didn't build apt-get myself, but if this helps:

mjt@shrike:~$ ldd `which apt-get`
                libapt-pkg-libc6.3-5.so.3.3 =>
/usr/lib/libapt-pkg-libc6.3-5.so.3.3 (0xb7f4f000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7e94000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e71000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e68000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d2d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000)

Thanks!

PS.
I'll try to get the extra lan cable back today and do a better check..

Signature · 1 line
mjt
author
#8 lore raw
Quoted 3 lines · Markus Törnqvist
Nov 21 21:45:11 shrike kernel: kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:58!

http://mjt.nysv.org/reiser/2004.11.22.forensics/

The first two files are from something vs sent me.

As it says on the bottom, I couldn't re-crash 2.6.10-rc2-mm2, but I'm still FAIRLY sure I saw it crash earlier-on :) Unless I booted the wrong kernel :)

Well, anyway, -rc2-mm2 seems to work better, but Cal had some issues? How did it go with the alchemy?

Thanks!

Signature · 1 line
mjt
#9 lore raw

Hello

Quoted 6 lines · Markus TЖrnqvist
Quoted 3 lines · Markus Törnqvist
Nov 21 21:45:11 shrike kernel: kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:58!

http://mjt.nysv.org/reiser/2004.11.22.forensics/

The attached should fix a problem #01.

Quoted 11 lines

The first two files are from something vs sent me.

As it says on the bottom, I couldn't re-crash 2.6.10-rc2-mm2, but I'm still FAIRLY sure I saw it crash earlier-on :) Unless I booted the wrong kernel :)

Well, anyway, -rc2-mm2 seems to work better, but Cal had some issues? How did it go with the alchemy?

Thanks!

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/11/23 14:07:34+03:00 [email protected]
# read_unix_file: missing calls to txn_restart() are added
#

# plugin/file/file.c
#   2004/11/23 14:07:31+03:00 [email protected] +4 -1
#   read_unix_file: missing calls to txn_restart() are added
# 
diff -Nru a/plugin/file/file.c b/plugin/file/file.c
--- a/plugin/file/file.c	2004-11-23 14:45:34 +03:00
+++ b/plugin/file/file.c	2004-11-23 14:45:34 +03:00
@@ -1741,6 +1741,8 @@
 	while (left > 0) {
 		size_t to_read;		

+ txn_restart_current();
+
size = i_size_read(inode);
if (*off >= size)
/* position to read from is past the end of file */
@@ -1774,7 +1776,6 @@
if (user_space)
reiser4_put_user_pages(pages, nr_pages);
drop_nonexclusive_access(uf_info);
- txn_restart_current();

if (read < 0) {
result = read;
@@ -1974,6 +1975,8 @@

drop_nonexclusive_access(unix_file_inode_data(inode)); up_read(&reiser4_inode_data(inode)->coc_sem);
+
+ txn_restart_current();

reiser4_exit_context(&ctx);
return page;

author
#10 lore raw
Quoted 2 lines · Vladimir Saveliev

The attached should fix a problem #01.

Thank you!

It did, well, at least I tried it once and it did :)

I'm recompiling now without as much debug in it.

I also checked with patch --dry-run that it would apply on -rc2-mm2, is it possible that it fixes those issues as well?

I assume it'll be in -rc2-mm4?

Thanks again!

Signature · 1 line
mjt
author
#11 lore raw
Quoted 3 lines · Markus Törnqvist

It did, well, at least I tried it once and it did :)

Uhh-uh, well, there were problems; some dead dpkg processes...

So there seems to be something I'm not getting.

I'm afraid I didn't take up the notices about the files having an unexpected state (3), actually the file in question was the file list of xprt-common, somewhere in /var/, and lessing it gave an Input/Output Error...

Anyway, now doing an fsck, this will take some time, and I'll try to get more debug out of it as well...

I just hope those dead processess were something with sudo and the I/O Error not playing nice, because I really want this patch to work ;)

Keep you posted...

Signature · 1 line
mjt