Comments (4)
Hi Tom,
I would guess this comes from exhausted heap memory or exhausted TCP PCBs.
Could you check those?
Cheers,
Philipp
from lwip-ftpd.
Hi Philipp,
thanks for the quick reply. From your name, are you by any chance German
and could we communicate German?
This is my first start with lwIP and porting and everything is much more
complicated than I thought, although I found an old ST application note
with code for lwIP 1.3.1. which I adapted for my board (without an OS
first).
So my knowldege of lwIP is very limited, how would I check heap memory
or TCP PCB in the debugger?
This first test on the MCBSTM32C did run ok and this was the project I
wanted to try ftp on.
In the meantime, I tried to merge this into an existing uCOS-III project
(which is the final goal) but now I get a hardfault everytime I try to
access the web server. If I cannot fix this, this will be a show stopper
for lwIP (I hope not).
Thanks,
Tom
-- Beantwortete Nachricht --
Absender: toelke
Datum: 02.06.2014 19:07 UhrHi Tom,
I would guess this comes from exhausted heap memory or exhausted TCP PCBs.
Could you check those?
Cheers,
Philipp—
Reply to this email directly or view it on GitHub
#1 (comment).
from lwip-ftpd.
Hi Tom,
yes, actually I am from Germany but I would like to keep public communication in English as others might benefit from it.
To check for heap memory, in vfs.c I should check the return value of every malloc and return some sensible value. It is possible ftpd.c relies on some return value being non-NULL.
You could try increasing heap size if that changes anything.
If you want to check how much heap is free, you would need to look into the implementation details of your runtime.
You could also single-step from cmd_list() on and check for NULL pointers being used.
How many TCP pcbs have you configured in lwip? ftp needs one listening pcb and one non-listening. If you have a webserver, it will need further pcbs.
Another thing you could look into: As in ftp the server connects back to the client, sometimes a personal firewall on the client machine can hinder a complete ftp connection.
I will probably not have time in the next four weeks to build necessary error-checking code into this module. I would gladly accept a pull request though...
I hope I can help you to get this working.
Cheers,
Philipp
from lwip-ftpd.
I will close this now as I do not see how it helps to have it open; I am not sure if your problem is a error in the ftp-code or your port.
from lwip-ftpd.
Related Issues (16)
- Memory leak after client quits session HOT 3
- Having problems with '0:\' drive/LUN designator HOT 10
- Passive Mode HOT 4
- len wrapped rcv_wnd HOT 1
- re-use of free'd memory causes hard crash
- malloc size of pointer rather than size of struct HOT 2
- missing call to f_closedir() HOT 1
- Does not work with FileZilla on windows HOT 3
- Memory leak?
- ftpd hangs on cmd_pasv
- Trouble getting ftpd to run HOT 5
- Directory listing extremely slow HOT 5
- send_next_directory limitation HOT 4
- send_next_directory hangs the client HOT 3
- vfs_close deletes guard_for_the_whole_fs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lwip-ftpd.