bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chet Ramey
Subject: Re: [PATCH] Add active mark, face support; activate mark on paste
Date: Sat, 11 Apr 2020 17:11:51 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 4/11/20 12:04 PM, address@hidden 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    address@hidden    http://tiswww.cwru.edu/~chet/

Attachment: redisplay-patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]