KolibriOS / cminusminus

C-- compiler upstream
37 stars 3 forks source link

Ошибка сегментирования #2

Open mxlgv opened 4 years ago

mxlgv commented 4 years ago

При запуске c-- в LINUX с параметром /IP без знака "=" происходит падение программы с ошибкой сегментирования. Причём в версии 0.239 с SVN такой ошибки нет.

i] ℤ gdb ../build/c--                                                                                                                                                                                                             12:31:29 
Reading symbols from ../build/c--...
gdb$ run /IP
Starting program: /home/KolibriOS/cmm/c--2020/build/c-- /IP
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.31-4.fc32.x86_64

SPHINX C-- Compiler   Version 0.240 b26   Sep 10 2020

Program received signal SIGSEGV, Segmentation fault.
-----------------------------------------------------------------------------------------------------------------------[regs]
  RAX: 0x0000000000000000  RBX: 0x0000000000000000  RBP: 0x00007FFFFFFFCF60  RSP: 0x00007FFFFFFFCF38  o d I t S z a p C 
  RDI: 0x0000000000000000  RSI: 0x00007FFFFFFFD5BE  RDX: 0x0000000000000000  RCX: 0x0000000000000000  RIP: 0x00007FFFF7BBE4C5
  R8 : 0x0000000000000000  R9 : 0x0000000000000001  R10: 0x0000000000400944  R11: 0x00007FFFF7A91010  R12: 0x0000000000402380
  R13: 0x0000000000000000  R14: 0x0000000000000000  R15: 0x0000000000000000
  CS: 0033  DS: 0000  ES: 0000  FS: 0000  GS: 0000  SS: 002B
-----------------------------------------------------------------------------------------------------------------------[code]
=> 0x7ffff7bbe4c5 <__strlen_avx2+21>:   vpcmpeqb (%rdi),%ymm0,%ymm1
   0x7ffff7bbe4c9 <__strlen_avx2+25>:   vpmovmskb %ymm1,%eax
   0x7ffff7bbe4cd <__strlen_avx2+29>:   test   %eax,%eax
   0x7ffff7bbe4cf <__strlen_avx2+31>:   jne    0x7ffff7bbe5c0 <__strlen_avx2+272>
   0x7ffff7bbe4d5 <__strlen_avx2+37>:   add    $0x20,%rdi
   0x7ffff7bbe4d9 <__strlen_avx2+41>:   and    $0x1f,%ecx
   0x7ffff7bbe4dc <__strlen_avx2+44>:   and    $0xffffffffffffffe0,%rdi
   0x7ffff7bbe4e0 <__strlen_avx2+48>:   jmp    0x7ffff7bbe524 <__strlen_avx2+116>
-----------------------------------------------------------------------------------------------------------------------------
0x00007ffff7bbe4c5 in __strlen_avx2 () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install libgcc-10.2.1-1.fc32.x86_64 libstdc++-10.2.1-1.fc32.x86_64
gdb$ bt
#0  0x00007ffff7bbe4c5 in __strlen_avx2 () from /lib64/libc.so.6
#1  0x00000000004049ac in IncludePath (buf=0x0) at /home/KolibriOS/cmm/c--2020/main.cpp:1269
#2  0x0000000000403dfc in SelectComand (pptr=0x7fffffffd5be "IP", count=0x7fffffffd028) at /home/KolibriOS/cmm/c--2020/main.cpp:880
#3  0x0000000000402631 in main (argc=0x2, argv=0x7fffffffd128) at /home/KolibriOS/cmm/c--2020/main.cpp:334