autotest.py updated to reflect newer ptrace module.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1606 ba6dc0ae-232f-0410-883f-9ebac64fc565
Minor fix for wait4 and waitid.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1607 ba6dc0ae-232f-0410-883f-9ebac64fc565
- Fix plugins to work with --enable-m32 (create 32-bit libraries)


git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1609 ba6dc0ae-232f-0410-883f-9ebac64fc565
Stop multiple deliveries of STOPSIGNAL

Under Ptrace, STOPSIGNAL is sent to the inferior threads once by the
superior thread and once by the ckpt-thread of the inferior. STOPSIGNAL
is blocked while the inferior thread is executing the signal handler and
so the signal is becomes pending and is delivered right after returning
from stopthisthread.

This commit fixes this by making ckpt-thread disable/re-enable signal
handler for STOPSIGNAL right before callback_sleep_between_ckpt().

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1610 ba6dc0ae-232f-0410-883f-9ebac64fc565
- If env var MTCP_RESTART_PAUSE is set, DMTCP will pause for 15 seconds
  on restart at the earliest point where GDB can safely attach.
- minor polishing


git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1611 ba6dc0ae-232f-0410-883f-9ebac64fc565
Remove realpath() wrappers in pidvirt plugin.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1613 ba6dc0ae-232f-0410-883f-9ebac64fc565
/dev/ptmx /dev/pts/ptmx fix

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1619 ba6dc0ae-232f-0410-883f-9ebac64fc565
madvise(MADV_DONTNEET) on zero pages after ckpt.

During checkpoint, zero pages are marked "private dirty" by the kernel
causing huge increase in memory footprint of the running process.

By using madvise(), the zero pages are marked as zero once again.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1620 ba6dc0ae-232f-0410-883f-9ebac64fc565
Revert changes made in r1577, and r1613.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1621 ba6dc0ae-232f-0410-883f-9ebac64fc565
Introduce mtcp_reset_on_fork()

Eliminate the need of dlclose/dlopen("libmtcp.so") during fork(). This
is particularly handy when pre/post/child fork() hooks are installed and
cause deadlock situations during fork. The behavior was observed when
checkpointing fork.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1623 ba6dc0ae-232f-0410-883f-9ebac64fc565
Do not acquire the wrapper execution lock recursively.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1624 ba6dc0ae-232f-0410-883f-9ebac64fc565
Added dmtcp_setup_trampoline_by_addr() function.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1625 ba6dc0ae-232f-0410-883f-9ebac64fc565
Updates for _real_pthread_cond_*

Glibc defines an older implementation of pthread_cond_*. The newer
version resides in libpthread. dlsym(RTLD_NEXT, "pthread_cond_*")
returns the address of the old implementation in glibc.
In order to get the correct version, we now use
dlvsym(RTLD_NEXT, "pthread_cond_*", "GLIBC_2.3.2")

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1626 ba6dc0ae-232f-0410-883f-9ebac64fc565
Use pthread_getspecific hook during wrapper initialization.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1627 ba6dc0ae-232f-0410-883f-9ebac64fc565
Handle syscall(SYS_mmap, ...)

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1628 ba6dc0ae-232f-0410-883f-9ebac64fc565
Disable procfd1 test until we fix readlink

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1629 ba6dc0ae-232f-0410-883f-9ebac64fc565
Reverting rev 1628.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1630 ba6dc0ae-232f-0410-883f-9ebac64fc565
Removing some non-sense MTCP_PRINTFs

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1631 ba6dc0ae-232f-0410-883f-9ebac64fc565
1. Fix mistypes in Torque support code
2. Fix bug with nonExisting file named "/null" which causes silent Assert-driven exit 
on tusker.unl.edu when running under Torque control.



git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1632 ba6dc0ae-232f-0410-883f-9ebac64fc565
Fix typo from the previous commit



git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1633 ba6dc0ae-232f-0410-883f-9ebac64fc565