This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Correct redboot hang with uninitialized config.


Hello,

I suddenly came across possible hang or sigfault condition for redboot with no configuration stored in flash.
The current version of dns module has a default initialization of dns domain as a pointer to zero.
As a result redboot hangs on boot on mips32 platform. I attached a patch with possible solution, I hope it will be helpful.


Kirill.
Index: dns.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/net/dns.c,v
retrieving revision 1.5
diff -c -r1.5 dns.c
*** dns.c	29 Jan 2009 17:50:04 -0000	1.5
--- dns.c	22 Apr 2010 12:09:32 -0000
***************
*** 76,82 ****
                        dns_domain,
                        ALWAYS_ENABLED, true,
                        CONFIG_STRING,
!                       0
          );
  #endif
  
--- 76,82 ----
                        dns_domain,
                        ALWAYS_ENABLED, true,
                        CONFIG_STRING,
!                       ""
          );
  #endif
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]