Does fish go out of memory very frequently (or everytime) you try to tab 
complete sshfs mounted directory ? I would like to know what is the size of 
block fish is trying to allocate. Put debug statements like this :

        debug(0, "Size of new_dir : %lu", sizeof(wchar_t)*(base_len+ln+2));
        new_dir= (wchar_t *)malloc(sizeof(wchar_t)*(base_len+ln+2));

        debug(0, "Size of wc_str : %lu", (wc_end?(wc_end - wc):wcslen(wc)));
        wc_str = wc_end?wcsndup(wc, wc_end-wc):wcsdup(wc);

        if ((!new_dir) || (!wc_str))
        {
            DIE_MEM();
        }


On Sunday 21 Apr 2013 4:32:54 PM Ben Franksen wrote:
> This happens if I hit tab for completion of a 'cd /path/to/somewhere' if the
> path is a sshfs mounted directory. This is with fish 1.23.1. I tried 2.0.0
> (fresh from the git repo) but I get a similar error.
> 
> Here is the detailed message (with fish-2.0.0):
> 
> ben@sarun ~> cd ctl/toofish: Out of memory on line 935 of file wildcard.cpp,
> shutting down fish
> fish: Backtrace:
> fish(_Z15show_stackframev+0x4d) [0x4886fd]
> fish() [0x477211]
> fish() [0x476ac6]
> fish(_Z15wildcard_expandPKwS0_iRSt6vectorI12completion_tSaIS2_EE+0xf0)
> [0x4773e0]
> fish(_Z22wildcard_expand_stringRKSbIwSt11char_traitsIwESaIwEES4_iRSt6vectorI
> 12completion_tSaIS6_EE+0x36) [0x477666]
> fish(_Z13expand_stringRKSbIwSt11char_traitsIwESaIwEERSt6vectorI12completion_
> tSaIS6_EEi+0xd2d) [0x45074d]
> fish(_ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tR
> St6vectorI12completion_tSaIS7_EEb+0x407) [0x461e67]
> fish(_ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t+0xc10)
> [0x460f80]
> fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x2c3) [0x462b73]
> fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_t
> ype_t+0x759) [0x4637b9]
> fish() [0x446577]
> fish(_Z4execR8parser_tP5job_t+0x10d1) [0x448791]
> fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x3cd) [0x462c7d]
> fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_t
> ype_t+0x759) [0x4637b9]
> fish() [0x46f51d]
> fish(_Z11reader_readiRK10io_chain_t+0x2aa) [0x4722ea]
> fish() [0x426218]
> fish(_Z11builtin_runR8parser_tPKPKwRK10io_chain_t+0xe4) [0x42df64]
> fish(_Z4execR8parser_tP5job_t+0xf50) [0x448610]
> fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x3cd) [0x462c7d]
> fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_t
> ype_t+0x759) [0x4637b9]
> fish() [0x446577]
> fish(_Z4execR8parser_tP5job_t+0x1a4b) [0x44910b]
> fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x3cd) [0x462c7d]
> fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_t
> ype_t+0x759) [0x4637b9]
> fish() [0x446577]
> fish(_Z4execR8parser_tP5job_t+0x1a4b) [0x44910b]
> fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x3cd) [0x462c7d]
> fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_t
> ype_t+0x759) [0x4637b9]
> fish() [0x447093]
> fish() [0x44dba0]
> fish(_Z13expand_stringRKSbIwSt11char_traitsIwESaIwEERSt6vectorI12completion_
> tSaIS6_EEi+0x425) [0x44fe45]
> 
> Cheers
-- 
Regards,
Siteshwar Vashisht

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to