RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sun Sep 15, 2019 8:26 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Oct 16, 2015 5:06 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
The ftp client is completely up the spout. It is unable to log in to an FTP server (even localhost) because there seems to be some internal inconsistency between what you type in and what it thinks you typed in.

For instance, here is a sample with some extra debug prints added:

Code:
# ./ftp localhost
Connected to localhost.
220-
220- myname.my.domain -- Ftp server.
220-
220 wifire.majenko.co.uk FTP server (Version 6.00) ready.
Name (localhost:root): matt
USER localhost
331 Password required for localhost.
Password:
I got the password foo
PASS foo
530 Login incorrect.
ftp: Login failed.
ftp> Oct 16 16:20:53 wifire ftpd[95]: FTP LOGIN FAILED FROM localhost, localhost
user matt
PID 94 (ftp) protection violation at 41b968: BadVAddr = 00000010
Segmentation fault
# Oct 16 16:21:02 wifire vmunix: PID 94 (ftp) protection violation at 41b968: BadVAddr = 00000010
Oct 16 16:21:02 wifire vmunix: PID 94 (ftp) protection violation at 41b968: BadVAddr = 00000010

You notice I logged in as matt yet it actually send the name "localhost" instead. At other times I have had it send "matt" for the username quite happily, yet then go on to send "matt" again for the password.

Also you see when you try and use the USER command to try and authenticate again it crashes. That address, by the way, is inside `strlen()`.

It makes extensive use of variadic functions, and my supposition is that they're the cause. Somehow the variadic list is getting corrupted.

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Fri Oct 16, 2015 6:13 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
That is because you mess with wifire EF :)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Oct 16, 2015 6:14 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Pito wrote:
That is because you mess with wifire EF :)

No, this is a Rev B, one of the old ECG ones. I don't have an EF one yet - MCHP only got theirs earlier this week.

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission