Skip to content

Getting Nil Pointer Dereference error

Im getting an Panic error in my Gitlab-Runner script hosted on my Linux Machine. The following output is has given:

From CI/CD Gitlab

Preparing the "docker" executor
00:00
ERROR: Job failed: panic: runtime error: invalid memory address or nil pointer dereference

From Terminal of the runner

WARNING: Job failed: panic: runtime error: invalid memory address or nil pointer dereference  duration_s=0.000431023 job=1329475233 project=27264082 run
ner=wrhxVasa                                                                                                                                            
WARNING: Failed to process runner                   builds=0 error=panic: runtime error: invalid memory address or nil pointer dereference executor=dock
er runner=wrhxVasa   

config.toml

oncurrent = 1                                                                                                                                          
check_interval = 0                                                                                                                                      
                                                                                                                                                        
[session_server]                                                                                                                                        
  session_timeout = 1800                                                                                                                                
                                                                                                                                                        
[[runners]]                                                                                                                                             
  name = "Home Build Runner Node 1"                                                                                                                            
  url = "https://gitlab.com/"                                                                                                                           
  token = "hiddenfornow"                                                                                                                        
  executor = "docker"                                                                                                                                   
  [runners.custom_build_dir]                                                                                                                            
  [runners.cache]                                                                                                                                       
    [runners.cache.s3]                                                                                                                                  
    [runners.cache.gcs]                                                                                                                                 
    [runners.cache.azure]     

CI/CD Script

image: jjveldscholten/avr_toolchain

stages:
    - build
    # - test
    # - release

build:
  stage: build
  script:
    - avr-gcc -Wall -g -Os -mmcu=attiny85 -o main.bin main.c
    - avr-objcopy -j .text -j .data -O ihex main.bin main.hex
    - ls
  artifacts:
    paths:
      - main.hex
      - main.bin

Side info

  • 12GB RAM
  • 3Ghz Processor
  • Linux Ubuntu System with Docker installed Runtime platform: arch=amd64 os=linux pid=6 revision=7a6612da version=13.12.0

What might be causing this issue?