makefs and mem_free errors

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

makefs and mem_free errors

Mike Spenard

Hi Gents,

New to LwIP so I apologize if this is a common topic. I’m trying to get running on lwip-httpd.

My first issue is with compiling an fsdata.c. I always get errors saying headers cannot be found despite using makefsfile.exe without the -h option. The only work-around was to set LWIP_HTTPD_DYNAMIC_HEADERS and to use the -h option with makefsfile.exe

Having done that, my page now loads. But then httpd immediately bombs out with a “mem_free: mem->used” assert()  error.

 

Any guidance would be greatly appreciated.

 

Thank you,

PPLogo_no_background_resized_jpg

Mike Spenard

Engineering

 


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: makefs and mem_free errors

goldsimon@gmx.de
Am 02.04.2019 um 14:14 schrieb Mike Spenard:
> Hi Gents,
>
> New to LwIP so I apologize if this is a common topic. I’m trying to get
> running on lwip-httpd.
>
> My first issue is with compiling an fsdata.c. I always get errors saying
> headers cannot be found despite using makefsfile.exe without the -h
> option. The only work-around was to set LWIP_HTTPD_DYNAMIC_HEADERS and
> to use the -h option with makefsfile.exe

Well, you don't compile fsdata.c: it gets included by fs.c.

>
> Having done that, my page now loads. But then httpd immediately bombs
> out with a “mem_free: mem->used” assert()  error.

A double-free? I don't think that's a httpd related issue. Is any other
application running on your lwIP without problems?

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: makefs and mem_free errors

Mike Spenard
Correct, I misspoke... I simply meant 'generated' fsdata.c rather than
compiled.

I traced the "mem_free: mem->used" bomb out to the 404.html missing from
fsdata.c
The http_get_404_file() function checks for it missing:

     if (err != ERR_OK) {
        /* 404.htm doesn't exist either. Indicate to the caller that it
should
         * send back a default 404 page.
         */
        *uri = NULL;
        return NULL;

...however, http_find_file() doesn’t have any code to properly handle that
NULL:

    } else {
      file = http_get_404_file(hs, &uri);
    }

I assume this is why I end up with a pbuf structure of heap allocated by
never flagged as Used. Which causes free_mem() to bomb out  ...?

I'm a new player here, so has this been fixed in newer code than NXP
provided me with? Or am I misunderstanding things?

Mike


-----Original Message-----
From: lwip-users <lwip-users-bounces+ms=[hidden email]> On Behalf
Of [hidden email]
Sent: Tuesday, April 2, 2019 2:29 PM
To: Mailing list for lwIP users <[hidden email]>
Subject: Re: [lwip-users] makefs and mem_free errors

Am 02.04.2019 um 14:14 schrieb Mike Spenard:

> Hi Gents,
>
> New to LwIP so I apologize if this is a common topic. I’m trying to
> get running on lwip-httpd.
>
> My first issue is with compiling an fsdata.c. I always get errors
> saying headers cannot be found despite using makefsfile.exe without
> the -h option. The only work-around was to set
> LWIP_HTTPD_DYNAMIC_HEADERS and to use the -h option with
> makefsfile.exe

Well, you don't compile fsdata.c: it gets included by fs.c.

>
> Having done that, my page now loads. But then httpd immediately bombs
> out with a “mem_free: mem->used” assert()  error.

A double-free? I don't think that's a httpd related issue. Is any other
application running on your lwIP without problems?

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: makefs and mem_free errors

goldsimon@gmx.de
Am 02.04.2019 um 20:39 schrieb Mike Spenard:

> Correct, I misspoke... I simply meant 'generated' fsdata.c rather than
> compiled.
>
> I traced the "mem_free: mem->used" bomb out to the 404.html missing from
> fsdata.c
> The http_get_404_file() function checks for it missing:
>
>       if (err != ERR_OK) {
>          /* 404.htm doesn't exist either. Indicate to the caller that it
> should
>           * send back a default 404 page.
>           */
>          *uri = NULL;
>          return NULL;
>
> ...however, http_find_file() doesn’t have any code to properly handle that
> NULL:

Hmm, that might still be missing in HEAD, too. I never checked, I guess.

>
>      } else {
>        file = http_get_404_file(hs, &uri);
>      }
>
> I assume this is why I end up with a pbuf structure of heap allocated by
> never flagged as Used. Which causes free_mem() to bomb out  ...?

Might be.

>
> I'm a new player here, so has this been fixed in newer code than NXP
> provided me with? Or am I misunderstanding things?

No, seems to be in here still. We had some handling for a compiled-in
default 404 page, don't know what happened to that.

Would you mind filing a bug so that this doesn't get forgotten?

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: makefs and mem_free errors

Mike Spenard
Submitted bug report on 404 missing issue.

Could you provide some guidance on why the fsdata.c I generated with makefsfile.exe including headers is causing a "HTTP headers not included in file system" error?

>makefsfile.exe -i fs -v
makefsfile - Generate a file containing a file system image.
Copyright (c) 2008-2012 Texas Instruments Incorporated.  All rights reserved.

Input directory:   fs
Output file:       fsdata.c
Output format:     ASCII C
Overwrite output?: No
Exclude headers?:  No
Exclude file:      None

Excluding the following files and directory names:
  .svn
  CVS
  thumbs.db
  filelist.txt
  dirlist.txt

File fsdata.c exists. Overwrite? y
Opening output file fsdata.c
Changing to directory fs
Excluding .
Excluding ..
Processing fs/404.html...
Final filename is /404.html
Filtered filename is _404_html
File extension is html.
File extension found. Header is:
Content-type: text/html

Changing to directory fs/img
Excluding .
Excluding ..
Processing fs/img/sics.gif...
Final filename is /img/sics.gif
Filtered filename is _img_sics_gif
File extension is gif.
File extension found. Header is:
Content-type: image/gif

Processing fs/index.html...
Final filename is /index.html
Filtered filename is _index_html
File extension is html.
File extension found. Header is:
Content-type: text/html

Completed successfully. 3 files from 2 directories processed.
Binary size 3461 (0x00000d85) bytes



-----Original Message-----
From: lwip-users <lwip-users-bounces+ms=[hidden email]> On Behalf Of [hidden email]
Sent: Tuesday, April 2, 2019 2:45 PM
To: Mailing list for lwIP users <[hidden email]>
Subject: Re: [lwip-users] makefs and mem_free errors

Am 02.04.2019 um 20:39 schrieb Mike Spenard:

> Correct, I misspoke... I simply meant 'generated' fsdata.c rather than
> compiled.
>
> I traced the "mem_free: mem->used" bomb out to the 404.html missing
> from fsdata.c The http_get_404_file() function checks for it missing:
>
>       if (err != ERR_OK) {
>          /* 404.htm doesn't exist either. Indicate to the caller that
> it should
>           * send back a default 404 page.
>           */
>          *uri = NULL;
>          return NULL;
>
> ...however, http_find_file() doesn’t have any code to properly handle
> that
> NULL:

Hmm, that might still be missing in HEAD, too. I never checked, I guess.

>
>      } else {
>        file = http_get_404_file(hs, &uri);
>      }
>
> I assume this is why I end up with a pbuf structure of heap allocated
> by never flagged as Used. Which causes free_mem() to bomb out  ...?

Might be.

>
> I'm a new player here, so has this been fixed in newer code than NXP
> provided me with? Or am I misunderstanding things?

No, seems to be in here still. We had some handling for a compiled-in default 404 page, don't know what happened to that.

Would you mind filing a bug so that this doesn't get forgotten?

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: makefs and mem_free errors

goldsimon@gmx.de


Am 2. April 2019 21:34:28 MESZ schrieb Mike Spenard <[hidden email]>:
>Submitted bug report on 404 missing issue.
>
>Could you provide some guidance on why the fsdata.c I generated with
>makefsfile.exe including headers is causing a "HTTP headers not
>included in file system" error?

I'd have to look at the sources to be aure, but it might be a configuration issue: by default, httpd does not generate the headers at runtime to reduce code and RAM footprint...

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: makefs and mem_free errors

Mike Spenard
Just testing with the default /fs/ directory structure.

That makefsfile.exe is from TI. But I've had the same issue doing this in
Linux with the Perl script as well. Is there a win64 compatible .exe out
there with your blessing that I can download? It's hard to know if it's the
.exe causing issue or something else in NXP's LwIP codebase.

