[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44662] [OF io] csv2cell.cc miscompiled with O
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #44662] [OF io] csv2cell.cc miscompiled with Octave built for 64-bit windows |
Date: |
Sun, 29 Mar 2015 18:04:22 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33 |
URL:
<http://savannah.gnu.org/bugs/?44662>
Summary: [OF io] csv2cell.cc miscompiled with Octave built
for 64-bit windows
Project: GNU Octave
Submitted by: philipnienhuis
Submitted on: Sun 29 Mar 2015 08:04:21 PM CEST
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Crash
Status: None
Assigned to: None
Originator Name: Philip Nienhuis
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Operating System: Microsoft Windows
_______________________________________________________
Details:
(overflow from bug #44493, after trying some time to sort things out myself)
With an Octave cross-compiled for 64-bit Windows (--enable-windows-64, not
--enable-64), it seems csv2cell.cc in the io package gets miscompiled. When
trying to run it, it crashes and takes Octave with it. I've built csv2cell.cc
simply by "mkoctfile csv2cell.cc", like is done during io package
installation.
When building csv2cell.cc on Windows 7 (64-bit) with a 32-bit Octave (e.g.,
4.0.0-rc2) and an older 4.1.0+ with 64-bit indexing from Feb. 10, csv2cell.cc
runs fine. Same for building csv2cell.cc on 64-bit Linux.
By inserting "std::cout <<" statements I could figure out that the crash
occurs as soon as a 'while (fd.fail())' on L.207 is executed ("fd" = file
pointer to .csv file). That may be a red herring as inspecting fd.fail() in a
"std::cout <<" statement before the while loop gives no errors. After
commenting out the while loop, the crash occurs as soon as some other variable
"str" is assigned a new value. That's as far as I got.
My C++ skills are too little to get any further without help. Anyone who can
give me a clue?
csv2cell.cc is here:
http://hg.code.sf.net/p/octave/io/file/a920f7408781/src/csv2cell.cc (but may
need a password)
Access through http from octave.sf.net | code and then clicking the io repo in
the page (http://sourceforge.net/p/octave/_list/hg) I get a "500" error in
http://sourceforge.net/p/octave/io/ci/default/tree/
Thanks
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44662>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44662] [OF io] csv2cell.cc miscompiled with Octave built for 64-bit windows,
Philip Nienhuis <=