Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-70250

pmda-bcc dumps core during its registration

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.6
    • bcc
    • Yes
    • Important
    • rhel-sst-kernel-tps
    • ssg_core_kernel
    • None
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • Automated
    • All
    • None

      What were you trying to do that didn't work?

      Registration (vi athe ./Install script) of pmda-bcc fails and generates a core file

      What is the impact of this issue to you?

      Can not use BCC metrics in PCP

      Please provide the package NVR for which the bug is seen:

      pcp-6.3.2-2.el9

      How reproducible is this bug?:

      Always on all supported arches

      Steps to reproduce

      1.  Install PCP and pmda-bcc
        yum install -y pcp-zeroconf pcp-pmda-bcc
        
      2.  Try to register the pmda/bcc
        cd /var/lib/pcp/pmdas/bcc
        ./Install
        

      Expected results

      The pmda-bcc is registerd

      Actual results

      The ./Install script fails with the following error message:

      Info: Initializing, currently in 'notready' state.
      Info: Enabled modules:
      Info: ['netproc']
      Info: Configuring modules:
      Info: netproc
      Info: Modules configured.
      Info: Initializing modules:
      Info: netproc
      : CommandLine Error: Option 'openmp-ir-builder-optimistic-attributes' registered more than once!
      LLVM ERROR: inconsistency in registered CommandLine options
      /usr/share/pcp/lib/pmdaproc.sh: line 856: 450125 Aborted                 (core dumped) PCP_PYTHON_DOMAIN=1 /usr/bin/python3 /var/lib/pcp/pmdas/bcc/pmdabcc.python
      Arrgh! failed to create /var/lib/pcp/pmdas/bcc/domain.h.python from /var/lib/pcp/pmdas/bcc/pmdabcc.python
      

      coredumpctl provides the following information:

                 PID: 464978 (python3)
                 UID: 987 (pcpqa)
                 GID: 987 (pcpqa)
              Signal: 6 (ABRT)
           Timestamp: Fri 2024-12-06 04:24:06 EST (21min ago)
        Command Line: /usr/bin/python3 -c $'import bcc'
          Executable: /usr/bin/python3.9
       Control Group: /user.slice/user-0.slice/session-14.scope
                Unit: session-14.scope
               Slice: user-0.slice
             Session: 14
           Owner UID: 0 (root)
             Boot ID: 540a6eb28f7a4cef9caef14e9179c4d7
          Machine ID: 40628029e2a343c0b88d6cccc7dab7e0
            Hostname: beaver-21.bkr.lab.eng.rdu2.dc.redhat.com
             Storage: /var/lib/systemd/coredump/core.python3.987.540a6eb28f7a4cef9caef14e9179c4d7.464978.1733477046000000.zst (present)
        Size on Disk: 2.7M
             Message: Process 464978 (python3) of user 987 dumped core.
                      
                      Stack trace of thread 464978:
                      #0  0x00007ff85c88bddc __pthread_kill_implementation (libc.so.6 + 0x8bddc)
                      #1  0x00007ff85c83e886 raise (libc.so.6 + 0x3e886)
                      #2  0x00007ff85c828833 abort (libc.so.6 + 0x28833)
                      #3  0x00007ff855b7df3c _ZN4llvm18report_fatal_errorERKNS_5TwineEb (libclang-cpp.so.18.1 + 0x3f7df3c)
                      #4  0x00007ff855b7dd9b _ZN4llvm18report_fatal_errorEPKcb (libclang-cpp.so.18.1 + 0x3f7dd9b)
                      #5  0x00007ff855b709da _ZN12_GLOBAL__N_117CommandLineParser9addOptionEPN4llvm2cl6OptionEPNS2_10SubCommandE (libclang-cpp.so.18.1 + 0x3f709da)
                      #6  0x00007ff855b5c5fa _ZN4llvm2cl6Option11addArgumentEv (libclang-cpp.so.18.1 + 0x3f5c5fa)
                      #7  0x00007ff855c42e1e _ZN4llvm2cl3optIbLb0ENS0_6parserIbEEEC2IJA40_cNS0_12OptionHiddenENS0_4descENS0_11initializerIbEEEEEDpRKT_ (libclang-cpp.so.18.1 + 0x4042e1e)
                      #8  0x00007ff852a596c8 _GLOBAL__sub_I_OMPIRBuilder.cpp (libclang-cpp.so.18.1 + 0xe596c8)
                      #9  0x00007ff85d12b51e call_init (ld-linux-x86-64.so.2 + 0x551e)
                      #10 0x00007ff85d12b60c _dl_init (ld-linux-x86-64.so.2 + 0x560c)
                      #11 0x00007ff85d1284d6 __GI__dl_catch_exception (ld-linux-x86-64.so.2 + 0x24d6)
                      #12 0x00007ff85d131ffe dl_open_worker (ld-linux-x86-64.so.2 + 0xbffe)
                      #13 0x00007ff85d128445 __GI__dl_catch_exception (ld-linux-x86-64.so.2 + 0x2445)
                      #14 0x00007ff85d1323ff _dl_open (ld-linux-x86-64.so.2 + 0xc3ff)
                      #15 0x00007ff85c88614c dlopen_doit (libc.so.6 + 0x8614c)
                      #16 0x00007ff85d128445 __GI__dl_catch_exception (ld-linux-x86-64.so.2 + 0x2445)
                      #17 0x00007ff85d128593 _dl_catch_error (ld-linux-x86-64.so.2 + 0x2593)
                      #18 0x00007ff85c885c1e _dlerror_run (libc.so.6 + 0x85c1e)
                      #19 0x00007ff85c886201 dlopen@GLIBC_2.2.5 (libc.so.6 + 0x86201)
                      #20 0x00007ff85ca340bf py_dl_open (_ctypes.cpython-39-x86_64-linux-gnu.so + 0x150bf)
                      #21 0x00007ff85cd51708 cfunction_call (libpython3.9.so.1.0 + 0x151708)
                      #22 0x00007ff85cd39683 _PyObject_MakeTpCall (libpython3.9.so.1.0 + 0x139683)
                      #23 0x00007ff85cd3511c _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x13511c)
                      #24 0x00007ff85cd2e999 _PyEval_EvalCode (libpython3.9.so.1.0 + 0x12e999)
                      #25 0x00007ff85cd40ec5 _PyFunction_Vectorcall (libpython3.9.so.1.0 + 0x140ec5)
                      #26 0x00007ff85cd38f45 _PyObject_FastCallDictTstate (libpython3.9.so.1.0 + 0x138f45)
                      #27 0x00007ff85cd4c0e6 slot_tp_init (libpython3.9.so.1.0 + 0x14c0e6)
                      #28 0x00007ff85cd3969b _PyObject_MakeTpCall (libpython3.9.so.1.0 + 0x13969b)
                      #29 0x00007ff85cd35934 _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x135934)
                      #30 0x00007ff85cd2e999 _PyEval_EvalCode (libpython3.9.so.1.0 + 0x12e999)
                      #31 0x00007ff85cd2e605 _PyEval_EvalCodeWithName (libpython3.9.so.1.0 + 0x12e605)
                      #32 0x00007ff85cde3517 PyEval_EvalCode (libpython3.9.so.1.0 + 0x1e3517)
                      #33 0x00007ff85cde8193 builtin_exec (libpython3.9.so.1.0 + 0x1e8193)
                      #34 0x00007ff85cd41a70 cfunction_vectorcall_FASTCALL (libpython3.9.so.1.0 + 0x141a70)
                      #35 0x00007ff85cd36277 _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x136277)
                      #36 0x00007ff85cd2e999 _PyEval_EvalCode (libpython3.9.so.1.0 + 0x12e999)
                      #37 0x00007ff85cd40ec5 _PyFunction_Vectorcall (libpython3.9.so.1.0 + 0x140ec5)
                      #38 0x00007ff85cd3519b _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x13519b)
                      #39 0x00007ff85cd411bb function_code_fastcall (libpython3.9.so.1.0 + 0x1411bb)
                      #40 0x00007ff85cd300fa _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x1300fa)
                      #41 0x00007ff85cd411bb function_code_fastcall (libpython3.9.so.1.0 + 0x1411bb)
                      #42 0x00007ff85cd2fdf7 _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x12fdf7)
                      #43 0x00007ff85cd411bb function_code_fastcall (libpython3.9.so.1.0 + 0x1411bb)
                      #44 0x00007ff85cd2fdf7 _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x12fdf7)
                      #45 0x00007ff85cd411bb function_code_fastcall (libpython3.9.so.1.0 + 0x1411bb)
                      #46 0x00007ff85cd4078c object_vacall (libpython3.9.so.1.0 + 0x14078c)
                      #47 0x00007ff85cd5162b _PyObject_CallMethodIdObjArgs (libpython3.9.so.1.0 + 0x15162b)
                      #48 0x00007ff85cd50ad5 PyImport_ImportModuleLevelObject (libpython3.9.so.1.0 + 0x150ad5)
                      #49 0x00007ff85cd34c6b _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x134c6b)
                      #50 0x00007ff85cd2e999 _PyEval_EvalCode (libpython3.9.so.1.0 + 0x12e999)
                      #51 0x00007ff85cd2e605 _PyEval_EvalCodeWithName (libpython3.9.so.1.0 + 0x12e605)
                      #52 0x00007ff85cde3517 PyEval_EvalCode (libpython3.9.so.1.0 + 0x1e3517)
                      #53 0x00007ff85cde8193 builtin_exec (libpython3.9.so.1.0 + 0x1e8193)
                      #54 0x00007ff85cd41a70 cfunction_vectorcall_FASTCALL (libpython3.9.so.1.0 + 0x141a70)
                      #55 0x00007ff85cd36277 _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x136277)
                      #56 0x00007ff85cd2e999 _PyEval_EvalCode (libpython3.9.so.1.0 + 0x12e999)
                      #57 0x00007ff85cd40ec5 _PyFunction_Vectorcall (libpython3.9.so.1.0 + 0x140ec5)
                      #58 0x00007ff85cd3519b _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x13519b)
                      #59 0x00007ff85cd411bb function_code_fastcall (libpython3.9.so.1.0 + 0x1411bb)
                      #60 0x00007ff85cd300fa _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x1300fa)
                      #61 0x00007ff85cd411bb function_code_fastcall (libpython3.9.so.1.0 + 0x1411bb)
                      #62 0x00007ff85cd2fdf7 _PyEval_EvalFrameDefault (libpython3.9.so.1.0 + 0x12fdf7)
                      #63 0x00007ff85cd411bb function_code_fastcall (libpython3.9.so.1.0 + 0x1411bb)
                      ELF object binary architecture: AMD x86-64
      

              jmarchan@redhat.com Jerome Marchand
              jkurik@redhat.com Jan Kurik
              Jerome Marchand Jerome Marchand
              Ziqian (Zamir) SUN Ziqian (Zamir) SUN
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: