unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "Mathieu Othacehe" <othacehe@gnu.org>, "Ludovic Courtès" <ludo@gnu.org>
Cc: 58923@debbugs.gnu.org
Subject: bug#58923: Malformed core dumps on Guix System
Date: Wed, 02 Nov 2022 15:18:13 +0100	[thread overview]
Message-ID: <87k04de8yi.fsf@gmail.com> (raw)
In-Reply-To: <87edulmwd7.fsf@gnu.org>

Hi,

On mer., 02 nov. 2022 at 12:25, Mathieu Othacehe <othacehe@gnu.org> wrote:

>                                    I'll see if this can be reproduced on
> a foreign distribution.

Using Guix 00ff6f7.

--8<---------------cut here---------------start------------->8---
$ uname -a
Linux pfiuh07 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ echo "/tmp/my-core-%p" | sudo tee /proc/sys/kernel/core_pattern
/tmp/my-core-%p

$ guix shell -C coreutils gcc-toolchain gdb

/tmp/bug-58923 [env]$ cat test.c
#include <stdio.h>
int main() {
        int *t = NULL;
        return *t;
}
/tmp/bug-58923 [env]$ gcc test.c

/tmp/bug-58923 [env]$ ulimit -a
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) 0
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 255927
max locked memory           (kbytes, -l) 65536
max memory size             (kbytes, -m) unlimited
open files                          (-n) 1024
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 0
stack size                  (kbytes, -s) 9788
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 255927
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited

/tmp/bug-58923 [env]$ ulimit -c unlimited
/tmp/bug-58923 [env]$ ulimit -a
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) unlimited
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 255927
max locked memory           (kbytes, -l) 65536
max memory size             (kbytes, -m) unlimited
open files                          (-n) 1024
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 0
stack size                  (kbytes, -s) 9788
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 255927
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited

/tmp/bug-58923 [env]$ ./a.out
Segmentation fault (core dumped)

/tmp/bug-58923 [env]$ ls /tmp/
bug-58923  my-core-23

/tmp/bug-58923 [env]$ gdb ./a.out /tmp/my-core-23
GNU gdb (GDB) 12.1
Copyright (C) 2022 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 "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./a.out...
(No debugging symbols found in ./a.out)
[New LWP 23]
Core was generated by `./a.out'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000401106 in main ()
(gdb) bt
#0  0x0000000000401106 in main ()
(gdb) exit
/tmp/bug-58923 [env]$ exit
exit
--8<---------------cut here---------------end--------------->8---


Cheers,
simon




  reply	other threads:[~2022-11-02 14:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k04de8yi.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=58923@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    --cc=othacehe@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).