Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16123

Re: [PATCH] Add active mark, face support; activate mark on paste

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: [PATCH] Add active mark, face support; activate mark on paste
Date 2020-04-11 17:11 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.36.1586639522.3066.bug-bash@gnu.org> (permalink)
References <M4dFweU--3-2@tutanota.com> <875c423e-0420-78d2-af4b-dfb168432e2d@case.edu> <M4dz8wC--3-2@tutanota.com> <902c38ef-7534-8f6d-51b7-daa0843b8440@case.edu>

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 4/11/20 12:04 PM, gentoo_eshoes@tutanota.com wrote:

>>
>> What's your $PS1?
>>
> $ echo $PS1
> \ -----------\n\ \[\a\]\ \[\e[1;37m\e[42m\]\u@\H\[\e[0m\] \ \[\033[1;30m\]$(date "+%Y/%m/%d %H:%M:%S")\[\033[0m\] \ \[\e[0;37m\]\s\V t:\l j:\j \ d:${SHLVL} pp:${PPID} p:$$ ut`cat /proc/uptime | cut -f1 -d.`\[\e[0m\]\n\ \[\e[0;37m\]!\!\[\e[0m\] \ \[\033[0;36m\]\#\[\033[0m\] \ $(evalexitcode "${__earlyec[@]}" ) \ \[\e[0m\]$(uname -r) $(uname -v) $(ps_lepath "\w")\[ \033];\w\a\] \[\e[1;32m\]\$\[\e[0m\] \

I have to hand it to you; that's one of the most complicated prompt strings
I've ever seen.

In any event, that didn't help me reproduce the seg fault, but I was able
to use the stack traceback you sent to find a problem. I've attached a
patch.


>> You should just have to run `ulimit -c unlimited'.
>>
> Thank you for your reply. It was already 'unlimited'. But when firefox segfaults it works (that is, `coredumpctl -r`  does list it), yet it doesn't happen for bash and I thought it's because bash is somehow catching it and handling it internally, 

Bash does catch SIGSEGV and does some cleanup, to the extent that it can do
anything, and kills itself with the same signal (that's why you see 139 as
the exit status). That should still result in a core dump.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: [PATCH] Add active mark, face support; activate mark on paste Chet Ramey <chet.ramey@case.edu> - 2020-04-11 17:11 -0400

csiph-web