[haiku-bugs] [Haiku] #9769: app crashes on exit, but only when not connected to gdb

  • From: "scanty" <trac@xxxxxxxxxxxx>
  • Date: Mon, 13 May 2013 21:22:47 -0000

#9769: app crashes on exit, but only when not connected to gdb
-----------------------+---------------------------
 Reporter:  scanty     |        Owner:  nobody
     Type:  bug        |       Status:  new
 Priority:  normal     |    Milestone:  R1
Component:  - General  |      Version:  R1/alpha4.1
 Keywords:             |   Blocked By:
 Blocking:             |  Has a Patch:  0
 Platform:  All        |
-----------------------+---------------------------
 Sorry I can'tprovide a backtrace, but here is some assembly:

 BPrivate::hoardLock(long&):
 0x005d5b94:               55  push %ebp
 0x005d5b95:             89e5  mov %esp, %ebp
 0x005d5b97:               57  push %edi
 0x005d5b98:               56  push %esi
 0x005d5b99:               53  push %ebx
 0x005d5b9a:           83ec0c  sub $0xc, %esp
 0x005d5b9d:       e800000000  call 0x5d5ba2
 0x005d5ba2:               5b  pop %ebx
 0x005d5ba3:     81c3ea3b0300  add $0x33bea, %ebx
 0x005d5ba9:           8b7d08  mov 0x8(%ebp), %edi
 0x005d5bac:       b900000000  mov $0x0, %ecx
 0x005d5bb1:       be00000000  mov $0x0, %esi
 0x005d5bb6:             eb10  jmp 0x5d5bc8
 0x005d5bb8:       ba01000000  mov $0x1, %edx
 0x005d5bbd:             89f0  mov %esi, %eax

 >crashes
 0x005d5bbf:         f00fb117  lock cmpxchg %edx, (%edi)
 >here

 0x005d5bc3:             85c0  test %eax, %eax
 0x005d5bc5:             740f  jz 0x5d5bd6
 0x005d5bc7:               41  inc %ecx
 0x005d5bc8:           83f931  cmp $0x31, %ecx
 0x005d5bcb:             7eeb  jle 0x5d5bb8
 0x005d5bcd:       e8be15f8ff  call 0x557190
 0x005d5bd2:             89f1  mov %esi, %ecx
 0x005d5bd4:             ebf2  jmp 0x5d5bc8
 0x005d5bd6:           83c40c  add $0xc, %esp
 0x005d5bd9:               5b  pop %ebx
 0x005d5bda:               5e  pop %esi
 0x005d5bdb:               5f  pop %edi
 0x005d5bdc:               5d  pop %ebp
 0x005d5bdd:               c3  ret

 I'm not sure what's going on.  If you need mroe information I can try to
 provide it.  And a suspcious file is attached, possibly causing the
 segfault

--
Ticket URL: <http://dev.haiku-os.org/ticket/9769>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: