Skip to content

Segfault caused by max frame size missmatch #40

@tsamaras

Description

@tsamaras

I think this segfault appeared because the frame fragmentation capability was removed in haproxy 3.1. We have tune.bufsize set to 65536 and were seeing sporadic segfaults because the default SPOE max frame size is set to tune.bufsize -4. Setting --max-frame-size to 65532 has stopped the segfaults.

If there's any more information you need I'd be happy to help.

OS: Ubuntu 24.04-amd64
version info:

$ haproxy -v
HAProxy version 3.1.6 2025/04/11 - https://haproxy.org/
Status: stable branch - will stop receiving fixes around Q1 2026.
Known bugs: http://www.haproxy.org/bugs/bugs-3.1.6.html
Running on: Linux 6.8.0-1025-gcp #27-Ubuntu SMP Thu Feb 20 21:59:09 UTC 2025 x86_64
$ spoa-mirror -V

spoa-mirror v1.2.19 [build 2523] by Miroslav Zagorac <mzagorac@haproxy.com>, Mar 14 2025

  package version         : 1.2.19
  host operating system   : x86_64-pc-linux-gnu
  source code location    : .
  compiler                : gcc
  preprocessor flags      :  
  compiler flags          : -g -O2 -g -O0  -Wall -Wextra -Waggregate-return -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wcomment -Wfloat-equal -Wimplicit -Winline -Wmain -Wmissing-braces -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wshadow -Wstrict-prototypes -Wswitch -Wtrigraphs -Wundef -Wuninitialized -Wunused -Wwrite-strings -Wformat=2 -fno-strict-aliasing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions