octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51351] mktime() crashes on Windows


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #51351] mktime() crashes on Windows
Date: Mon, 3 Jul 2017 19:55:10 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #9, bug #51351 (project octave):

I am seeing the same issue as Philip on a cross build from hg id
1147e5c912aa.
Running Philip's test with gdb on Win10 64bit yields:

octave:1> t = localtime (time ())
t =

  scalar structure containing the fields:

    usec =  697191
    sec =  19
    min =  12
    hour =  1
    mday =  4
    mon =  6
    year =  117
    wday =  2
    yday =  184
    isdst =  1
    gmtoff = 0
    zone = Mitteleuropõische Sommerzeit

octave:2> mktime (t)

Thread 1 received signal SIGSEGV, Segmentation fault.
rpl_localtime (timep=0x63eed8, address@hidden<error reading variable: DWARF-2
expression error: Loop detected (257).>)
    at
/home/[...]/mxe-octave-2/tmp-default-octave/octave-4.3.0+/libgnu/localtime-buffer.c:38
38     
/home/[...]/mxe-octave-2/tmp-default-octave/octave-4.3.0+/libgnu/localtime-buffer.c:
No such file or directory.


The backtrace shows hundreds and hundreds of recursive calls to the same
function "rpl_localtime" from the same line 38 where "localtime" is called. I
stopped at around 800 deep in the stack without reaching where the function
was originally called from.
Please, let me know if I can do anything else to help debugging.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51351>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]