all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#58923: Malformed core dumps on Guix System
@ 2022-10-31 10:23 Mathieu Othacehe
  2022-11-02 10:31 ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Mathieu Othacehe @ 2022-10-31 10:23 UTC (permalink / raw)
  To: 58923


Hello,

Working on https://issues.guix.gnu.org/58733, I noticed that there is
something wrong with the core dumps we are generating on Guix System.

--8<---------------cut here---------------start------------->8---
mathieu@meije ~/tmp [env]$ cat test.c 
#include <stdio.h>
int main() {
	int *t = NULL;
	return *t;
}

mathieu@meije ~/tmp [env]$ gcc test.c 
mathieu@meije ~/tmp [env]$ ulimit -c unlimited
mathieu@meije ~/tmp [env]$ ulimit -a
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) unlimited

mathieu@meije ~/tmp [env]$ echo "/tmp/my-core-%p" | sudo tee /proc/sys/kernel/core_pattern
/tmp/my-core-%p

mathieu@meije ~/tmp [env]$ ./a.out 
Segmentation fault (core dumped)

mathieu@meije ~/tmp [env]$ gdb ./a.out /tmp/my-core-5622
...
BFD: warning: /tmp/my-core-5622 has a segment extending past end of file
...
Failed to read a valid object file image from memory.
Core was generated by `./a.out'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000401102 in main ()
(gdb) bt
#0  0x0000000000401102 in main ()
Backtrace stopped: Cannot access memory at address 0x7fff14e14168
--8<---------------cut here---------------end--------------->8---

The "has a segment extending past end of file" warning appears to be
problematic and the "bt" command does not work which makes core dump
generation a bit useless.

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-10 18:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-31 10:23 bug#58923: Malformed core dumps on Guix System Mathieu Othacehe
2022-11-02 10:31 ` Ludovic Courtès
2022-11-02 11:25   ` Mathieu Othacehe
2022-11-02 14:18     ` zimoun
2022-11-03 11:21       ` Mathieu Othacehe
2022-11-10 10:14     ` Ludovic Courtès
2022-11-10 17:14       ` Mathieu Othacehe
2022-11-10 18:09         ` Maxim Cournoyer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.