Re: segfault after disabling a loadable builtin

2015-07-10 Thread Chet Ramey
On 7/7/15 5:49 PM, Piotr Grzybowski wrote: > hi, > > maybe I am mistaken, but I think that keeping track of the > variables/functions bound/unbound by the loadable bultins leads to a > complete hell of unmanageable code. > It should be noted, that the builtins should clean by themselves, > e.g.,

Re: segfault after disabling a loadable builtin

2015-07-08 Thread Piotr Grzybowski
hi, maybe I am mistaken, but I think that keeping track of the variables/functions bound/unbound by the loadable bultins leads to a complete hell of unmanageable code. It should be noted, that the builtins should clean by themselves, e.g., in this case mypid.c should contain something like: int

segfault after disabling a loadable builtin

2015-07-07 Thread izaberina
The mypid loadable in the examples directory sets a dynamic variable. Bash segfaults if you reference it after using enable -d enable_mypid. $ enable -f ./mypid enable_mypid $ enable_mypid $ enable -d enable_mypid $ echo $MYPID Segmentation fault (core dumped) enable should keep track of the dyna