Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-9469

[7.11] SIGSEGV creating address with name only

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None

      *Describe the bug*
      An ActiveMQArtemisAddress with the address name only causes the following error:
      ```
      panic: runtime error: invalid memory address or nil pointer dereference [recovered]
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1ad148a]

      goroutine 417 [running]:
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
      /home/dbruscin/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:116 +0x1e5
      panic(

      {0x1e4ce80?, 0x35f6e60?}

      )
      /home/dbruscin/sdk/go1.21.11/src/runtime/panic.go:914 +0x21f
      github.com/artemiscloud/activemq-artemis-operator/controllers.createAddressResource(0xc000f07bf0?, 0xc00111d7f8, {{0x24f1578?, 0xc000254c00?}, 0xc0007a8f00?})
      /home/dbruscin/Workspace/brusdev/artemiscloud/activemq-artemis-operator/controllers/activemqartemisaddress_controller.go:236 +0x7ea
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisAddressReconciler).createQueue(0xc000f07bf0, 0xc00111d7f8, {{

      {0xc0007e45d8?, 0xc00001b950?}

      ,

      {0xc0007a8f00?, 0x36703c0?}

      }},

      {0x24f9be0, 0xc00001b950}

      )
      /home/dbruscin/Workspace/brusdev/artemiscloud/activemq-artemis-operator/controllers/activemqartemisaddress_controller.go:213 +0x269
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisAddressReconciler).Reconcile(0xc000f07bf0,

      {0x0?, 0x0?}

      , {{

      {0xc0007e45d8, 0x4}

      ,

      {0xc0007a8f00, 0x18}

      }})
      /home/dbruscin/Workspace/brusdev/artemiscloud/activemq-artemis-operator/controllers/activemqartemisaddress_controller.go:134 +0xb2f
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x24f22f8?,

      {0x24edbf0?, 0xc0014661b0?}

      , {{

      {0xc0007e45d8?, 0xb?}

      ,

      {0xc0007a8f00?, 0x0?}

      }})
      /home/dbruscin/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:119 +0xb7
      ```

      > [!TIP]
      > Vote this issue reacting with :+1: or :-1:

            dbruscin Domenico Francesco Bruscino
            rh-messaging-ci Messaging CI
            Julian Coleman Julian Coleman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: