Skip to content

run failures on i386 #251

@tianon

Description

@tianon

run failures on i386 (https://github.com/docker-library/haproxy/actions/runs/18622672033/job/53215587765).

This is what I get from the container when run locally:

[NOTICE]   (1) : Initializing new worker (8)

FATAL: bug condition "sizeof(struct shm_stats_file_object) != 544" matched at src/stats-file.c:824
shm_stats_file_object struct size changed, is is part of the exported API: ensure all precautions were taken (ie: shm_stats_file version change) before adjusting this
  call trace(8):
  |     0x569017bf <a8 ef ff e8 c1 7f ef ff]: shm_stats_file_prepare+0x2f/0x47 > ha_backtrace_to_stderr
  |     0x5680f45f <8b 5d e4 e8 31 23 0f 00]: ha_dump_backtrace+0x160bf > shm_stats_file_prepare
  |     0x56614d0c <ff ff ff e8 94 a6 1f 00]: main+0xf8c/0x2453 > ha_dump_backtrace+0x16000

Hint: when reporting this bug to developers, please check if a core file was
      produced, open it with 'gdb', issue 'bt' to produce a backtrace for the
      current thread only, then join it with the bug report.

FATAL: bug condition "sizeof(struct shm_stats_file_object) != 544" matched at src/stats-file.c:824
shm_stats_file_object struct size changed, is is part of the exported API: ensure all precautions were taken (ie: shm_stats_file version change) before adjusting this
  call trace(8):
  |     0x569017bf <a8 ef ff e8 c1 7f ef ff]: shm_stats_file_prepare+0x2f/0x47 > ha_backtrace_to_stderr
  |     0x5680f45f <8b 5d e4 e8 31 23 0f 00]: ha_dump_backtrace+0x160bf > shm_stats_file_prepare
  |     0x56614d0c <ff ff ff e8 94 a6 1f 00]: main+0xf8c/0x2453 > ha_dump_backtrace+0x16000

Hint: when reporting this bug to developers, please check if a core file was
      produced, open it with 'gdb', issue 'bt' to produce a backtrace for the
      current thread only, then join it with the bug report.

Here are a couple backtraces:

root@0a33fa869304:/var/lib/haproxy# gdb /usr/local/sbin/haproxy /var/lib/haproxy/core.950
GNU gdb (Debian 16.3-1) 16.3
Reading symbols from /usr/local/sbin/haproxy...

warning: Can't open file /dev/zero (deleted) during file-backed mapping note processing
[New LWP 950]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/sbin/haproxy -W -db -f /usr/local/etc/haproxy/haproxy.cfg'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x5690e7d5 in shm_stats_file_prepare () at src/stats-file.c:824

warning: 824    src/stats-file.c: No such file or directory
(gdb) bt
#0  0x5690e7d5 in shm_stats_file_prepare () at src/stats-file.c:824
#1  0x5681c45f in step_init_2 (argv=argv@entry=0xffad6e64, argc=<optimized out>) at src/haproxy.c:2165
#2  0x56621d0c in main (argc=<optimized out>, argv=<optimized out>) at src/haproxy.c:3379
(gdb) quit
root@0a33fa869304:/var/lib/haproxy# gdb /usr/local/sbin/haproxy /var/lib/haproxy/core.952
GNU gdb (Debian 16.3-1) 16.3
Reading symbols from /usr/local/sbin/haproxy...

warning: Can't open file /dev/zero (deleted) during file-backed mapping note processing
[New LWP 952]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/sbin/haproxy -W -db -f /usr/local/etc/haproxy/haproxy.cfg'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x5690e7d5 in shm_stats_file_prepare () at src/stats-file.c:824

warning: 824    src/stats-file.c: No such file or directory
(gdb) bt
#0  0x5690e7d5 in shm_stats_file_prepare () at src/stats-file.c:824
#1  0x5681c45f in step_init_2 (argv=argv@entry=0xffad6e64, argc=<optimized out>) at src/haproxy.c:2165
#2  0x56621d0c in main (argc=<optimized out>, argv=<optimized out>) at src/haproxy.c:3379
(gdb) quit

Originally posted by @yosifkit in docker-library/official-images#20123 (comment)

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