Here's index.html struct it outputted..

static const unsigned char data_index_html[] =
{
        /* /index.html */
    0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68,
    0x74, 0x6d, 0x6c, 0x00,
    0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30,
    0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0x0d,
    0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a,
    0x20, 0x6c, 0x77, 0x49, 0x50, 0x2f, 0x31, 0x2e,
    0x33, 0x2e, 0x32, 0x20, 0x28, 0x68, 0x74, 0x74,
    0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e,
    0x73, 0x69, 0x63, 0x73, 0x2e, 0x73, 0x65, 0x2f,
    0x7e, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x6c, 0x77,
    0x69, 0x70, 0x2f, 0x29, 0x0d, 0x0a, 0x43, 0x6f,
    0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79,
    0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74,
    0x2f, 0x68, 0x74, 0x6d, 0x6c, 0x0d, 0x0a, 0x0d,
    0x0a,
    0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0x0d, 0x0a,
    0x3c, 0x68, 0x65, 0x61, 0x64, 0x3e, 0x3c, 0x74,
    0x69, 0x74, 0x6c, 0x65, 0x3e, 0x6c, 0x77, 0x49,
    0x50, 0x20, 0x2d, 0x20, 0x41, 0x20, 0x4c, 0x69,
    0x67, 0x68, 0x74, 0x77, 0x65, 0x69, 0x67, 0x68,
    0x74, 0x20, 0x54, 0x43, 0x50, 0x2f, 0x49, 0x50,
    0x20, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x20, 0x50,
    0x50, 0x20, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d,
    0x53, 0x20, 0x54, 0x45, 0x53, 0x54, 0x31, 0x3c,
    0x2f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x3e, 0x3c,
    0x2f, 0x68, 0x65, 0x61, 0x64, 0x3e, 0x0d, 0x0a,
    0x3c, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67,
    0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x77,
    0x68, 0x69, 0x74, 0x65, 0x22, 0x20, 0x74, 0x65,
    0x78, 0x74, 0x3d, 0x22, 0x62, 0x6c, 0x61, 0x63,
    0x6b, 0x22, 0x3e, 0x0d, 0x0a, 0x0d, 0x0a, 0x20,
    0x20, 0x20, 0x20, 0x3c, 0x74, 0x61, 0x62, 0x6c,
    0x65, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d,
    0x22, 0x31, 0x30, 0x30, 0x25, 0x22, 0x3e, 0x0d,
    0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3c,
    0x74, 0x72, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x67,
    0x6e, 0x3d, 0x22, 0x74, 0x6f, 0x70, 0x22, 0x3e,
    0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74,
    0x68, 0x3d, 0x22, 0x38, 0x30, 0x22, 0x3e, 0x09,
    0x20, 0x20, 0x0d, 0x0a, 0x09, 0x20, 0x20, 0x3c,
    0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22,
    0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
    0x77, 0x77, 0x2e, 0x73, 0x69, 0x63, 0x73, 0x2e,
    0x73, 0x65, 0x2f, 0x22, 0x3e, 0x3c, 0x69, 0x6d,
    0x67, 0x20, 0x73, 0x72, 0x63, 0x3d, 0x22, 0x2f,
    0x69, 0x6d, 0x67, 0x2f, 0x73, 0x69, 0x63, 0x73,
    0x2e, 0x67, 0x69, 0x66, 0x22, 0x0d, 0x0a, 0x09,
    0x20, 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72,
    0x3d, 0x22, 0x30, 0x22, 0x20, 0x61, 0x6c, 0x74,
    0x3d, 0x22, 0x53, 0x49, 0x43, 0x53, 0x20, 0x6c,
    0x6f, 0x67, 0x6f, 0x22, 0x20, 0x74, 0x69, 0x74,
    0x6c, 0x65, 0x3d, 0x22, 0x53, 0x49, 0x43, 0x53,
    0x20, 0x6c, 0x6f, 0x67, 0x6f, 0x22, 0x3e, 0x3c,
    0x2f, 0x61, 0x3e, 0x0d, 0x0a, 0x09, 0x3c, 0x2f,
    0x74, 0x64, 0x3e, 0x3c, 0x74, 0x64, 0x20, 0x77,
    0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x35, 0x30,
    0x30, 0x22, 0x3e, 0x09, 0x20, 0x20, 0x0d, 0x0a,
    0x09, 0x20, 0x20, 0x3c, 0x68, 0x31, 0x3e, 0x6c,
    0x77, 0x49, 0x50, 0x20, 0x2d, 0x20, 0x41, 0x20,
    0x4c, 0x69, 0x67, 0x68, 0x74, 0x77, 0x65, 0x69,
    0x67, 0x68, 0x74, 0x20, 0x54, 0x43, 0x50, 0x2f,
    0x49, 0x50, 0x20, 0x53, 0x74, 0x61, 0x63, 0x6b,
    0x20, 0x50, 0x50, 0x20, 0x53, 0x59, 0x53, 0x54,
    0x45, 0x4d, 0x53, 0x20, 0x54, 0x45, 0x53, 0x54,
    0x31, 0x3c, 0x2f, 0x68, 0x31, 0x3e, 0x0d, 0x0a,
    0x09, 0x20, 0x20, 0x3c, 0x70, 0x3e, 0x0d, 0x0a,
    0x09, 0x20, 0x20, 0x20, 0x20, 0x54, 0x68, 0x65,
    0x20, 0x77, 0x65, 0x62, 0x20, 0x70, 0x61, 0x67,
    0x65, 0x20, 0x79, 0x6f, 0x75, 0x20, 0x61, 0x72,
    0x65, 0x20, 0x77, 0x61, 0x74, 0x63, 0x68, 0x69,
    0x6e, 0x67, 0x20, 0x77, 0x61, 0x73, 0x20, 0x73,
    0x65, 0x72, 0x76, 0x65, 0x64, 0x20, 0x62, 0x79,
    0x20, 0x61, 0x20, 0x73, 0x69, 0x6d, 0x70, 0x6c,
    0x65, 0x20, 0x77, 0x65, 0x62, 0x0d, 0x0a, 0x09,
    0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x72, 0x76,
    0x65, 0x72, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69,
    0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x6f,
    0x70, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65,
    0x20, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x77, 0x65,
    0x69, 0x67, 0x68, 0x74, 0x20, 0x54, 0x43, 0x50,
    0x2f, 0x49, 0x50, 0x20, 0x73, 0x74, 0x61, 0x63,
    0x6b, 0x20, 0x3c, 0x61, 0x0d, 0x0a, 0x09, 0x20,
    0x20, 0x20, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d,
    0x22, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f,
    0x77, 0x77, 0x77, 0x2e, 0x73, 0x69, 0x63, 0x73,
    0x2e, 0x73, 0x65, 0x2f, 0x7e, 0x61, 0x64, 0x61,
    0x6d, 0x2f, 0x6c, 0x77, 0x69, 0x70, 0x2f, 0x22,
    0x3e, 0x6c, 0x77, 0x49, 0x50, 0x3c, 0x2f, 0x61,
    0x3e, 0x2e, 0x0d, 0x0a, 0x09, 0x20, 0x20, 0x3c,
    0x2f, 0x70, 0x3e, 0x0d, 0x0a, 0x09, 0x20, 0x20,
    0x3c, 0x70, 0x3e, 0x0d, 0x0a, 0x09, 0x20, 0x20,
    0x20, 0x20, 0x6c, 0x77, 0x49, 0x50, 0x20, 0x69,
    0x73, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x70, 0x65,
    0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
    0x20, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65,
    0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20,
    0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x54,
    0x43, 0x50, 0x2f, 0x49, 0x50, 0x0d, 0x0a, 0x09,
    0x20, 0x20, 0x20, 0x20, 0x70, 0x72, 0x6f, 0x74,
    0x6f, 0x63, 0x6f, 0x6c, 0x20, 0x73, 0x75, 0x69,
    0x74, 0x65, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20,
    0x77, 0x61, 0x73, 0x20, 0x6f, 0x72, 0x69, 0x67,
    0x69, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x77,
    0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x20, 0x62,
    0x79, 0x20, 0x3c, 0x61, 0x0d, 0x0a, 0x09, 0x20,
    0x20, 0x20, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d,
    0x22, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f,
    0x77, 0x77, 0x77, 0x2e, 0x73, 0x69, 0x63, 0x73,
    0x2e, 0x73, 0x65, 0x2f, 0x7e, 0x61, 0x64, 0x61,
    0x6d, 0x2f, 0x6c, 0x77, 0x69, 0x70, 0x2f, 0x22,
    0x3e, 0x41, 0x64, 0x61, 0x6d, 0x20, 0x44, 0x75,
    0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x0d, 0x0a, 0x09,
    0x20, 0x20, 0x20, 0x20, 0x6f, 0x66, 0x20, 0x74,
    0x68, 0x65, 0x20, 0x53, 0x77, 0x65, 0x64, 0x69,
    0x73, 0x68, 0x20, 0x49, 0x6e, 0x73, 0x74, 0x69,
    0x74, 0x75, 0x74, 0x65, 0x20, 0x6f, 0x66, 0x20,
    0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x72,
    0x20, 0x53, 0x63, 0x69, 0x65, 0x6e, 0x63, 0x65,
    0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x62, 0x75, 0x74,
    0x20, 0x6e, 0x6f, 0x77, 0x20, 0x69, 0x73, 0x0d,
    0x0a, 0x09, 0x20, 0x20, 0x20, 0x20, 0x62, 0x65,
    0x69, 0x6e, 0x67, 0x20, 0x61, 0x63, 0x74, 0x69,
    0x76, 0x65, 0x6c, 0x79, 0x20, 0x64, 0x65, 0x76,
    0x65, 0x6c, 0x6f, 0x70, 0x65, 0x64, 0x20, 0x62,
    0x79, 0x20, 0x61, 0x20, 0x74, 0x65, 0x61, 0x6d,
    0x20, 0x6f, 0x66, 0x20, 0x64, 0x65, 0x76, 0x65,
    0x6c, 0x6f, 0x70, 0x65, 0x72, 0x73, 0x0d, 0x0a,
    0x09, 0x20, 0x20, 0x20, 0x20, 0x64, 0x69, 0x73,
    0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64,
    0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2d, 0x77,
    0x69, 0x64, 0x65, 0x2e, 0x20, 0x53, 0x69, 0x6e,
    0x63, 0x65, 0x20, 0x69, 0x74, 0x27, 0x73, 0x20,
    0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2c,
    0x20, 0x6c, 0x77, 0x49, 0x50, 0x20, 0x68, 0x61,
    0x73, 0x0d, 0x0a, 0x09, 0x20, 0x20, 0x20, 0x20,
    0x73, 0x70, 0x75, 0x72, 0x72, 0x65, 0x64, 0x20,
    0x61, 0x20, 0x6c, 0x6f, 0x74, 0x20, 0x6f, 0x66,
    0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x65, 0x73,
    0x74, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x68, 0x61,
    0x73, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, 0x70,
    0x6f, 0x72, 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f,
    0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c,
    0x0d, 0x0a, 0x09, 0x20, 0x20, 0x20, 0x20, 0x70,
    0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73,
    0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x70, 0x65,
    0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x73,
    0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x2e, 0x20,
    0x6c, 0x77, 0x49, 0x50, 0x20, 0x63, 0x61, 0x6e,
    0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64,
    0x20, 0x65, 0x69, 0x74, 0x68, 0x65, 0x72, 0x0d,
    0x0a, 0x09, 0x20, 0x20, 0x20, 0x20, 0x77, 0x69,
    0x74, 0x68, 0x20, 0x6f, 0x72, 0x20, 0x77, 0x69,
    0x74, 0x68, 0x6f, 0x75, 0x74, 0x20, 0x61, 0x6e,
    0x20, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x79,
    0x69, 0x6e, 0x67, 0x20, 0x4f, 0x53, 0x2e, 0x0d,
    0x0a, 0x09, 0x20, 0x20, 0x3c, 0x2f, 0x70, 0x3e,
    0x0d, 0x0a, 0x09, 0x20, 0x20, 0x3c, 0x70, 0x3e,
    0x0d, 0x0a, 0x09, 0x20, 0x20, 0x20, 0x20, 0x54,
    0x68, 0x65, 0x20, 0x66, 0x6f, 0x63, 0x75, 0x73,
    0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20,
    0x6c, 0x77, 0x49, 0x50, 0x20, 0x54, 0x43, 0x50,
    0x2f, 0x49, 0x50, 0x20, 0x69, 0x6d, 0x70, 0x6c,
    0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69,
    0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x74, 0x6f,
    0x20, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x0d,
    0x0a, 0x09, 0x20, 0x20, 0x20, 0x20, 0x74, 0x68,
    0x65, 0x20, 0x52, 0x41, 0x4d, 0x20, 0x75, 0x73,
    0x61, 0x67, 0x65, 0x20, 0x77, 0x68, 0x69, 0x6c,
    0x65, 0x20, 0x73, 0x74, 0x69, 0x6c, 0x6c, 0x20,
    0x68, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x20, 0x61,
    0x20, 0x66, 0x75, 0x6c, 0x6c, 0x20, 0x73, 0x63,
    0x61, 0x6c, 0x65, 0x20, 0x54, 0x43, 0x50, 0x2e,
    0x20, 0x54, 0x68, 0x69, 0x73, 0x0d, 0x0a, 0x09,
    0x20, 0x20, 0x20, 0x20, 0x6d, 0x61, 0x6b, 0x65,
    0x73, 0x20, 0x6c, 0x77, 0x49, 0x50, 0x20, 0x73,
    0x75, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20,
    0x66, 0x6f, 0x72, 0x20, 0x75, 0x73, 0x65, 0x20,
    0x69, 0x6e, 0x20, 0x65, 0x6d, 0x62, 0x65, 0x64,
    0x64, 0x65, 0x64, 0x20, 0x73, 0x79, 0x73, 0x74,
    0x65, 0x6d, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68,
    0x20, 0x74, 0x65, 0x6e, 0x73, 0x0d, 0x0a, 0x09,
    0x20, 0x20, 0x20, 0x20, 0x6f, 0x66, 0x20, 0x6b,
    0x69, 0x6c, 0x6f, 0x62, 0x79, 0x74, 0x65, 0x73,
    0x20, 0x6f, 0x66, 0x20, 0x66, 0x72, 0x65, 0x65,
    0x20, 0x52, 0x41, 0x4d, 0x20, 0x61, 0x6e, 0x64,
    0x20, 0x72, 0x6f, 0x6f, 0x6d, 0x20, 0x66, 0x6f,
    0x72, 0x20, 0x61, 0x72, 0x6f, 0x75, 0x6e, 0x64,
    0x20, 0x34, 0x30, 0x20, 0x6b, 0x69, 0x6c, 0x6f,
    0x62, 0x79, 0x74, 0x65, 0x73, 0x0d, 0x0a, 0x09,
    0x20, 0x20, 0x20, 0x20, 0x6f, 0x66, 0x20, 0x63,
    0x6f, 0x64, 0x65, 0x20, 0x52, 0x4f, 0x4d, 0x2e,
    0x0d, 0x0a, 0x09, 0x20, 0x20, 0x3c, 0x2f, 0x70,
    0x3e, 0x0d, 0x0a, 0x09, 0x20, 0x20, 0x3c, 0x70,
    0x3e, 0x0d, 0x0a, 0x09, 0x20, 0x20, 0x20, 0x20,
    0x4d, 0x6f, 0x72, 0x65, 0x20, 0x69, 0x6e, 0x66,
    0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e,
    0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x6c,
    0x77, 0x49, 0x50, 0x20, 0x63, 0x61, 0x6e, 0x20,
    0x62, 0x65, 0x20, 0x66, 0x6f, 0x75, 0x6e, 0x64,
    0x20, 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20,
    0x6c, 0x77, 0x49, 0x50, 0x0d, 0x0a, 0x09, 0x20,
    0x20, 0x20, 0x20, 0x68, 0x6f, 0x6d, 0x65, 0x70,
    0x61, 0x67, 0x65, 0x20, 0x61, 0x74, 0x20, 0x3c,
    0x61, 0x0d, 0x0a, 0x09, 0x20, 0x20, 0x20, 0x20,
    0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x68, 0x74,
    0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x73, 0x61, 0x76,
    0x61, 0x6e, 0x6e, 0x61, 0x68, 0x2e, 0x6e, 0x6f,
    0x6e, 0x67, 0x6e, 0x75, 0x2e, 0x6f, 0x72, 0x67,
    0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
    0x73, 0x2f, 0x6c, 0x77, 0x69, 0x70, 0x2f, 0x22,
    0x3e, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f,
    0x73, 0x61, 0x76, 0x61, 0x6e, 0x6e, 0x61, 0x68,
    0x2e, 0x6e, 0x6f, 0x6e, 0x67, 0x6e, 0x75, 0x2e,
    0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x6a,
    0x65, 0x63, 0x74, 0x73, 0x2f, 0x6c, 0x77, 0x69,
    0x70, 0x2f, 0x3c, 0x2f, 0x61, 0x3e, 0x0d, 0x0a,
    0x09, 0x20, 0x20, 0x20, 0x20, 0x6f, 0x72, 0x20,
    0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c,
    0x77, 0x49, 0x50, 0x20, 0x77, 0x69, 0x6b, 0x69,
    0x20, 0x61, 0x74, 0x20, 0x3c, 0x61, 0x0d, 0x0a,
    0x09, 0x20, 0x20, 0x20, 0x20, 0x68, 0x72, 0x65,
    0x66, 0x3d, 0x22, 0x68, 0x74, 0x74, 0x70, 0x3a,
    0x2f, 0x2f, 0x6c, 0x77, 0x69, 0x70, 0x2e, 0x77,
    0x69, 0x6b, 0x69, 0x61, 0x2e, 0x63, 0x6f, 0x6d,
    0x2f, 0x22, 0x3e, 0x68, 0x74, 0x74, 0x70, 0x3a,
    0x2f, 0x2f, 0x6c, 0x77, 0x69, 0x70, 0x2e, 0x77,
    0x69, 0x6b, 0x69, 0x61, 0x2e, 0x63, 0x6f, 0x6d,
    0x2f, 0x3c, 0x2f, 0x61, 0x3e, 0x2e, 0x0d, 0x0a,
    0x09, 0x20, 0x20, 0x3c, 0x2f, 0x70, 0x3e, 0x0d,
    0x0a, 0x09, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c,
    0x74, 0x64, 0x3e, 0x0d, 0x0a, 0x09, 0x20, 0x20,
    0x26, 0x6e, 0x62, 0x73, 0x70, 0x3b, 0x0d, 0x0a,
    0x09, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f,
    0x74, 0x72, 0x3e, 0x0d, 0x0a, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x3c, 0x2f, 0x74, 0x61, 0x62,
    0x6c, 0x65, 0x3e, 0x0d, 0x0a, 0x3c, 0x2f, 0x62,
    0x6f, 0x64, 0x79, 0x3e, 0x0d, 0x0a, 0x3c, 0x2f,
    0x68, 0x74, 0x6d, 0x6c, 0x3e, 0x0d, 0x0a, 0x0d,
    0x0a,
};

