Hi Rohan,

I built tightvnc from source and was able to get it and dmtcp to play
nicely and I'm very happy about that -- thanks! Not too sure what the
actual problem was but tigervnc.x86_64 0:1.1.0-16.el6.centos seems to not
be compatible with my version of dmtcp, unfortunately.

The messages about not being able to preload are still present though they
seem more like a warning than an error. I'm including them below for
reference but at least we got past the first hurdle. Thanks again for your
help!

Glen.

[maclach@localhost vnc_unixsrc]$ dmtcp_launch ./vncserver :1
dmtcp_coordinator starting...
    Host: localhost.localdomain (127.0.0.1)
    Port: 7779
    Checkpoint Interval: disabled (checkpoint manually instead)
    Exit on last client: 1
Backgrounding...
A VNC server is already running as :1
[maclach@localhost vnc_unixsrc]$ dmtcp_launch ./vncserver :2
dmtcp_coordinator starting...
    Host: localhost.localdomain (127.0.0.1)
    Port: 7779
    Checkpoint Interval: disabled (checkpoint manually instead)
    Exit on last client: 1
Backgrounding...
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_alloc.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_dl.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_ipc.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_timer.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_pid.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_alloc.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_dl.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_ipc.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_timer.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_pid.so' from
LD_PRELOAD cannot be preloaded: ignored.

New 'X' desktop is localhost.localdomain:2

Starting applications specified in /home/maclach/.vnc/xstartup
Log file is /home/maclach/.vnc/localhost.localdomain:2.log






On Mon, Apr 13, 2015 at 7:55 PM, Rohan Garg <rohg...@ccs.neu.edu> wrote:

> Hi Glen,
>
> I did some tests on my local setup. I can checkpoint and restart
> a VNC session. Also, DMTCP complains if a binary is setuid, so it
> should have reported it on your setup if that were the case.
>
> So, it looks like some other configuration issue. Is it possible
> for you to compile a version of VNC and try that?
>
> You can also try ruling out some AppArmor-like mechanism by
> renaming/moving your vncserver executable.
>
> Thanks,
> Rohan
>
>
> ----- Original Message -----
> From: "Glen MacLachlan" <macl...@gwu.edu>
> To: "Rohan Garg" <rohg...@ccs.neu.edu>
> Cc: "dmtcp-forum" <dmtcp-forum@lists.sourceforge.net>
> Sent: Monday, April 13, 2015 7:20:25 PM
> Subject: Re: [Dmtcp-forum] DMTCP+VNC
>
> Hi Rohan,
>
> I checked for the setuid bit and found it is not set:
>
> [maclach@localhost ~]$ ls -l `which vncserver`
> -rwxr-xr-x. 1 root root 20378 Oct 30 08:46 /usr/bin/vncserver
>
>
> I don't know if this matters much but I installed tightvnc from yum (using
> CentOS 6.5)
>
> Xvnc TigerVNC 1.1.0 - built Oct 30 2014 12:46:27
> Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
> See http://www.tigervnc.org for information on TigerVNC.
> Underlying X server release 11500000, The X.Org Foundation
>
>
> I also checked to see if there was some generic block preventing preloading
> with vncserver and that doesn't seem to be the case either. I preload a c++
> library just to see if I could do it with vncserver and it appears to work:
>
> [maclach@localhost ~]$ export LD_PRELOAD=libstdc++.so.6 ;vncserver :1
>
> New 'localhost.localdomain:1 (maclach)' desktop is localhost.localdomain:1
>
> Starting applications specified in /home/maclach/.vnc/xstartup
> Log file is /home/maclach/.vnc/localhost.localdomain:1.log
>
>
> Can you suggest some other workarounds?
>
> Regards, Glen.
>
>
>
> On Mon, Apr 13, 2015 at 6:30 PM, Rohan Garg <rohg...@ccs.neu.edu> wrote:
>
> > Hi Glen,
> >
> > Could you please check that your vncserver executable doesn't have the
> > setuid
> > bit set?  (Try: ls -l `which vncserver`)
> >
> > If the vncserver is not a setuid binary, it could be that the vncserver
> is
> > on
> > a list of "protected" apps in AppArmor. The kernel doesn't allow
> > LD_PRELOAD on
> > such applications. We can suggest some workarounds depending on what you
> > have.
> >
> > Thanks,
> > Rohan
> >
> > ----- Original Message -----
> > From: "Glen MacLachlan" <macl...@gwu.edu>
> > To: "dmtcp-forum" <dmtcp-forum@lists.sourceforge.net>
> > Sent: Monday, April 13, 2015 5:25:30 PM
> > Subject: [Dmtcp-forum] DMTCP+VNC
> >
> > Hi,
> >
> > First, dmtcp is great and I'm very happy with it, generally. I've been
> > trying to get the recipe for using dmtcp with vnc (found here:
> > http://dmtcp.sourceforge.net/FAQ.html ) working and I've run into some
> > unanticipated trouble that I'd like to bounce off somebody more
> > knowledgeable than I.
> >
> > I am using 2.4.0-rc2 and tightvnc for this discussion. Following the
> > instructions, in a terminal I do the following:
> >
> > [maclach@localhost ~]$ dmtcp_launch vncserver :1
> > dmtcp_coordinator starting...
> > Host: localhost.localdomain (127.0.0.1)
> > Port: 7779
> > Checkpoint Interval: disabled (checkpoint manually instead)
> > Exit on last client: 1
> > Backgrounding...
> > ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_alloc.so'
> from
> > LD_PRELOAD cannot be preloaded: ignored.
> > ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_dl.so' from
> > LD_PRELOAD cannot be preloaded: ignored.
> > ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_ipc.so' from
> > LD_PRELOAD cannot be preloaded: ignored.
> > ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_timer.so'
> from
> > LD_PRELOAD cannot be preloaded: ignored.
> > ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp.so' from
> > LD_PRELOAD cannot be preloaded: ignored.
> > ERROR: ld.so: object '/disk01/apps/dmtcp/lib/dmtcp/libdmtcp_pid.so' from
> > LD_PRELOAD cannot be preloaded: ignored.
> >
> > The problem preloading only happens when I try to start the vncserver. I
> > can use dmtcp just fine with all other applications, including the
> examples
> > provided in the test directory. I've tried preloading the libraries above
> > with the --with-plugin option but this does change anything (apart from
> > additional messages about not being able to preload).
> >
> > When I continue on despite the preload issues I try running the vnc
> client
> > which does not work:
> > [maclach@localhost ~]$ vncviewer :1
> >
> > TigerVNC Viewer for X version 1.1.0 - built Oct 30 2014 12:44:50
> > Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
> > See http://www.tigervnc.org for information on TigerVNC.
> >
> > Mon Apr 13 17:06:32 2015
> > main: unable connect to socket: Connection refused (111)
> >
> >
> > Without dmtcp there is no problem running tightvnc. Any ideas about where
> > I'm going wrong or how to work around this problem would be _greatly_
> > appreciated.
> >
> > Thanks, Glen.
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> > Develop your own process in accordance with the BPMN 2 standard
> > Learn Process modeling best practices with Bonita BPM through live
> > exercises
> > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> > event?utm_
> > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> > _______________________________________________
> > Dmtcp-forum mailing list
> > Dmtcp-forum@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/dmtcp-forum
> >
>
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

Reply via email to