PDA

View Full Version : Dual deleting causing crash


chuddy
10-15-2002, 04:36 PM
Hi,

I'm experimenting Beta3.4.0 since 2 days and i maybe found a bug.
When 2 (and surely more) connected users are deleting dirs and files at the same moment in the same directory it causes crash of IOFTPD.

Crash doesn't happen shortly but after a few of content deleted.

I'm using Windows 2K SP2.

Anybody experimented this bug ?

darkone
10-15-2002, 06:31 PM
Are both users trying to delete same file when it crashes? (try to get client logs from both). Are they administrators, or owners of files?

darkone
10-15-2002, 06:42 PM
Is there any change that amount of deleted files exceed in bytes, amount they have uploaded? (there might be divide by zero bug :/)

darkone
10-15-2002, 07:04 PM
I tested it with 'fixed' code and couldnt manage to get it crash (had three clients deleting from directory with 1300files). To be on sure side, I will start adding synchronisation more objects starting tomorrow.

chuddy
10-16-2002, 02:03 AM
1a - nope, first i deleted sames file but when the bug appears i found it too trivial so i tested with different files but always in the same dir.
So symptoms appears with same files and different files too.
I must comment that in my tests i delete subdirs and files (not only files as you did maybe ?)

1b - file i use in tests are owned different users ("ioFTPD" and "test" users who is basic test user). I did my tests my differents (ioFTPD/test) and same user (ioFTPD : to be the master). It alaways caused crashs.


2 - Good idea, it would be possible (zero divide) if this problem only affected basics ratio user with low credits but i got it as say above with "ioFTPD" user (master, no ratio).


I will try to make some more tries with an older version on a different desktop with my test protocol to see what happen.

darkone
10-16-2002, 02:43 AM
I could send you a 'fixed' version as well. Mail me your email address, and I'll give you url where to download it (there might be other issues in this release as I havent had time to test it through yet)

chuddy
10-16-2002, 04:00 PM
mail sent.


BUT i think i got it !

Here is how to make it crash so try to recreate it.


Let's say :

1 - i made a user "led" with "ioftpd" default group, this guy uploads a load of shit in \stock where he has permissions.

2 - i realize that this "led" guy has very weird sexual attractions cause he uploads me alot of zooporn ...so i decide to delete his account.

3 - i log into my ioftpd server with default account "ioFTPD" and files that "led" uploaded have now "Nobody" as owner, group still remain the same.
I presume"Nobody" is default owner when ioftpd cant find the user in user files and group is still "ioftpd" cause it still exists : all is OK for me.

4 - I decide to delete his stuff in \stock (subdirs and files) with my "ioftpd" user and here we go, it crashes !


Let me know if you got it or should i like zooporn ?

;)

darkone
10-17-2002, 05:50 PM
I was too lazy to email it to you. Get the 3.4.1 and report, if it fixes the problem (atleast it fixes tons of others).

chuddy
10-18-2002, 10:53 AM
I got the same symptoms on 3.4.2 : i you delete files owned by a user that doesn't exist anymore it crashes.

darkone
10-18-2002, 11:30 AM
Ok, it's now fixed.. =/