[haiku-bugs] Re: [Haiku] #6673: [registrar] can be crashed by running multiple instances of mimeset

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 05 Feb 2024 11:52:29 -0000

#6673: [registrar] can be crashed by running multiple instances of mimeset
--------------------------------+----------------------------
  Reporter:  samui              |      Owner:  bonefish
      Type:  bug                |     Status:  closed
  Priority:  critical           |  Milestone:  R1/beta5
 Component:  Servers/registrar  |    Version:  R1/Development
Resolution:  fixed              |   Keywords:
Blocked By:                     |   Blocking:  11063
  Platform:  All                |
--------------------------------+----------------------------
Comment (by madmax):

 There's a variety of stack traces, all from registrar threads (usually
 "create_app_meta_mime (s)", but I got one from "messaging command
 processor"), always with `free` at the top.

 {{{
 stack trace, current PC 0x1c2360ab099  </boot/system/lib/libroot.so>
 _kern_debugger + 0x9:
   (0x7f4324e20c10)  0x1c236133169  </boot/system/lib/libroot.so> free +
 0x49
   (0x7f4324e20c40)  0x1dd98b00136  </boot/system/lib/libbe.so>
 _ZN3agg11pod_bvectorINS_11vertex_distELj6EED2Ev + 0x36
   (0x7f4324e20c60)  0x1dd98b01451  </boot/system/lib/libbe.so>
 _ZN8BPrivate4Icon17StrokeTransformerD0Ev + 0x11
   (0x7f4324e20c80)  0x1dd98afa5d8  </boot/system/lib/libbe.so>
 _ZN8BPrivate4Icon9ContainerINS0_11TransformerEE9MakeEmptyEv + 0xd8
   (0x7f4324e20d10)  0x1dd98afa140  </boot/system/lib/libbe.so>
 _ZN8BPrivate4Icon5ShapeD2Ev + 0xb0
   (0x7f4324e20d40)  0x1dd98af94d1  </boot/system/lib/libbe.so>
 _ZN8BPrivate4Icon15PathSourceShapeD0Ev + 0x11
   (0x7f4324e20d60)  0x1dd98b025f7  </boot/system/lib/libbe.so>
 _ZN8BPrivate4Icon9ContainerINS0_5ShapeEE9MakeEmptyEv + 0xb7
   (0x7f4324e20df0)  0x1dd98b022d4  </boot/system/lib/libbe.so>
 _ZN8BPrivate4Icon4IconD2Ev + 0x34
   (0x7f4324e20e20)  0x1dd98af5e3a  </boot/system/lib/libbe.so>
 _ZN10BIconUtils13GetVectorIconEPKhmP7BBitmap + 0x29a
   (0x7f4324e21280)  0x1dd98aacd60  </boot/system/lib/libbe.so>
 _ZNK12BAppFileInfo14GetIconForTypeEPKcP7BBitmap9icon_size + 0x340
   (0x7f4324e21330)  0xad7223f5e7  </boot/system/servers/registrar>
 _ZN8BPrivate7Storage4Mime18AppMetaMimeCreator2DoERK9entry_refPb + 0x4b7
   (0x7f4324e21640)  0xad7223e674  </boot/system/servers/registrar>
 
_ZN8BPrivate7Storage4Mime16MimeUpdateThread11UpdateEntryEPK9entry_ref.localalias
 + 0x54
   (0x7f4324e21710)  0xad7223e82d  </boot/system/servers/registrar>
 _ZN8BPrivate7Storage4Mime16MimeUpdateThread14ThreadFunctionEv + 0xad
   (0x7f4324e217b0)  0x1c2360a9dc9  </boot/system/lib/libroot.so>
 thread_entry + 0x19
 }}}

 {{{
 stack trace, current PC 0x441a005099  </boot/system/lib/libroot.so>
 _kern_debugger + 0x9:
   (0x7f6eec37d750)  0x441a08d169  </boot/system/lib/libroot.so> free +
 0x49
   (0x7f6eec37d780)  0x1b4c6ec2c0c  </boot/system/lib/libbe.so>
 
_ZN8BPrivate7Storage12ResourceFile13_InitELFXFileI10Elf64_Ehdr10Elf64_Phdr10Elf64_ShdrEEvR5BFilem
 + 0x3bc
   (0x7f6eec37d850)  0x1b4c6eac166  </boot/system/lib/libbe.so>
 _ZN8BPrivate7Storage12ResourceFile12_InitELFFileER5BFile + 0x86
   (0x7f6eec37d8a0)  0x1b4c6ead072  </boot/system/lib/libbe.so>
 _ZN8BPrivate7Storage12ResourceFile9_InitFileER5BFileb + 0x232
   (0x7f6eec37d930)  0x1b4c6ead0dd  </boot/system/lib/libbe.so>
 _ZN8BPrivate7Storage12ResourceFile5SetToEP5BFileb + 0x2d
   (0x7f6eec37d970)  0x1b4c6ead8a6  </boot/system/lib/libbe.so>
 _ZN10BResources5SetToEPK5BFileb + 0xd6
   (0x7f6eec37d9b0)  0x1b4c6e940e6  </boot/system/lib/libbe.so>
 _ZN12BAppFileInfo5SetToEP5BFile + 0xe6
   (0x7f6eec37d9e0)  0x1b4c6e941ba  </boot/system/lib/libbe.so>
 _ZN12BAppFileInfoC1EP5BFile + 0x3a
   (0x7f6eec37da00)  0x4629e281ce  </boot/system/servers/registrar>
 _ZN8BPrivate7Storage4Mime18AppMetaMimeCreator2DoERK9entry_refPb + 0x9e
   (0x7f6eec37dd10)  0x4629e27674  </boot/system/servers/registrar>
 
_ZN8BPrivate7Storage4Mime16MimeUpdateThread11UpdateEntryEPK9entry_ref.localalias
 + 0x54
   (0x7f6eec37dde0)  0x4629e276dd  </boot/system/servers/registrar>
 
_ZN8BPrivate7Storage4Mime16MimeUpdateThread11UpdateEntryEPK9entry_ref.localalias
 + 0xbd
   (0x7f6eec37deb0)  0x4629e276dd  </boot/system/servers/registrar>
 
_ZN8BPrivate7Storage4Mime16MimeUpdateThread11UpdateEntryEPK9entry_ref.localalias
 + 0xbd
   (0x7f6eec37df80)  0x4629e2782d  </boot/system/servers/registrar>
 _ZN8BPrivate7Storage4Mime16MimeUpdateThread14ThreadFunctionEv + 0xad
   (0x7f6eec37e020)  0x441a003dc9  </boot/system/lib/libroot.so>
 thread_entry + 0x19
 }}}

 {{{
 stack trace, current PC 0x20825b12099  </boot/system/lib/libroot.so>
 _kern_debugger + 0x9:
   (0x7ffe15231920)  0x20825b9a169  </boot/system/lib/libroot.so> free +
 0x49
   (0x7ffe15231950)  0xbf173b5f11  </boot/system/servers/registrar>
 _ZN16MessageDeliverer14DeliverMessageEPKviR18MessagingTargetSetl + 0x3a1
   (0x7ffe152319d0)  0xbf173b83c6  </boot/system/servers/registrar>
 _ZN16MessagingService17_CommandProcessorEv + 0xd6
   (0x7ffe15231a30)  0x20825b10dc9  </boot/system/lib/libroot.so>
 thread_entry + 0x19
 }}}

 {{{
 stack trace, current PC 0xab414e5099  </boot/system/lib/libroot.so>
 _kern_debugger + 0x9:
   (0x7fee041ffeb0)  0xab4156d169  </boot/system/lib/libroot.so> free +
 0x49
   (0x7fee041ffee0)  0xf1100356d3  </boot/system/lib/libbe.so>
 _ZN9BMallocIOD2Ev + 0x23
   (0x7fee041fff00)  0x107a56ce280  </boot/system/servers/registrar>
 _ZN16MessageDeliverer14DeliverMessageEP8BMessageR18MessagingTargetSetl +
 0x70
   (0x7fee041fff90)  0x107a56ce2f1  </boot/system/servers/registrar>
 _ZN16MessageDeliverer14DeliverMessageEP8BMessage10BMessengerl + 0x51
   (0x7fee04200010)  0x107a56d06c4  </boot/system/servers/registrar>
 _ZN11MIMEManager6NotifyEP8BMessageRK10BMessenger + 0x44
   (0x7fee04200060)  0x107a56e21a2  </boot/system/servers/registrar>
 _ZN8BPrivate7Storage4Mime8Database18_SendMonitorUpdateEiPKcbi + 0x112
   (0x7fee04200120)  0x107a56e303b  </boot/system/servers/registrar>
 _ZN8BPrivate7Storage4Mime8Database14SetIconForTypeEPKcS4_PKvm + 0x2fb
   (0x7fee042001e0)  0x107a56e0ce1  </boot/system/servers/registrar>
 _ZN8BPrivate7Storage4Mime18AppMetaMimeCreator2DoERK9entry_refPb + 0xbb1
   (0x7fee042004f0)  0x107a56df674  </boot/system/servers/registrar>
 
_ZN8BPrivate7Storage4Mime16MimeUpdateThread11UpdateEntryEPK9entry_ref.localalias
 + 0x54
   (0x7fee042005c0)  0x107a56df82d  </boot/system/servers/registrar>
 _ZN8BPrivate7Storage4Mime16MimeUpdateThread14ThreadFunctionEv + 0xad
   (0x7fee04200660)  0xab414e3dc9  </boot/system/lib/libroot.so>
 thread_entry + 0x19
 }}}
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/6673#comment:36>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: