[haiku-bugs] Re: [Haiku] #10259: CDDA-related KDL: ASCII string corrupts kernel structures

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Wed, 27 Nov 2013 18:44:28 -0000

#10259: CDDA-related KDL: ASCII string corrupts kernel structures
-------------------------+----------------------------
   Reporter:  ttcoder    |      Owner:  nobody
       Type:  bug        |     Status:  new
   Priority:  normal     |  Milestone:  R1
  Component:  - General  |    Version:  R1/Development
 Resolution:             |   Keywords:
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  All
-------------------------+----------------------------

Comment (by ttcoder):

 In the interest of making this ticket more attractive :-) here's some
 explanations that could be useful:

 '''Walk-through of my wannabe KDL session''':
 (I'm new at this so don't hesitate to criticize/advise/tell me I'm all
 wrong in the following analysis)

 - the faulty address 0x54202d40 seems to come from register ecx plus an
 offset of 0x20, so I thought about looking at asm to know where that value
 comes from; luckily enough "dis" exists and seems to be pre-configured
 with the current ip address by default.
 - I ran it on an address a few bytes before (the attached screenshot is a
 cleaned-up session done once I had all my ducks in a row) to get the full
 context:
 - the mov 0x20(ecx) triggers a kernel crash because ecx=0x54202d20
 - ecx=0x54202d20 because of mov(edx), ecx a few lines up, and edx ==
 0xdf077900, which uses the string "The Wanderer" (that's the title of the
 audio CD I'm trying to rip!) at that address.

 Any of the above helps pinpoint the problem ?

 '''Use-case''':

 - ran the CD ripping application
 - let it ran on all tracks of "/jogeir liljedahl - the wanderer",
 compressing them with lame.
 - closed down that app
 - ejected the CD (with the tower's button, not in software)
 - invoked "Shutdown & restart" in the deskbar
 - got the above KDL / kernel panic.

--
Ticket URL: <http://dev.haiku-os.org/ticket/10259#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: