[Bug 1339801] [NEW] Illegal Instruction crash on startup with spread_checks in src/checks.c

2014-07-09 Thread Pivotal Cloud Foundry Services Team
Public bug reported:

haproxy crashes after starting up successfully, when the spread_checks
option is provided.

According to GDB, here is the backtrace of the crash:
```
Program received signal SIGILL, Illegal instruction.
0x0042b97f in process_chk (t=0x6ef7c0) at src/checks.c:1587
1587src/checks.c: No such file or directory.
in src/checks.c
(gdb) bt
#0  0x0042b97f in process_chk (t=0x6ef7c0) at src/checks.c:1587
#1  0x004103ee in process_runnable_tasks (next=0x7fffe4cc) at 
src/task.c:240
#2  0x00406440 in run_poll_loop () at src/haproxy.c:1304
#3  0x00408966 in main (argc=value optimized out, 
argv=0x7fffe6f8) at src/haproxy.c:1638
```

it's caused by this code:
```
if (global.spread_checks  0) {
rv = srv_getinter(check) * global.spread_checks / 100;
rv -= (int) (2 * rv * (rand() / (RAND_MAX + 1.0)));
}
```
on line 1587of src/checks.c (the second line in the if clause).

We're running haproxy 1.5.0

 lsb_release -rd
Description:Ubuntu 10.04.4 LTS
Release:10.04

 uname -a
Linux 789b4b1b-6f7b-44cf-accc-88d90341f17a 3.8.0-29-generic #42~precise1-Ubuntu 
SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 GNU/Linux

** Affects: haproxy (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to haproxy in Ubuntu.
https://bugs.launchpad.net/bugs/1339801

Title:
  Illegal Instruction crash on startup with spread_checks in
  src/checks.c

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1339801/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1339801] [NEW] Illegal Instruction crash on startup with spread_checks in src/checks.c

2014-07-09 Thread Pivotal Cloud Foundry Services Team
Public bug reported:

haproxy crashes after starting up successfully, when the spread_checks
option is provided.

According to GDB, here is the backtrace of the crash:
```
Program received signal SIGILL, Illegal instruction.
0x0042b97f in process_chk (t=0x6ef7c0) at src/checks.c:1587
1587src/checks.c: No such file or directory.
in src/checks.c
(gdb) bt
#0  0x0042b97f in process_chk (t=0x6ef7c0) at src/checks.c:1587
#1  0x004103ee in process_runnable_tasks (next=0x7fffe4cc) at 
src/task.c:240
#2  0x00406440 in run_poll_loop () at src/haproxy.c:1304
#3  0x00408966 in main (argc=value optimized out, 
argv=0x7fffe6f8) at src/haproxy.c:1638
```

it's caused by this code:
```
if (global.spread_checks  0) {
rv = srv_getinter(check) * global.spread_checks / 100;
rv -= (int) (2 * rv * (rand() / (RAND_MAX + 1.0)));
}
```
on line 1587of src/checks.c (the second line in the if clause).

We're running haproxy 1.5.0

 lsb_release -rd
Description:Ubuntu 10.04.4 LTS
Release:10.04

 uname -a
Linux 789b4b1b-6f7b-44cf-accc-88d90341f17a 3.8.0-29-generic #42~precise1-Ubuntu 
SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 GNU/Linux

** Affects: haproxy (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1339801

Title:
  Illegal Instruction crash on startup with spread_checks in
  src/checks.c

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1339801/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs