help-octave
[Top][All Lists]
Advanced

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

Re: Help-octave Digest, Vol 69, Issue 56


From: George
Subject: Re: Help-octave Digest, Vol 69, Issue 56
Date: Thu, 15 Dec 2011 21:16:15 -0800

Here is the text of the file:

1,text text text, text text
2,text text text, more text
3,more text and text

Thanks for your help.


On Thu, Dec 15, 2011 at 8:57 PM, <address@hidden> wrote:
Send Help-octave mailing list submissions to
       address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
       https://mailman.cae.wisc.edu/listinfo/help-octave
or, via email, send a message with subject or body 'help' to
       address@hidden

You can reach the person managing the list at
       address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Help-octave digest..."


Today's Topics:

  1. Re: octave-3.4.3+gcc46 on OS X 10.4/powerpc, test hangs in
     bsxfun (Ben Abbott)
  2. Re: How to load a text file? (Ben Abbott)
  3. Re: How to load a text file? (George)
  4. Re: How to load a text file? (Doug Stewart)


----------------------------------------------------------------------

Message: 1
Date: Thu, 15 Dec 2011 22:01:02 -0500
From: Ben Abbott <address@hidden>
To: Alexander Hansen <address@hidden>
Cc: address@hidden
Subject: Re: octave-3.4.3+gcc46 on OS X 10.4/powerpc, test hangs in
       bsxfun
Message-ID: <address@hidden>
Content-Type: text/plain; CHARSET=US-ASCII


