2

When I run git fetch I get the following:

$ git fetch
Password for 'xxx':
error: cannot create thread: Function is not available
fatal: cannot start thread to parse advertised refs
$
j0k
  • 22,600
  • 28
  • 79
  • 90
Randy Proctor
  • 7,396
  • 3
  • 25
  • 26

2 Answers2

4

The issue is that this particular distribution of git/curl is lacking pthread. One way to fix it is to use LD_PRELOAD:

$ LD_PRELOAD=/usr/lib/hpux32/libpthread.so git fetch
Password for 'xxx':
$
Randy Proctor
  • 7,396
  • 3
  • 25
  • 26
0

For me, finally this problem was caused by Cannot allocate memory, low memory problem.

So Pls check it. Hope it helps.

hahakubile
  • 6,978
  • 4
  • 28
  • 18