Jump to content
Welcome to our new Citrix community!

Segmentation Fault while setting proxy in Netscaler Gateway (nsgclient) in Ubuntu 18.04.4


Recommended Posts

Hi All,

 

I'm currently facing an issue in NSG Client gateway, where after I enter my credentials, and it establishes a connection, I get a segmentation fault while setting the system proxy settings.

 

I know it establishes a connection since if I try to connect again, it asks me whether I want to transfer the connection.

 

My OS is Ubuntu 18.04.4. (Note that NSG Client was working fine with Ubuntu 18.04.2 for a long time until recently.)

 

If I use GDB to debug the core dump, I can clearly see that it fails when trying to set the system proxy:

 

#0  0x00005601ac3195fd in ns_vpn_linproxy_proxy_set (proxy_context=0x5601ae3e1de0, proxytype=2, proxy=0x5601aee75373 "10.177.127.1",
    ManualProxybypasslist=0x5601ae055d20 "<client proxy information masked here>"..., full_proxylist=true) at nslinuxproxy.cpp:379
379     nslinuxproxy.cpp: No such file or directory.
[Current thread is 1 (Thread 0x7fca7b129ac0 (LWP 15970))]
(gdb) bt
#0  0x00005601ac3195fd in ns_vpn_linproxy_proxy_set(ns_vpn_linproxy_context_t*, unsigned long, char*, char*, bool) (proxy_context=0x5601ae3e1de0, proxytype=2, proxy=0x5601aee75373 "10.177.127.1", ManualProxybypasslist=0x5601ae055d20 "<client proxy information masked here>"..., full_proxylist=true)
    at nslinuxproxy.cpp:379
#1  0x00005601ac2b87d3 in ns_processconfig_v15(char*, int, int) (cfgLocal=0x5601aee75349 "\001", cfgLocalLen=923, minor_version=6) at ../nsload/nscfg.cpp:1034
#2  0x00005601ac2bb9fc in ns_processconfig_data(char*, int) (cfgPassed=0x5601aee75349 "\001", cfglen=923) at ../nsload/nscfg.cpp:1912
#3  0x00005601ac2bbaac in ns_processconfig_result(unsigned long, char*, int, ccb_t*) (statusCode=200, buffer=0x5601aee75349 "\001", content_length=923, pccb=0x5601ac5bac00 <ccb>) at ../nsload/nscfg.cpp:1950
#4  0x00005601ac2bbd8e in ns_downloadconfig() () at ../nsload/nscfg.cpp:2027
#5  0x00005601ac322e07 in ns_start_vpn_config() () at startvpn.cpp:987
#6  0x00005601ac3232e5 in ns_start_vpn(char*, char*, char*, char*, char*, char*, char*, bool) (cookiename=0x5601ac33dbb9 "NSC_AAAC", cookievalue=0x5601ae0aa0c8 "7c8b97c142f9256ebc0f710b3545e966", location=0x5601ae0a8d26 "<client website masked here>", version=0x5601ac33dbb0 "9.3.57.5", debug=0x5601ac33dbac "OFF", ndis=0x0, vip=0x5601ac33dbc2 "255.255.255.255", skip_cfg_clean=true) at startvpn.cpp:1144
#7  0x00005601ac2d3022 in ns_vpn_gui_handle_menu_click(_GtkAction*) (action=0x5601ae3ac120) at vpn_login.c:1530
#8  0x00007fca798bb10d in g_closure_invoke () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9  0x00007fca798ce05e in  () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007fca798d6715 in g_signal_emit_valist () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007fca798d712f in g_signal_emit () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007fca790d0d40 in  () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#13 0x00007fca798bb10d in g_closure_invoke () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007fca798ce12e in  () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007fca798d6715 in g_signal_emit_valist () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007fca798d712f in g_signal_emit () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007fca792a3006 in gtk_widget_activate () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#18 0x00007fca791a007d in gtk_menu_shell_activate_item () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#19 0x00007fca791a0332 in  () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x00007fca7918e38b in  () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#21 0x00007fca798bb10d in g_closure_invoke () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007fca798cdde8 in  () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007fca798d60af in g_signal_emit_valist () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#24 0x00007fca798d712f in g_signal_emit () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#25 0x00007fca792a42bc in  () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#26 0x00007fca7918c62c in gtk_propagate_event () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#27 0x00007fca7918ca2b in gtk_main_do_event () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#28 0x00007fca7523a02c in  () at /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#29 0x00007fca79b4b417 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fca79b4b650 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fca79b4b962 in g_main_loop_run () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fca7918ba37 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#33 0x00005601ac308459 in main(int, char**) (argc=1, argv=0x7ffde2c99f48) at nsvpnapp.cpp:1133

 

Any help on this would be greatly appreciated?

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
16 hours ago, Cristiano Ghirardi said:

I have the same problem in Ubuntu 18.04.4, it works on Ubuntu 18.0.4.3 so something changed in the way you can set the proxy and proxy exceptions for

a user using the dconf interface. Citrix should be able to fix this very easily 

Thanks

Hey Cristiano,

 

Thanks for this response.

 

Can you confirm how you got it working in Ubuntu 18.04.3? I tried installing Ubuntu 18.04.3 and 18.04.2 from the Ubuntu Old Releases website (http://old-releases.ubuntu.com/releases/bionic/). I had the issue in both of them also.

 

I agree with you that this has something to do with updates to the dconf interface. If you have it working on some machine, can you share the versions of DConf CLI and LIB you are using by doing apt list | grep dconf. (And also gsettings, apt list | grep gsettings) This might help me in figuring out why a fresh install of Ubuntu 18.04.2 and 3 are still failing for me.

 

Many thanks.

Link to comment
Share on other sites

  • 3 weeks later...

So I tried to set this up in a Ubuntu 16.04 LXC container and got the same Segmentation Fault.

 

Can someone help in identifying the setting in userConfiguration.conf file that will disable proxy setting so that Citrix does not even try to set the proxy automatically?

 

At least, if I can disable the proxy setting, I can get this to work. I cannot find any documentation on the various parameters in the userConfiguration.conf file.

 

Can anyone from Citrix please help me? This is really causing me a lot of trouble with respect to work at the moment.

Link to comment
Share on other sites

  • 1 year later...

An update on this. I was able to get the latest version (1.0.0.146) of NSGClient installed on Ubuntu 21.04 without any trouble.

 

But much to my annoyance, I'm still facing Segmentation Fault in the exact same place. It is really annoying that even with an updated version of NSGClient for Linux, this problem has not been resolved.

 

If I check ~/.citrix/nssslvpn.txt, I can clearly see that everything works fine. The connection is established properly. In fact, once I configured my network's Proxy PAC file in the ~/.citrix/userConfiguration.conf file, it even picked up the proxy settings from the PAC file. I can see DEBUG logs till the place where it establishes connection with the URL for the PAC file. However, once it tries to set the proxy using nslinuxproxy.cpp, it segfaults.

 

Can someone from Citrix please help with this? Is there a setting in userConfiguration.conf that will disable automatically setting the proxy so that I can configure it manually?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...