On Dec 15, 2011, at 11:24 AM, Alexander Hansen wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12/15/11 11:01 AM, Alexander Hansen wrote:
>> On 11/30/11 2:44 PM, David Fang wrote:
>>> Hello octavians,
>>
>>> Recently, I've been trying to port octave-3.4.3 for OS X
>>> 10.4/powerpc in fink, and have encountered hanging in the test
>>> suite. I initially tried the system compiler (g++-4.0.1) but
>>> encountered the following issue:
>>> https://savannah.gnu.org/bugs/?30685 where on startup, octave
>>> would segfault in sigemptyset(). I then switched to gcc-4.6.2,
>>> which has shown decent test results for powerpc-apple-darwin8
>>> [http://gcc.gnu.org/ml/gcc-testresults/2011-10/msg03272.html].
>>> With gcc-4.6, the test suite hangs starting in bsxfun.cc,
>>> specifically on:
>>
>>> octave:1> f = @minus; octave:2> bsxfun (f, ones(4, 0), ones(4,
>>> 4)) *** wait forever... ^C^C^C
>>
>>> I've added some debug hooks to trace what's going on and also
>>> have a gdb stacktrace (from ../run-octave -g ...):
>>
>>> \-{ Fbsxfun | :  arguments checked. | :  func.is_builtin ||
>>> is_function_handle... | \-{ maybe_optimized_builtin | | \-{
>>> maybe_fill_table | | | :  filling... | | /-} maybe_fill_table | |
>>> \-{ bsxfun_builtin_lookup | | /-} bsxfun_builtin_lookup | | :
>>> op != bsxfun_builtin_unknown | | \-{ octave_value
>>> bsxfun_forward_op(const octave_value&, const octave_value&) [with
>>> NDA = NDArray, NDA (* bsxfun_op)(const NDA&, const NDA&) =
>>> bsxfun_sub] | | | :  extracted x | | | :  extracted y | | | \-{
>>> NDArray bsxfun_sub(const NDArray&, const NDArray&) | | | | \-{
>>> Array<R> do_bsxfun_op(const Array<X>&, const Array<Y>&, void
>>> (*)(std::size_t, R*, const X*, const Y*), void (*)(std::size_t,
>>> R*, X, const Y*), void (*)(std::size_t, R*, const X*, Y)) [with
>>> R = double, X = double, Y = double, std::size_t = long unsigned
>>> int] | | | | | :  i = 0 | | | | | :  i = 1 | | | | | \-{
>>> lo_error_handler error: bsxfun: nonconformant dimensions: 4x0
>>> and 4x4 | | | | | | \-{ octave_throw_execution_exception ^C
>>> Program received signal SIGINT, Interrupt. 0x9143b3a0 in
>>> uw_frame_state_for () (gdb) where #0  0x9143b3a0 in
>>> uw_frame_state_for () #1 0x9143cb7c in _Unwind_RaiseException ()
>>> #2  0x03be6148 in __cxa_throw () at settings.h:338 #3  0x0038acc8
>>> in octave_throw_execution_exception () #4  0x0123ec08 in
>>> _ZL16lo_error_handlerPKcz () #5  0x02c40d90 in
>>> do_bsxfun_op<double, double, double> () #6  0x02438d24 in
>>> bsxfun_sub () #7  0x04a49008 in bsxfun_forward_op<NDArray,
>>> &(bsxfun_sub(NDArray const&, NDArray const&))> () at
>>> settings.h:338 #8  0x04a59460 in Fbsxfun () at settings.h:338 #9
>>> 0x012f95d0 in octave_builtin::do_multi_index_op () #10 0x012f8460
>>> in octave_builtin::subsref () #11 0x012f9074 in
>>> octave_builtin::subsref () #12 0x013b0ed4 in
>>> octave_value::subsref () #13 0x01445908 in
>>> tree_index_expression::rvalue () #14 0x01446348 in
>>> tree_index_expression::rvalue () #15 0x01440dc0 in
>>> tree_index_expression::rvalue1 () #16 0x01436710 in
>>> tree_evaluator::visit_statement () #17 0x0145ff10 in
>>> tree_statement::accept () #18 0x0143118c in
>>> tree_evaluator::visit_statement_list () #19 0x01460030 in
>>> tree_statement_list::accept () #20 0x01298538 in main_loop () #21
>>> 0x01242c40 in octave_main () #22 0x00002e28 in _start () #23
>>> 0x00002b2c in start ()
>>
>>> The full trail of my debugging efforts is at:
>>> http://paste.lisp.org/display/125952 (starting at annotation #5)
>>
>>> The thrown exception looks like an empty class, thrown by value,
>>> and somehow this winds up in some infinite loop.
>>
>>> My questions: what is supposed to happen after "bsxfun:
>>> nonfconformant dimensions"? I would expect the stack to unwind up
>>> to the next handler when thrown, but that doesn't seem to be
>>> happening?
>>
>>> Suspects: gcc46 miscompilation?
>>
>>> Any help/tips/leads greatly appreciated.  Thanks.
>>
>>> Fang
>>
>>
>> For what it's worth, I also see a hang on OS X 10.5/powerpc.  On
>> 10.5/intel 32-bit, I get the following at the same point:
>>
>> src/DLD-FUNCTIONS/bsxfun.cc ............................terminate
>> called after throwing an instance of 'octave_execution_exception'
>>
>
> Also 10.5/intel 64-bit.
>
>> 10.7/64-bit works OK, however.
>>
>> I'll report on 10.6 after I test that:  I only have one intel box,
>> so I have to reboot to test different OS versions. :-)
>

I'm traveling and don't have by Mac with Fink installed with me.

For gcc-4.5, I had troubles with "-O3" and "-O1", but "-O2" did not result in any additional test failures (as compared to -O0). Unfortunately, I don't recall what regressions I encountered using "-O1" or "-O3".

Ben







------------------------------

Message: 2
Date: Thu, 15 Dec 2011 22:00:37 -0500
From: Ben Abbott <address@hidden>
To: George <address@hidden>
Cc: address@hidden
Subject: Re: How to load a text file?
Message-ID: <address@hidden>
Content-Type: text/plain; CHARSET=US-ASCII

On Dec 15, 2011, at 8:43 PM, George wrote:

> How do you load a text file in Octave?
>
> I tried textread and textscan, but got errors or unknown command.
>
> Also, how do I know if I need a package for a given command? The documentation doesn't say: http://www.gnu.org/software/octave/doc/interpreter/Simple-File-I_002fO.html#doc%2dtextread

What version of Octave are you running?

I suspect it is dated (older than the documentation you reference above).

It is possible that there are packages for Octave which include the functions you need. What OS are you running? Is there an "i/o" package available for it?

Ben




------------------------------

Message: 3
Date: Thu, 15 Dec 2011 20:09:59 -0800
From: George <address@hidden>
To: address@hidden
Subject: Re: How to load a text file?
Message-ID:
       <address@hidden>
Content-Type: text/plain; charset="iso-8859-1"

I downloaded the "latest version" from
http://sourceforge.net/projects/octave/files/Octave_Windows%20-%20MinGW/Octave%203.4.3%20for%20Windows%20MinGW%20Installer/
"Looking for the latest version? *Download
Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe (73.0
MB)<http://sourceforge.net/projects/octave/files/latest/download?source=files>
"*
*
*Running Octave 3.2.4

I got textread working a little. It can read the file. How would you parse
the following format into 2 arrays (or one 2D array)? The number is the
first column, everything to the right of the first comma is in the second
column. If that is not possible, I can change the comma to another
character.

1,text text text, text text
2,text text text, more text
3,more text and text


Thank you for your help!


On Thu, Dec 15, 2011 at 7:00 PM, Ben Abbott <address@hidden> wrote:

> On Dec 15, 2011, at 8:43 PM, George wrote:
>
> > How do you load a text file in Octave?
> >
> > I tried textread and textscan, but got errors or unknown command.
> >
> > Also, how do I know if I need a package for a given command? The
> documentation doesn't say:
> http://www.gnu.org/software/octave/doc/interpreter/Simple-File-I_002fO.html#doc%2dtextread
>
> What version of Octave are you running?
>
> I suspect it is dated (older than the documentation you reference above).
>
> It is possible that there are packages for Octave which include the
> functions you need. What OS are you running? Is there an "i/o" package
> available for it?
>
> Ben
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cae.wisc.edu/pipermail/help-octave/attachments/20111215/d7c9662f/attachment-0001.html>

------------------------------

Message: 4
Date: Thu, 15 Dec 2011 23:57:44 -0500
From: Doug Stewart <address@hidden>
To: George <address@hidden>
Cc: address@hidden
Subject: Re: How to load a text file?
Message-ID:
       <CAAohRsZ07z5skP8_ZiuKv1VY5Djz-Lf0he=address@hidden>
Content-Type: text/plain; charset="iso-8859-1"

On Thu, Dec 15, 2011 at 11:09 PM, George <address@hidden> wrote:

> I downloaded the "latest version" from
> http://sourceforge.net/projects/octave/files/Octave_Windows%20-%20MinGW/Octave%203.4.3%20for%20Windows%20MinGW%20Installer/
> "Looking for the latest version? *Download
> Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe (73.0 MB)<http://sourceforge.net/projects/octave/files/latest/download?source=files>
> "*
> *
> *Running Octave 3.2.4
>
> I got textread working a little. It can read the file. How would you parse
> the following format into 2 arrays (or one 2D array)? The number is the
> first column, everything to the right of the first comma is in the second
> column. If that is not possible, I can change the comma to another
> character.
>
> 1,text text text, text text
> 2,text text text, more text
> 3,more text and text
>
>
> Thank you for your help!
>
>
> On Thu, Dec 15, 2011 at 7:00 PM, Ben Abbott <address@hidden> wrote:
>
>> On Dec 15, 2011, at 8:43 PM, George wrote:
>>
>> > How do you load a text file in Octave?
>> >
>> > I tried textread and textscan, but got errors or unknown command.
>> >
>> > Also, how do I know if I need a package for a given command? The
>> documentation doesn't say:
>> http://www.gnu.org/software/octave/doc/interpreter/Simple-File-I_002fO.html#doc%2dtextread
>>
>> What version of Octave are you running?
>>
>> I suspect it is dated (older than the documentation you reference above).
>>
>> It is possible that there are packages for Octave which include the
>> functions you need. What OS are you running? Is there an "i/o" package
>> available for it?
>>
>> Ben
>>
>>
>>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
>


It would really help if you showed us the first 3 lines in the file.



--
DAS

https://linuxcounter.net/user/206392.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cae.wisc.edu/pipermail/help-octave/attachments/20111215/7f4f9fca/attachment.html>

------------------------------

_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave


End of Help-octave Digest, Vol 69, Issue 56
*******************************************


reply via email to

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