const struct fsdata_file file_index_html[] =
{
        {
                NULL,
                data_index_html,
                data_index_html + 12,
                sizeof(data_index_html) - 12
        }
};

const struct fsdata_file file_img_sics_gif[] =
{
        {
                file_index_html,
                data_img_sics_gif,
                data_img_sics_gif + 14,
                sizeof(data_img_sics_gif) - 14
        }
};

const struct fsdata_file file_404_html[] =
{
        {
                file_img_sics_gif,
                data_404_html,
                data_404_html + 10,
                sizeof(data_404_html) - 10
        }
};

#define FS_ROOT file_404_html
#define FS_NUMFILES 3


-----Original Message-----
From: lwip-users <lwip-users-bounces+ms=[hidden email]> On Behalf
Of goldsimon
Sent: Tuesday, April 2, 2019 3:39 PM
To: Mailing list for lwIP users <[hidden email]>
Subject: Re: [lwip-users] makefs and mem_free errors



Am 2. April 2019 21:34:28 MESZ schrieb Mike Spenard <[hidden email]>:
>Submitted bug report on 404 missing issue.
>
>Could you provide some guidance on why the fsdata.c I generated with
>makefsfile.exe including headers is causing a "HTTP headers not
>included in file system" error?

I'd have to look at the sources to be aure, but it might be a configuration
issue: by default, httpd does not generate the headers at runtime to reduce
code and RAM footprint...

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users