Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-59116

Debug symbols generate with DWARF v5 in most recent Trinity builds - Unable to open with gdb <10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6.0
    • 7.6.0
    • build
    • None
    •  7.6.0-1627
    • Untriaged
    • 0
    • Yes
    • Build Team 2023 Sprint 12

    Description

      Observed in MB-59087 - when attempting to open recent CB Server binaries with GDB, we are lacking debug (line number etc) information. When I open the core file with gdb on the 172.23.96.14 itself I get a more precise information:

       
      (gdb) bt 
      #0 0x00007f390d99f1f7 in raise () from /lib64/libc.so.6 
      #1 0x00007f390d9a08e8 in abort () from /lib64/libc.so.6 
      Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /usr/lib/debug/opt/couchbase/lib/libstdc++.so.6.0.32-7.6.0-1627.x86_64.debug] 
      

      The problem with the above is that we are linking memcached to some libraries that were compiled with DWARF v5 (https://dwarfstd.org/dwarf5std.html), but our gdb on that machine supports only v{2, 3, 4}.

      # gdb --version 
      GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7_4.1 
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              paolo.cocchi Paolo Cocchi
              paolo.cocchi Paolo Cocchi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 16h
                  16h

                  Gerrit Reviews

                    There are no open Gerrit changes

                    PagerDuty