Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback from fish-2.0 #723

Closed
stestagg opened this issue May 9, 2013 · 7 comments
Closed

Traceback from fish-2.0 #723

stestagg opened this issue May 9, 2013 · 7 comments
Milestone

Comments

@stestagg
Copy link
Contributor

stestagg commented May 9, 2013

Sorry for the lack of information here. I know that I was running a command that was writing to stdout and stderr quite a lot from multiple processes.

All of the processes decided to exit in short succession, and then I got this traceback:

...
socket.error: [Errno 111] Connection refused
fish: function eval called while blocking signals.
fish: This is a bug. Break on bugreport to debug.If you can reproduce it, please
send a bug report to fish-users@lists.sf.net.
fish: Backtrace:
fish(_Z15show_stackframev+0x5b) [0x535b48]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0xe0) [0x4fd080]
fish() [0x52f266]
fish(_Z10event_fireP7event_t+0xa3) [0x52f82f]
fish() [0x4cd0ed]
fish() [0x526922]
fish(_Z24env_universal_common_setPKwS0_b+0x120) [0x528d7b]
fish() [0x528f20]
fish(_Z12read_messageP12connection_t+0x1bc) [0x528afe]
fish(_Z22env_universal_read_allv+0x50) [0x526cbd]
fish(_Z21env_universal_barrierv+0x27a) [0x526fbc]
fish() [0x526b1c]
fish(_Z22env_universal_read_allv+0x29) [0x526c96]
fish() [0x5269dd]
fish(_Z21env_universal_barrierv+0xac) [0x526dee]
fish() [0x4d0f30]
fish(_Z14env_export_arrb+0x22) [0x4d1213]
fish(_Z4execR8parser_tP5job_t+0x6c4) [0x4d80a3]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x6df) [0x4fcab3]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
fish() [0x4da0dd]
fish(_Z13exec_subshellRKSbIwSt11char_traitsIwESaIwEERSt6vectorIS2_SaIS2_EEb+0x36) [0x4da3a5]
fish() [0x4e1cc6]
fish(_Z13expand_stringRKSbIwSt11char_traitsIwESaIwEERSt6vectorI12completion_tSaIS6_EEi+0x260) [0x4e2ad6]
fish(_ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRSt6vectorI12completion_tSaIS7_EEb+0x56c) [0x4f99f0]
fish(_ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t+0x19c9) [0x4fbd3b]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x325) [0x4fc6f9]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
fish() [0x4d7613]
fish(_Z4execR8parser_tP5job_t+0xc3e) [0x4d861d]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x6df) [0x4fcab3]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
fish: function eval called while blocking signals.
fish: This is a bug. Break on bugreport to debug.If you can reproduce it, please
send a bug report to fish-users@lists.sf.net.
fish: Backtrace:
fish(_Z15show_stackframev+0x5b) [0x535b48]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0xe0) [0x4fd080]
fish() [0x52f266]
fish(_Z10event_fireP7event_t+0xa3) [0x52f82f]
fish() [0x4cd0ed]
fish() [0x526922]
fish(_Z24env_universal_common_setPKwS0_b+0x120) [0x528d7b]
fish() [0x528f20]
fish(_Z12read_messageP12connection_t+0x1bc) [0x528afe]
fish(_Z22env_universal_read_allv+0x50) [0x526cbd]
fish(_Z21env_universal_barrierv+0x27a) [0x526fbc]
fish() [0x526b1c]
fish(_Z22env_universal_read_allv+0x29) [0x526c96]
fish() [0x5269dd]
fish(_Z21env_universal_barrierv+0xac) [0x526dee]
fish() [0x4d0f30]
fish(_Z14env_export_arrb+0x22) [0x4d1213]
fish(_Z4execR8parser_tP5job_t+0x6c4) [0x4d80a3]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x6df) [0x4fcab3]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
fish() [0x4da0dd]
fish(_Z13exec_subshellRKSbIwSt11char_traitsIwESaIwEERSt6vectorIS2_SaIS2_EEb+0x36) [0x4da3a5]
fish() [0x4e1cc6]
fish(_Z13expand_stringRKSbIwSt11char_traitsIwESaIwEERSt6vectorI12completion_tSaIS6_EEi+0x260) [0x4e2ad6]
fish(_ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRSt6vectorI12completion_tSaIS7_EEb+0x56c) [0x4f99f0]
fish(_ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t+0x19c9) [0x4fbd3b]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x325) [0x4fc6f9]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
fish() [0x4d7613]
fish(_Z4execR8parser_tP5job_t+0xc3e) [0x4d861d]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x6df) [0x4fcab3]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
fish: function eval called while blocking signals.
fish: This is a bug. Break on bugreport to debug.If you can reproduce it, please
send a bug report to fish-users@lists.sf.net.
fish: Backtrace:
fish(_Z15show_stackframev+0x5b) [0x535b48]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0xe0) [0x4fd080]
fish() [0x52f266]
fish(_Z10event_fireP7event_t+0xa3) [0x52f82f]
fish() [0x4cd0ed]
fish() [0x526922]
fish(_Z24env_universal_common_setPKwS0_b+0x120) [0x528d7b]
fish() [0x528f20]
fish(_Z12read_messageP12connection_t+0x1bc) [0x528afe]
fish(_Z22env_universal_read_allv+0x50) [0x526cbd]
fish(_Z21env_universal_barrierv+0x27a) [0x526fbc]
fish() [0x526b1c]
fish(_Z22env_universal_read_allv+0x29) [0x526c96]
fish() [0x5269dd]
fish(_Z21env_universal_barrierv+0xac) [0x526dee]
fish() [0x4d0f30]
fish(_Z14env_export_arrb+0x22) [0x4d1213]
fish(_Z4execR8parser_tP5job_t+0x6c4) [0x4d80a3]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x6df) [0x4fcab3]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
fish() [0x4da0dd]
fish(_Z13exec_subshellRKSbIwSt11char_traitsIwESaIwEERSt6vectorIS2_SaIS2_EEb+0x36) [0x4da3a5]
fish() [0x4e1cc6]
fish(_Z13expand_stringRKSbIwSt11char_traitsIwESaIwEERSt6vectorI12completion_tSaIS6_EEi+0x260) [0x4e2ad6]
fish(_ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRSt6vectorI12completion_tSaIS7_EEb+0x56c) [0x4f99f0]
fish(_ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t+0x19c9) [0x4fbd3b]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x325) [0x4fc6f9]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
fish() [0x4d7613]
fish(_Z4execR8parser_tP5job_t+0xc3e) [0x4d861d]
fish(_ZN8parser_t8eval_jobEP11tokenizer_t+0x6df) [0x4fcab3]
fish(_ZN8parser_t4evalERKSbIwSt11char_traitsIwESaIwEERK10io_chain_t12block_type_t+0x288) [0x4fd228]
sstagg at sapphire in ~/s/s/tests                                               
↪ fish --version
fish, version 2.0.0

