This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug gdb/21240] New: arm-none-eabi-gdb crashes on start


https://sourceware.org/bugzilla/show_bug.cgi?id=21240

            Bug ID: 21240
           Summary: arm-none-eabi-gdb crashes on start
           Product: gdb
           Version: 7.12.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: tcurdt at vafer dot org
  Target Milestone: ---

When just running:

    $ arm-none-eabi-gdb
    GNU gdb (GNU Tools for ARM Embedded Processors) 7.12.0.20161204-git
    Copyright (C) 2016 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "--host=x86_64-apple-darwin10
--target=arm-none-eabi".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word".
    Abort trap: 6

I get a SIGABRT

    Process:               arm-none-eabi-gdb [19569]
    Path:                 
/usr/local/Caskroom/gcc-arm-embedded/6.2,2016q4/gcc-arm-none-eabi-6_2-2016q4/bin/arm-none-eabi-gdb
    Identifier:            arm-none-eabi-gdb
    Version:               ???
    Code Type:             X86-64 (Native)
    Parent Process:        bash [16866]
    Responsible:           arm-none-eabi-gdb [19569]
    User ID:               501

    Date/Time:             2017-03-10 21:45:04.843 +0100
    OS Version:            Mac OS X 10.12.3 (16D32)
    Report Version:        12
    Anonymous UUID:        C5809969-9982-626B-185C-C71743BF1FC0

    Sleep/Wake UUID:       CBDB9DCF-CE80-4E0E-A87E-1BFC300D5143

    Time Awake Since Boot: 910000 seconds
    Time Since Wake:       17000 seconds

    System Integrity Protection: enabled

    Crashed Thread:        0  Dispatch queue: com.apple.main-thread

    Exception Type:        EXC_CRASH (SIGABRT)
    Exception Codes:       0x0000000000000000, 0x0000000000000000
    Exception Note:        EXC_CORPSE_NOTIFY

    Application Specific Information:
    abort() called

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib          0x00007fff8bb4cdd6 __pthread_kill + 10
    1   libsystem_pthread.dylib         0x00007fff8bc38787 pthread_kill + 90
    2   libsystem_c.dylib               0x00007fff8bab2420 abort + 129
    3   arm-none-eabi-gdb               0x000000010658b0a1 uw_init_context_1 +
88
    4   arm-none-eabi-gdb               0x000000010658b498
_Unwind_RaiseException + 62
    5   arm-none-eabi-gdb               0x0000000106589868 __cxa_throw + 90

    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007fff599a4a48
 rdx: 0x0000000000000000
      rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007fff599a4a70
 rsp: 0x00007fff599a4a48
       r8: 0x0000000000000040   r9: 0x00007f951a600240  r10: 0x0000000008000000
 r11: 0x0000000000000206
      r12: 0x0000000106589868  r13: 0x00007fff599a5020  r14: 0x00007fff9486b3c0
 r15: 0x000000010659f9b0
      rip: 0x00007fff8bb4cdd6  rfl: 0x0000000000000206  cr2: 0x00007fff8bc3648b

    Logical CPU:     0
    Error Code:      0x02000148
    Trap Number:     133


    Binary Images:
           0x10625a000 -        0x106768fef +arm-none-eabi-gdb (???)
<6A807F40-BB0B-35D2-AFC2-6AE3BAF605BC> /usr/local/bin/arm-none-eabi-gdb
           0x10742f000 -        0x10746c267  dyld (421.2)
<947FC440-80F9-32F7-A773-6FC418FE1AB7> /usr/lib/dyld
        0x7fff8a47b000 -     0x7fff8a47cff3  libSystem.B.dylib (1238)
<9CB018AF-54E9-300F-82BE-81FE553C9154> /usr/lib/libSystem.B.dylib
        0x7fff8a594000 -     0x7fff8a594ff3  libauto.dylib (187)
<5BBF6A00-CC76-389D-84E7-CA88EDADE683> /usr/lib/libauto.dylib
        0x7fff8a5b5000 -     0x7fff8a60bff7  libc++.1.dylib (307.4)
<BEE86868-F831-384C-919E-2B286ACFE87C> /usr/lib/libc++.1.dylib
        0x7fff8a60c000 -     0x7fff8a636fff  libc++abi.dylib (307.2)
