[Pvfs2-users] Strange lookup bug
Murali Vilayannur
murali.vilayannur at gmail.com
Wed Jun 20 02:15:49 EDT 2007
Hi Michael,
Nice catch..
Attached patch against HEAD should fix this bug!
thanks for the test case.
Very helpful in narrowing it down.
thanks,
Murali
On 6/19/07, Michael Kuhn <michael.kuhn at stud.uni-heidelberg.de> wrote:
> Hi,
>
> I did some tests with large numbers of files and wasn't very creative
> naming them. While doing these tests, I encountered a rather strange
> bug. Try the following:
>
> % pvfs2-server fs.conf server.conf-localhost -f
> [S 06/19 23:41] PVFS2 Server version 2.7.0pre1-2007-06-19-214004
> starting...
> [D 06/19 23:41] PVFS2 Server: storage space created. Exiting.
> % pvfs2-server fs.conf server.conf-localhost
> [S 06/19 23:41] PVFS2 Server version 2.7.0pre1-2007-06-19-214004
> starting...
> % pvfs2-mkdir /pvfs2/dir1 /pvfs2/dir1/{0..9}
> % pvfs2-touch /pvfs2/dir1/{0..9}/{0..499}
> % pvfs2-mkdir /pvfs2/dir2 /pvfs2/dir2/{0..9}
> % pvfs2-touch /pvfs2/dir2/{0..9}/{0..499}
> % pvfs2-ls /pvfs2/dir1/{0..9}
> Ignoring path /pvfs2/dir1/8
> Ignoring path /pvfs2/dir1/9
> /dir1/0:
> 0
> [...]
> 499
>
> /dir1/1:
> zsh: segmentation fault (core dumped) pvfs2-ls /pvfs2/dir1/{0..9}
> % pvfs2-ls /pvfs2/dir2/{0..9}
> Ignoring path /pvfs2/dir2/8
> Ignoring path /pvfs2/dir2/9
> /dir2/0:
> 0
> [...]
> 499
>
> /dir2/1:
> 0
> [...]
> 499
>
> /dir2/2:
> zsh: segmentation fault (core dumped) pvfs2-ls /pvfs2/dir2/{0..9}
>
> Notice how it crashes on /pvfs2/dir1/1 and /pvfs2/dir2/2. So this crash
> seems to have something to do with the name of the parent directory.
> The crash occurs in the call of PVFS_sys_lookup() of pvfs2-ls's
> do_list().
>
> Here's the Valgrind output:
>
> ==2643== Process terminating with default action of signal 11 (SIGSEGV)
> ==2643== Access not within mapped region at address 0x0
> ==2643== at 0x4022508: strlen (mc_replace_strmem.c:246)
> ==2643== by 0x8059C54: PINT_ncache_update (in pvfs2-ls)
> ==2643== by 0x8061F39: lookup_segment_lookup_comp_fn (in pvfs2-ls)
> ==2643== by 0x809FF58: msgpairarray_completion_fn (in pvfs2-ls)
> ==2643== by 0x80A19ED: PINT_state_machine_invoke (in pvfs2-ls)
> ==2643== by 0x80A1669: PINT_state_machine_next (in pvfs2-ls)
> ==2643== by 0x80A1E00: PINT_state_machine_continue (in pvfs2-ls)
> ==2643== by 0x805B2B9: PINT_client_state_machine_test (in pvfs2-ls)
> ==2643== by 0x805B415: PINT_client_wait_internal (in pvfs2-ls)
> ==2643== by 0x805B4ED: PVFS_sys_wait (in pvfs2-ls)
> ==2643== by 0x80626BE: PVFS_sys_ref_lookup (in pvfs2-ls)
> ==2643== by 0x80627FB: PVFS_sys_lookup (in pvfs2-ls)
>
>
> Regards, Michael
>
> _______________________________________________
> Pvfs2-users mailing list
> Pvfs2-users at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lookup.patch
Type: text/x-patch
Size: 3195 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20070619/50913077/lookup.bin
More information about the Pvfs2-users
mailing list