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
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users