This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author puppet
Recipients Claudiu.Popa, francismb, koobs, larry, pitrou, puppet
Date 2014-08-04.08:13:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407140000.33.0.017889451276.issue19838@psf.upfronthosting.co.za>
In-reply-to
Content
I'm no expert at all at GDB, but I will give it a go and if this is wrong I can try a lot more.

Breakpoint 1, posix_utime (self=0xf00918ed8, args=0xf014459f8, kwargs=0x0) at ./Modules/posixmodule.c:4838
4838	    PyObject *times = NULL;
Current language:  auto; currently minimal
4839	    PyObject *ns = NULL;
4840	    int dir_fd = DEFAULT_DIR_FD;
4841	    int follow_symlinks = 1;
4843	                        "follow_symlinks", NULL};
4856	    memset(&path, 0, sizeof(path));
4857	    path.function_name = "utime";
4858	    memset(&utime, 0, sizeof(utime_t));
4860	    path.allow_fd = 1;
4862	    if (!PyArg_ParseTupleAndKeywords(args, kwargs,
4875	    if (times && (times != Py_None) && ns) {
4903	    else if (ns) {
4919	        utime.now = 1;
4927	    if (path_and_dir_fd_invalid("utime", &path, dir_fd) ||
963	    if (!path->narrow && !path->wide && (dir_fd != DEFAULT_DIR_FD)) {
4928	        dir_fd_and_fd_invalid("utime", dir_fd, path.fd) ||
974	    if ((dir_fd != DEFAULT_DIR_FD) && (fd != -1)) {
4929	        fd_and_follow_symlinks_invalid("utime", path.fd, follow_symlinks))
986	    if ((fd > 0) && (!follow_symlinks)) {
4933	    if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) {
4974	    Py_BEGIN_ALLOW_THREADS
4977	    if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
4989	    if (path.fd != -1)
4994	    result = utime_default(&utime, path.narrow);
4800	    UTIME_TO_TIMEVAL;
4801	    return utimes(path, time);
(gdb) print time
$1 = {<text variable, no debug info>} 0xf01191d20 <time>
(gdb) print path
$2 = {function_name = 0x58bb79 "utime", argument_name = 0x0, nullable = 0, allow_fd = 1, wide = 0x0, narrow = 0xf0099c0d0 "/tmp/test", fd = -1, length = 9, object = 0xf01445f90,
  cleanup = 0xf0099c0a0}
4996	    Py_END_ALLOW_THREADS
4998	    if (result < 0) {
5006	    Py_INCREF(Py_None);
787	    if (path->cleanup) {
788	        Py_CLEAR(path->cleanup);
5016	}
History
Date User Action Args
2014-08-04 08:13:20puppetsetrecipients: + puppet, pitrou, larry, Claudiu.Popa, francismb, koobs
2014-08-04 08:13:20puppetsetmessageid: <1407140000.33.0.017889451276.issue19838@psf.upfronthosting.co.za>
2014-08-04 08:13:20puppetlinkissue19838 messages
2014-08-04 08:13:19puppetcreate