help-octave
[Top][All Lists]
Advanced

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

Re: how to debug this strange load problem


From: frank wang
Subject: Re: how to debug this strange load problem
Date: Tue, 29 Aug 2006 10:08:50 -0700

Hi, David,
 
When I type which load in octave, it says:

load is a build-in command.
 
I have run the strace command. But I do not know how to catch the output into a file, so I copied a part of it from the screen and attached here. From the trace, octave did open the correct file and read the correct data. However, inside octave, after I typed load test2.txt and whos -v, I did not see any varialbes loaded in.
 
Could you see the problem from the attaced file?
 
Thanks for the help
 
Frank
 
On 8/29/06, David Bateman <address@hidden> wrote:
frank wang wrote:
> Hi,
>
> After I rebuild octave 2.9.7 and octave 2.9.8, I still could not load
> a simple text file as the one attached. Since I have the source code,
> I want to debug the code and find out why. Could someone tell me how
> to debug octave using gdb? how to setup a breakpoint? To debug the
> load problem, where should I set the breakpoint?
>
> I repeat my problem here again. After type the load test2.txt, octave
> does not show any data. If I type test2, octave will state that it
> does not exist. I have tried all suggestions from previous post, but I
> still cannot solve this.
Frank given the numerous responses I've seen, I don't think its for lack
of trying that you no solution yet. I suspect something very weird is
happening. Here are some ideas that might help resolve the issue

1) Is there some other function load in your path that is interfering.
Try "which load" in octave to tell you which load function is used. It
should return "load is a built-in command"
2) Is the correct test2.txt file being opened. Try "strace octave --eval
'load test2.txt'" and let strace tell you what files are actually being
opened...

Sorry, I really can't see why you are having this problem as the file
loads fine here...

D.

--
David Bateman                                 address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax)

The information contained in this communication has been classified as:

[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary


Attachment: straceout.txt
Description: Text document


reply via email to

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