The command I was running was (to show that there were 16 processes):

seq 1 16 | parallel -j 16 env PYTHONPATH=.. ./irnetbox-test.sh localhost

Thanks

Steve

@ont
Copy link

ont commented Aug 23, 2014

Still no progress on this issue? I have same problem running parallel under fish.

@ridiculousfish
Copy link
Member

The "function eval called while blocking signals" error ought to have been fixed as #608, which went in a long time ago. The socket.error is surely gone in top of tree, since fish no longer uses sockets.

@ont, can you confirm which version of fish you're using? What symptoms are you seeing?

@ont
Copy link

ont commented Aug 23, 2014

Here is some output of my commands (on local machine):

ont@ont-home /t/img> fish --version
fish, version 2.1.0
ont@ont-home /t/img> ls | wc -l
4978

ont@ont-home /t/img> ls | parallel 'convert {} -resize 100x resize_{}'
When using programs that use GNU Parallel to process data for publication please cite:

  O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
  ;login: The USENIX Magazine, February 2011:42-47.

This helps funding further development; and it won't cost you a cent.

To silence this citation notice run 'parallel --bibtex' once or use '--no-notice'.

fish: Could not connect to universal variable server, already tried manual restart (or no command supplied). You will not be able to share variable values between fish sessions. Is fish properly installed?
fish: Could not connect to universal variable server, already tried manual restart (or no command supplied). You will not be able to share variable values between fish sessions. Is fish properly installed?
ont@ont-home /t/img> ls /usr/bin/ | parallel 'ls /usr/bin/{}'
When using programs that use GNU Parallel to process data for publication please cite:

  O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
  ;login: The USENIX Magazine, February 2011:42-47.

This helps funding further development; and it won't cost you a cent.

To silence this citation notice run 'parallel --bibtex' once or use '--no-notice'.

