emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland


From: Eval EXEC
Subject: Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland
Date: Thu, 05 Sep 2024 19:15:10 +0800

Pip Cet <pipcet@protonmail.com> writes:

> "Eval EXEC" <execvy@gmail.com> writes:
>
>> Hello,
>> I'm helping to test scratch/igc branch, commit: 985247b6bee
>
> Thanks for the reports!
>
>> I build emacs by:
>> ```
>> make extraclean
>> ./autogen.sh \
>>   && ./configure CFLAGS='-O3 -mtune=native -march=native' \
>>   --prefix=$(realpath ../emacs-build/$(git branch --show-current | sed 
>> 's/\//_/g'))\
>>   --with-mps=yes \
>>   --with-imagemagick  \
>>   --with-modules \
>>   --without-compress-install \
>>   --with-native-compilation  --with-mailutils\
>>   --enable-link-time-optimization \
>>   --with-tree-sitter --with-xinput2  \
>>   --with-dbus  --with-native-compilation=aot \
>>   --with-file-notification=inotify\
>>   && make -j30 install
>> ```
>
> What's your CPU, and which compiler is in use?  "-march=native" means
> "optimize for the current CPU", so it's difficult to reproduce crashes
> without that knowledge.

I'm useing CPU: 13th Gen Intel(R) Core(TM) i9-13900H (20) @ 5.40 GHz

> I'd recommend these CFLAGS:
>
> -g3 -ggdb -fno-omit-frame-pointer
>
> in addition to what you have.

Thank you, now I'm going to compile scratch/igc branch by these CFLAGS.

> Can you disassemble 'copy_font_spec' and 'Flist' by running:
>
> $ gdb /path/to/emacs
> (gdb) disass copy_font_spec
> (gdb) disass Flist

Sorry, I have deleted the core dump file and the emacs binary.

> and post the output?  Also, when you post backtraces, once you've
> enabled '-g3 -ggdb', can you try using "bt full" rather than "bt" to get
> more useful backtraces?
>
>> What information should I provide to help investigating this?
>
> Ideally, you could run emacs from within gdb and keep the gdb session
> open after a crash (but remember to use "handle SIGSEGV nostop pass" if
> you don't source .gdbinit which should do that automatically, or it will
> stop at the first (harmless) SIGSEGV).  Please let us know if and when
> you get a crash that way and we can hopefully debug this further.

Thank you, now I'm going to recompile emacs by:
make extraclean
./autogen.sh \
  && ./configure CFLAGS='-g3 -ggdb -O2 -fno-omit-frame-pointer -mtune=native 
-march=native' \
  --prefix=$(realpath ../emacs-build/$(git branch --show-current | sed 
's/\//_/g'))\
  --with-mps=yes \
  --with-imagemagick  \
  --with-modules \
  --without-compress-install \
  --with-native-compilation  --with-mailutils\
  --enable-link-time-optimization \
  --with-tree-sitter --with-xinput2  \
  --with-dbus  --with-native-compilation=aot \
  --with-file-notification=inotify\
  && make -j30 install

Do you think it's right?


-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]