Jeremie Courreges-Anglas <j...@wxcvbn.org> writes: > Jeremie Courreges-Anglas <j...@wxcvbn.org> writes: > >> Denis Fondras <open...@ledeuns.net> writes: >> >>>> Try to increase your stack size. >>>> >>>> $ ulimit -s >>>> 4096 >>>> $ ulimit -Hs >>>> 32768 >>>> >>> >>> Thank you Jeremie. >>> >>> $ ulimit -a >>> core file size (blocks, -c) unlimited >>> data seg size (kbytes, -d) 33554432 >>> file size (blocks, -f) unlimited >>> max locked memory (kbytes, -l) 2680761 >>> max memory size (kbytes, -m) 8021032 >>> open files (-n) 128 >>> pipe size (512 bytes, -p) 1 >>> stack size (kbytes, -s) 32768 >>> cpu time (seconds, -t) unlimited >>> max user processes (-u) 1310 >>> virtual memory (kbytes, -v) 33587200 >>> $ ulimit -s >>> 32768 >>> $ ulimit -Hs >>> 32768 >>> >>> Unfortunately : >>> Program received signal SIGSEGV, Segmentation fault. >>> [Switching to thread 1001830] >>> 0x000009eb5fe1a0a9 in SshMasterConnection::channelLoop () from >>> /usr/ports/pobj/x2goclient-4.0.5.1/x2goclient-4.0.5.1/x2goclient >>> >>> How can I set higher HARD limit ? >> >> I doubt that would help, 32MB is already a lot. > > Actually it looks like the affected function is run by a thread, and > threads have their own stack size. The pthread_attr_setstacksize > function can be used to... well, you guessed it. The problem is, there > is no single pthread call in x2goclient (I guess thread management comes > from Qt).
Aaaand it turns out that not only OpenBSD is affected, here's a short diff that makes x2goclient run ssh properly.
patch-src_sshmasterconnection_cpp
Description: Binary data
-- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE