[ts-gen] MacOS Shim problems

Bill Pippin pippin at owlriver.net
Fri May 22 15:09:37 EDT 2009


Ric,

About the continuing problem where your version of the shim hangs:

> Tried the patches, still seems to lock in leaf.c the modified
> print line works; here is the output:

> Pidx: < 30449 30649 CASH CASH, USD USD, n/a n/a, AUD !=     HKD: 12345795
> Pidx: < 30449 30649 CASH CASH, USD USD, n/a n/a, AUD !=     HKD: 12345795
  ... [more of the same deleted]

I've pushed a new release, and I'd like you to try it out.  The
database version has changed, so you'll need to recreate and repopulate
your database first.  You do not have to run the setup.sql script for
this, as the database permissions can be left alone.  Instead, the
create.sql script will recreate the tables and load them with initial
values, although if you want to update both the testing and trading
databases, you'll need to run it twice, once connected to each.

I've made minor changes to the way in which the print_line trace
procedure is called, and to the data it prints out, so any traces
you produce should be more helpful if you are still experiencing
the same problem.

I'm not claiming at this point to have fixed your problem --- at this
point I don't know what exactly it is --- but would like to make sure
that you and I are looking at the same code.

I am completely unable to imagine how the code I'm running could
produce the trace results you show above, even for your presumably
different portfolio and possibly different database product set.
The trace you posted shows a search interval that is *twenty*
indices wide, and yet the midpoint computation is failing to narrow
it.  Actually, the problem looks similar to the one you first found,
and for which I posted a fix.

I found what seem to be other problems with product lookup, having
to do with region vs n/a handling for CASH securities, and possibly
even the choice of security type (e.g., CASH or STK) itself, but I
want to get this release out to get past the problems you are seeing,
and not so incidently make sure no else downloading the newest public
release of the code sees them either.
 
Please try this out and let us know what you find.  In particular,
if your shim still hangs, and the print_line trace procedure shows
steady-state looping, please post the part of the trace from the
start of the search up through where it goes from narrowing to
steady-state.  I've added AUD and HKD to my (paper) portfolio, and
the lookup traces I get are nothing like what your post shows.

Thanks,

Bill


More information about the ts-general mailing list