{"thread":{"id":"57662","subject":"bug report: git aborted after ctrl+c","startedAt":"2022-04-05T03:08:28Z","lastAt":"2022-04-05T03:08:28Z","messageCount":1,"participants":["Joel Stanley"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"453078","messageId":"CACPK8Xdkd6XPCG2fd3p7qMAOoErg2oeHhXa+29nBTc0EzGTvow@mail.gmail.com","threadId":"57662","inReplyTo":null,"subject":"bug report: git aborted after ctrl+c","fromName":"Joel Stanley","fromEmail":"joel@jms.id.au","sentAt":"2022-04-05T02:53:28Z","receivedAt":"2022-04-05T03:08:28Z","isPatch":false,"sender":{"key":"joel@jms.id.au","avatar":null},"body":"I managed to crash git with ctrl+c. I suspect this is because I caught\nit in malloc, which aborted. If that's the case then it might not be\ninteresting for git developers, but I include the bug report here for\ncompleteness.\n\nI performed a clone, using an existing clone as a reference. I then pressed\nctrl+c a second or so later:\n\n$ git clone --reference linus https://github.com/shenki/linux shenki\n^Cgit: malloc.c:2517: sysmalloc: Assertion `(old_top == initial_top (av) &&\nold_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse\n(old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.\nAborted (core dumped)\n\nThere was a directory created, but I removed it before thinking it\nmight be interesting to keep around.\n\nUnfortunately systemd ate the core dump, as I can't find it on my system.\n\ncoredumpctl dump 1916302\n[sudo] password for joel:\n           PID: 1916302 (git)\n           UID: 1007 (joel)\n           GID: 1007 (joel)\n        Signal: 6 (ABRT)\n     Timestamp: Mon 2022-04-04 20:23:11 EDT (2h 22min ago)\n  Command Line: git clone --reference linus\nhttps://github.com/shenki/linux shenki\n    Executable: /usr/bin/git\n Control Group: /user.slice/user-1007.slice/session-849.scope\n          Unit: session-849.scope\n         Slice: user-1007.slice\n       Session: 849\n     Owner UID: 1007 (joel)\n       Boot ID: ad25355486094e3d986595692797a966\n    Machine ID: af0681c1d3194b8a9f9e1dd4c056ec09\n      Hostname: kal1\n       Storage: none\n       Message: Process 1916302 (git) of user 1007 dumped core.\nCoredump entry has no core attached (neither internally in the journal\nnor externally on disk).\n\n[System Info]\ngit version:\ngit version 2.31.1\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 5.14.0-1.6.1.el9.x86_64 #1 SMP Mon Oct 4 14:14:47 EDT 2021 x86_64\ncompiler info: gnuc: 11.2\nlibc info: glibc: 2.34\n$SHELL (typically, interactive shell): /bin/bash\n"}]}