История изменений
Исправление Behem0th, (текущая версия) :
Не могу осилить(
behem0th@ArchLinux ~/12 $ cat a.c
int main()
{
int * p = 0;
*p = 1;
}
behem0th@ArchLinux ~/12 $ gcc a.c
behem0th@ArchLinux ~/12 $ ./a.out
Ошибка сегментирования (core dumped)
В папке никакого файла core нее появляется. Нашел утилиту от системд systemd-coredumpctl. Запустив ее под рутом виден дамп.
ArchLinux /home/behem0th $ systemd-coredumpctl
TIME PID UID GID SIG EXE
Чт 2013-04-18 18:02:41 MSK 10044 1000 1000 11 /home/behem0th/a.out
Чт 2013-04-18 18:09:21 MSK 10643 1000 1000 11 /home/behem0th/a.out
Чт 2013-04-18 20:00:33 MSK 21341 1000 1000 11 /home/behem0th/12/a.out
ArchLinux /home/behem0th $ systemd-coredumpctl gdb
TIME PID UID GID SIG EXE
Чт 2013-04-18 20:00:33 MSK 21341 1000 1000 11 /home/behem0th/12/a.out
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/behem0th/12/a.out...(no debugging symbols found)...done.
[New LWP 21341]
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
#0 0x080483e0 in main ()
(gdb) bt
#0 0x080483e0 in main ()
(gdb) quit
ArchLinux /home/behem0th $
behem0th@ArchLinux ~ $ cat konq.sh
/usr/bin/konqueror
behem0th@ArchLinux ~ $ startx ~/konq.sh -- :1
Исходная версия Behem0th, :
Не могу осилить(
behem0th@ArchLinux ~/12 $ cat a.c
int main()
{
int * p = 0;
*p = 1;
}
behem0th@ArchLinux ~/12 $ gcc a.c
behem0th@ArchLinux ~/12 $ ./a.out
Ошибка сегментирования (core dumped)
В папке никакого файла core нее появляется. Нашел утилиту от системд systemd-coredumpctl. Запустив ее под рутом виден дамп.
ArchLinux /home/behem0th $ systemd-coredumpctl
TIME PID UID GID SIG EXE
Чт 2013-04-18 18:02:41 MSK 10044 1000 1000 11 /home/behem0th/a.out
Чт 2013-04-18 18:09:21 MSK 10643 1000 1000 11 /home/behem0th/a.out
Чт 2013-04-18 20:00:33 MSK 21341 1000 1000 11 /home/behem0th/12/a.out
ArchLinux /home/behem0th $ systemd-coredumpctl gdb
TIME PID UID GID SIG EXE
Чт 2013-04-18 20:00:33 MSK 21341 1000 1000 11 /home/behem0th/12/a.out
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/behem0th/12/a.out...(no debugging symbols found)...done.
[New LWP 21341]
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
#0 0x080483e0 in main ()
(gdb) bt
#0 0x080483e0 in main ()
(gdb) quit
ArchLinux /home/behem0th $
behem0th@ArchLinux ~ $ cat konq.sh
/usr/bin/konqueror
behem0th@ArchLinux ~ $ startx ~/konq.sh -- :1