/usr/bin/[
/usr/bin/2to3
/usr/bin/2to3-2.7
/usr/bin/2to3-3.4
/usr/bin/7z
/usr/bin/7za
....
fish: Could not connect to universal variable server, already tried manual restart (or no command supplied). You will not be able to share variable values between fish sessions. Is fish properly installed?
/usr/bin/grolj4
/usr/bin/gropdf
/usr/bin/grops
/usr/bin/grolbp
>>>> PRESSING CTRL+C HERE <<<<
fish: function eval called while blocking signals. 
fish: This is a bug. Break on bugreport to debug.If you can reproduce it, please send a bug report to fish-users@lists.sf.net.
fish: Backtrace:
/usr/bin/fish() [0x48b0e5]
/usr/bin/fish() [0x45f126]
/usr/bin/fish() [0x42ed27]
/usr/bin/fish() [0x47e105]
/usr/bin/fish() [0x47e71c]
/usr/bin/fish() [0x47e8f5]
/usr/bin/fish() [0x47e9ba]
/usr/bin/fish() [0x47e3d2]
/usr/bin/fish() [0x4316d5]
/usr/bin/fish() [0x438885]
/usr/bin/fish() [0x45ed57]
/usr/bin/fish() [0x45f83a]
/usr/bin/fish() [0x436ef6]
/usr/bin/fish() [0x438e87]
/usr/bin/fish() [0x45ed57]
/usr/bin/fish() [0x45f83a]
/usr/bin/fish() [0x46c00b]
/usr/bin/fish() [0x4702ea]
/usr/bin/fish() [0x415717]
/usr/bin/fish() [0x4138d7]
/usr/bin/fish() [0x438b82]
/usr/bin/fish() [0x45ed57]
/usr/bin/fish() [0x45f83a]
/usr/bin/fish() [0x436ef6]
/usr/bin/fish() [0x43904c]
/usr/bin/fish() [0x45ed57]
/usr/bin/fish() [0x45f83a]
/usr/bin/fish() [0x436ef6]
/usr/bin/fish() [0x43904c]
/usr/bin/fish() [0x45ed57]
/usr/bin/fish() [0x45f83a]
/usr/bin/fish() [0x436ef6]
....

On local machine there are no stack traces if I doesn't press CTRL+C. I will check fish version on my server (there are some problems to connect to it right now). But "fish: Could not connect to universal variable server" occurs in very similar manner that "fish: function eval called while blocking signals."

Some facts:

  1. Problem occurs very often when I use GNU parallel and never occur for other commands.
  2. Problem occurs for commands inside parallel session that don't output anything to stdout (imagemagick for example).
  3. During parallel's run fish crashes 1-3 times. On server I also recieve full stack trace for this crashes.
  4. After parallel finish its work I also receive multiple stack traces after very long pause.
  5. Possibly parallel runs tons of it's command using current shell (/usr/bin/fish)

@KamilaBorowska
Copy link
Contributor

This looks like a duplicate of #1084.

@ont
Copy link

ont commented Aug 25, 2014

@xfix , yes but it is marked as resolved.
@ridiculousfish : I just increase all limits in #1084 and successfully got crashes. May be there are some system limits for number of forks or parallel connections in my system?

On my server (with fresh updates):

ont@ontw ~ > fish --version
fish, version 2.1.0
ont@ontw ~ > ldd /usr/bin/fish
    linux-vdso.so.1 (0x00007fffde5fe000)
    libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0x00007f5c224f2000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f5c222d4000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f5c21fc5000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f5c21daf000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f5c21a01000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5c22757000)
    libm.so.6 => /usr/lib/libm.so.6 (0x00007f5c216fd000)
ont@ontw ~ > ldd /usr/bin/fish | grep '=>' | cut -d '>' -f2 | cut -d' ' -f2 | xargs yaourt -Qo
/usr/lib/libncursesw.so.5 is owned by ncurses 5.9-6
/usr/lib/libpthread.so.0 is owned by glibc 2.19-5
/usr/lib/libstdc++.so.6 is owned by gcc-libs 4.9.1-1
/usr/lib/libgcc_s.so.1 is owned by gcc-libs 4.9.1-1
/usr/lib/libc.so.6 is owned by glibc 2.19-5
/usr/lib/libm.so.6 is owned by glibc 2.19-5

I got successful crash for this commands (lower limits cause no crash):

seq 1 300 | parallel echo
for i in (seq 40)
    fish -c exit &
end

@ont
Copy link

ont commented Aug 25, 2014

And after all I can't reproduce crashes in fish, version 2.1.0-768-g02a0716 compiled with debug symbols...

@zanchey
Copy link
Member

zanchey commented Sep 29, 2014

This should be fixed in the 2.1.1 release as well as in the current master tree.

@zanchey zanchey closed this as completed Sep 29, 2014
@zanchey zanchey modified the milestones: fish 2.1.1, fish-future Sep 29, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants