[MXS-4599] AVX instructions end up being executed on startup Created: 2023-04-26 Updated: 2023-05-08 Resolved: 2023-05-08 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 22.08.5, 23.02.1 |
| Fix Version/s: | 6.4.7, 22.08.6, 23.02.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Brad Chin (Inactive) | Assignee: | Niclas Antti |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Red Hat Enterprise Linux release 9.1 |
||
| Sprint: | MXS-SPRINT-182 |
| Description |
|
Original description: I start the installation process
I check the usual locations that maxscale files should be
There is no maxscale.log. I had the following in my /etc/maxscale.cnf
This is what I see in dmesg
|
| Comments |
| Comment by markus makela [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
bchin what does cat /proc/cpuinfo show on the machine? Also, could you check if /usr/share/maxscale contains any files? If it does, I think it installed correctly but the invalid instruction is causing it to not start. | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Brad Chin (Inactive) [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
And 15 more core info. | ||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
Looks like the CPU doesn't support AVX or AVX2. Is this a virtualized environment of some sorts? | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Brad Chin (Inactive) [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
This is a bare metal machine. just an old cpu. | ||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
Can you start MaxScale under GDB and see if you can catch where the problem is occurring? Something like this should work:
| ||||||||||||||||||||||||||||||||||||||||||
| Comment by Brad Chin (Inactive) [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
Oh yeah, it doesn't print the stacktrace if it's not requested Could you try again by running GDB manually:
Then once GDB has started, start MaxScale with:
Once it stops and hits that problem, run the bt command to get the full stacktrace. | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Brad Chin (Inactive) [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
this doesn't look useful, but hopefully it helps
| ||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2023-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||
|
I think that actually turned out to be very useful output. It shows that this is probably happening when the linker loads the core MaxScale library and somehow AVX instructions end up spilling over where they shouldn't be called. |