<1CEF8ABB-7E6D-3C2F-8E0A-E7884478DD23> /usr/lib/libc++abi.dylib
        0x7fff8b07a000 -     0x7fff8b0abffb  libncurses.5.4.dylib (51.30.1)
<A8C8F837-86A2-3EC2-B2D2-6E8A267847E4> /usr/lib/libncurses.5.4.dylib
        0x7fff8b126000 -     0x7fff8b4f6d97  libobjc.A.dylib (706)
<F9AFE665-A3A2-3285-9495-19803A565861> /usr/lib/libobjc.A.dylib
        0x7fff8b940000 -     0x7fff8b944ff7  libcache.dylib (79)
<0C8092D3-600F-3ADD-A036-F225B6CDCA43> /usr/lib/system/libcache.dylib
        0x7fff8b945000 -     0x7fff8b950ff7  libcommonCrypto.dylib (60092.30.2)
<B16E29B6-EC8D-3A8F-9A89-DD9CF35F7C4B> /usr/lib/system/libcommonCrypto.dylib
        0x7fff8b951000 -     0x7fff8b958fff  libcompiler_rt.dylib (62)
<E992E8D9-037C-3454-A366-A25E4D31D6BB> /usr/lib/system/libcompiler_rt.dylib
        0x7fff8b959000 -     0x7fff8b961fff  libcopyfile.dylib (138)
<64E285D9-5485-333B-AEE7-8B0C8FB9275F> /usr/lib/system/libcopyfile.dylib
        0x7fff8b962000 -     0x7fff8b9e5fdf  libcorecrypto.dylib (442.30.20)
<2074B932-FD79-30A9-8E90-AF25C49F2AF1> /usr/lib/system/libcorecrypto.dylib
        0x7fff8b9e6000 -     0x7fff8ba18fff  libdispatch.dylib (703.30.5)
<EA0CC14E-D559-3802-B4B2-0E8C7579AAC4> /usr/lib/system/libdispatch.dylib
        0x7fff8ba19000 -     0x7fff8ba1eff3  libdyld.dylib (421.2)
<6F506653-FFF6-3DB8-84F1-109AE3C52F32> /usr/lib/system/libdyld.dylib
        0x7fff8ba1f000 -     0x7fff8ba1fffb  libkeymgr.dylib (28)
<1A318923-1200-3B06-B432-5007D82F195D> /usr/lib/system/libkeymgr.dylib
        0x7fff8ba2d000 -     0x7fff8ba2dfff  liblaunch.dylib (972.30.7)
<15FACC21-079A-3BDF-9AFB-4253EFDEB587> /usr/lib/system/liblaunch.dylib
        0x7fff8ba2e000 -     0x7fff8ba33fff  libmacho.dylib (894)
<A2F38EC1-C37C-3B93-B0E4-36B07C177F8C> /usr/lib/system/libmacho.dylib
        0x7fff8ba34000 -     0x7fff8ba36ff3  libquarantine.dylib (85)
<C1D7749F-5F5F-3BB9-BEFC-1F0B9DA941FD> /usr/lib/system/libquarantine.dylib
        0x7fff8ba37000 -     0x7fff8ba38ffb  libremovefile.dylib (45)
<CD42974E-BE0B-39FC-9BFC-8A7540A04DC6> /usr/lib/system/libremovefile.dylib
        0x7fff8ba39000 -     0x7fff8ba51ff7  libsystem_asl.dylib (349.30.2)
<EFAC72D7-CB13-3DF7-ADF3-EC6635C6F1EA> /usr/lib/system/libsystem_asl.dylib
        0x7fff8ba52000 -     0x7fff8ba52ff7  libsystem_blocks.dylib (67)
<B8C3701D-5A91-3D35-999D-2DC8D5393525> /usr/lib/system/libsystem_blocks.dylib
        0x7fff8ba53000 -     0x7fff8bae0fef  libsystem_c.dylib (1158.30.7)
<2F881962-03CB-3B9D-A782-D98C1BBA4E3D> /usr/lib/system/libsystem_c.dylib
        0x7fff8bae1000 -     0x7fff8bae4ffb  libsystem_configuration.dylib
(888.30.2) <4FE3983C-E4ED-3939-A578-03AD29C99788>
/usr/lib/system/libsystem_configuration.dylib
        0x7fff8bae5000 -     0x7fff8bae8fff  libsystem_coreservices.dylib
(41.4) <1A572B9E-0C47-320F-8C64-7990D0A5FB5A>
/usr/lib/system/libsystem_coreservices.dylib
        0x7fff8bae9000 -     0x7fff8bb01ff3  libsystem_coretls.dylib (121.31.1)
<4676F06D-274D-31BE-B61C-4D7A4AEF4858> /usr/lib/system/libsystem_coretls.dylib
        0x7fff8bb02000 -     0x7fff8bb08fff  libsystem_dnssd.dylib (765.30.11)
<DC708D84-ED7D-3936-B996-A67C66B8DDAA> /usr/lib/system/libsystem_dnssd.dylib
        0x7fff8bb09000 -     0x7fff8bb32ff7  libsystem_info.dylib (503.30.1)
<9ED9121C-F111-3FAD-BC2F-C95DEE1C9362> /usr/lib/system/libsystem_info.dylib
        0x7fff8bb33000 -     0x7fff8bb55ff7  libsystem_kernel.dylib (3789.41.3)
<B75B128C-7D7A-3318-91CD-82B5A69C5329> /usr/lib/system/libsystem_kernel.dylib
        0x7fff8bb56000 -     0x7fff8bb9dfe7  libsystem_m.dylib (3121.4)
<266DB92B-A86F-3691-80FB-1B26AD73CFF3> /usr/lib/system/libsystem_m.dylib
        0x7fff8bb9e000 -     0x7fff8bbbcff7  libsystem_malloc.dylib (116.30.3)
<F40DEE3B-386A-3529-A3F7-98117ED55BF4> /usr/lib/system/libsystem_malloc.dylib
        0x7fff8bbbd000 -     0x7fff8bc14ffb  libsystem_network.dylib
(856.30.16) <4AE368E9-605D-379D-B04C-2AC7455B8250>
/usr/lib/system/libsystem_network.dylib
        0x7fff8bc15000 -     0x7fff8bc1eff3  libsystem_networkextension.dylib
(563.30.15) <EB020B0C-7DF0-3EEF-8E3C-15DA3C01D687>
/usr/lib/system/libsystem_networkextension.dylib
        0x7fff8bc1f000 -     0x7fff8bc28ff3  libsystem_notify.dylib (165.20.1)
<E7FD3A7C-DD07-36E2-9FA4-7561F9F114DA> /usr/lib/system/libsystem_notify.dylib
        0x7fff8bc29000 -     0x7fff8bc31fe7  libsystem_platform.dylib (126.1.2)
<3CA06D4E-C00A-36DE-AA65-3A390097D1F6> /usr/lib/system/libsystem_platform.dylib
        0x7fff8bc32000 -     0x7fff8bc3cff7  libsystem_pthread.dylib (218.30.1)
<C869ED7C-BE29-3532-8E69-3A8DA1447EDC> /usr/lib/system/libsystem_pthread.dylib
        0x7fff8bc3d000 -     0x7fff8bc40ff7  libsystem_sandbox.dylib (592.31.1)
<7BBFDF96-293F-3DD9-B3A4-7C168280B441> /usr/lib/system/libsystem_sandbox.dylib
        0x7fff8bc41000 -     0x7fff8bc42fff  libsystem_secinit.dylib (24)
<5C1F1E47-0F7D-3E25-8DEB-D9DB1F902281> /usr/lib/system/libsystem_secinit.dylib
        0x7fff8bc43000 -     0x7fff8bc4afff  libsystem_symptoms.dylib
(532.30.6) <5D990CF5-B58F-39F7-B375-99B4EC62CFBD>
/usr/lib/system/libsystem_symptoms.dylib
        0x7fff8bc4b000 -     0x7fff8bc6bff7  libsystem_trace.dylib (518.30.7)
<6D34D1EA-2A3C-3D2D-803E-A666E6AEEE52> /usr/lib/system/libsystem_trace.dylib
        0x7fff8bc6c000 -     0x7fff8bc71ffb  libunwind.dylib (35.3)
<9F7C2AD8-A9A7-3DE4-828D-B0F0F166AAA0> /usr/lib/system/libunwind.dylib
        0x7fff8bc72000 -     0x7fff8bc9bff7  libxpc.dylib (972.30.7)
<65E41BB6-EBD5-3D93-B0BE-B190CEE4DD93> /usr/lib/system/libxpc.dylib

    External Modification Summary:
      Calls made by other processes targeting this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by all processes on this machine:
        task_for_pid: 553418
        thread_create: 0
        thread_set_state: 3395

    VM Region Summary:
    ReadOnly portion of Libraries: Total=127.0M resident=0K(0%)
swapped_out_or_unallocated=127.0M(100%)
    Writable regions: Total=40.6M written=0K(0%) resident=0K(0%)
swapped_out=0K(0%) unallocated=40.6M(100%)

                                    VIRTUAL   REGION 
    REGION TYPE                        SIZE    COUNT (non-coalesced) 
    ===========                     =======  ======= 
    Kernel Alloc Once                    8K        2 
    MALLOC                            28.2M        9 
    MALLOC guard page                   16K        4 
    MALLOC_LARGE (reserved)            128K        2         reserved VM
address space (unallocated)
    SBRK (reserved)                   4096K        2         reserved VM
address space (unallocated)
    STACK GUARD                       56.0M        2 
    Stack                             8192K        2 
    VM_ALLOCATE                          4K        2 
    __DATA                            1840K       45 
    __LINKEDIT                       113.8M        4 
    __TEXT                            13.1M       43 
    shared memory                        8K        3 
    ===========                     =======  ======= 
    TOTAL                            225.1M      108 
    TOTAL, minus reserved VM space   221.0M      108 

    Model: MacBookAir6,2, BootROM MBA61.0099.B26, 2 processors, Intel Core i7,
1.7 GHz, 8 GB, SMC 2.13f15
    Graphics: Intel HD Graphics 5000, Intel HD Graphics 5000, Built-In
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD,
0x483943434E4E4E384A544D4C41522D4E544D
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD,
0x483943434E4E4E384A544D4C41522D4E544D
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x117),
Broadcom BCM43xx 1.0 (7.21.171.68.1a5)
    Bluetooth: Version 5.0.3f1, 3 services, 27 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en0
    Serial ATA Device: APPLE SSD SD0256F, 251 GB
    USB Device: USB 3.0 Bus
    USB Device: Card Reader
    USB Device: BRCM20702 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: STM32 STLink
    Thunderbolt Bus: MacBook Air, Apple Inc., 23.6


The exact version I am talking about is:

    $ arm-none-eabi-gdb --version
    GNU gdb (GNU Tools for ARM Embedded Processors) 7.12.0.20161204-git

With the following configuration:

    $ arm-none-eabi-gdb --configuration
    This GDB was configured as follows:
       configure --host=x86_64-apple-darwin10 --target=arm-none-eabi
                 --with-auto-load-dir=:${prefix}/share/auto-load
                 --with-auto-load-safe-path=:${prefix}/share/auto-load
                 --with-expat
                
--with-gdb-datadir=/tmp/jenkins-GCC-6-build_build-toolchain-mac-93_20161216_1481890191/install-native/arm-none-eabi/share/gdb
(relocatable)
                
--with-jit-reader-dir=/tmp/jenkins-GCC-6-build_build-toolchain-mac-93_20161216_1481890191/install-native/lib/gdb
(relocatable)
                 --without-libunwind-ia64
                 --without-lzma
                 --without-guile
                
--with-separate-debug-dir=/tmp/jenkins-GCC-6-build_build-toolchain-mac-93_20161216_1481890191/install-native/lib/debug
(relocatable)
                
--with-system-gdbinit=/tmp/jenkins-GCC-6-build_build-toolchain-mac-93_20161216_1481890191/install-native/x86_64-apple-darwin10/arm-none-eabi/lib/gdbinit
(relocatable)
                 --without-babeltrace

    ("Relocatable" means the directory can be moved with the GDB installation
    tree, and GDB will still find it.)

It might be me doing something wrong after all - but this should never happen.
Any thoughts?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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