[haiku-bugs] Re: [Haiku] #9092: NoIP Update Client stops on error

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 22 Dec 2018 21:33:21 -0000

#9092: NoIP Update Client stops on error
----------------------------------+----------------------------
   Reporter:  kp3ft               |      Owner:  nobody
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Network & Internet  |    Version:  R1/Development
 Resolution:                      |   Keywords:  NoIP client
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  x86
----------------------------------+----------------------------

Comment (by waddlesplash):

 It's not a segmentation fault, and running under the guarded heap produces
 the exact same result. Instead, it's a divide error; specifically on
 [http://xref.plausible.coop/source/xref/haiku/src/kits/app/Message.cpp#1696
 this] line.

 If you add the following printf to the function just before the modulo:
 {{{
 printf("hash table size: %" B_PRId32 ", %" B_PRId32 "\n",
     fHeader->hash_table_size, fHeader->format);
 }}}
 you will always get the following output just before the crash:
 {{{
 hash table size: 0, -42
 }}}
 Printing other fields show they are often uninitialized memory, but
 hash_table_size is always 0 and format is always -42 no matter what.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/9092#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: