Project

General

Profile

Actions

Bug #12747

closed

sigsetjmp should allow for 8 byte aligned buffer on amd64

Added by Vitaliy Gusev over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

mdb segfaults if libc compiled with -mtune=intel option on amd64 arch with SSE2 optimisation.

If compile with gcc-7 and '-mtune=intel' option, mdb crashes shortly in __csigsetjmp after starting it:

# pstack /var/cores/core.mdb.1536 
core '/var/cores/core.mdb.1536' of 1536:        mdb
 fffffd7fef285484 __csigsetjmp (4fd128, 1, fffffd7fffdfeab0) + 74
 fffffd7fef2856f0 sigsetjmp () + 100
 0000000000474701 termio_read (4eee50, 527690, 400) + c1
 000000000044ef0e iob_read (4e1c50, 4eee50) + 1e
 0000000000451e61 mdb_iob_getc (4e1c50) + 51
 000000000047a880 input () + 10
 000000000047ae9c yylook () + 6c
 0000000000479ccf yylex () + f
 000000000047b685 yyparse () + 345
 000000000043a300 mdb_run () + 300
 0000000000457f2d main (1, fffffd7fffdffc78, fffffd7fffdffc88) + d7d
 00000000004363b3 _start_crt () + 83
 0000000000436318 _start () + 18

Files

intel-mtune.patch (2.69 KB) intel-mtune.patch Vitaliy Gusev, 2020-07-05 04:43 PM
Actions

Also available in: Atom PDF