Re: [Planner Dev] planner crashes on amd64 platform



Richard Hult kirjoitti:
Jani Tiainen wrote:

Oliver Rath kirjoitti:

Hi,

i tried it now on a piii-650mhz gentoo platform: planner rocks!

So Im shure, there is an arch-prob for amd64. If Anybody needs a test-planner-file, mail me!

Oliver



Send test file to me, I've AMD64 arch, but running Debian AMD64 port instead and I haven't seen such a messages.


Jani, if it's possible, could you try it the crash happens on a line like this:

mrp_calendar_set_days (calendar, date, mrp_day, -1);
and try changing it to this:

mrp_calendar_set_days (calendar, date, mrp_day, (mrptime) -1);

The -1 is probably passed as an int instead of the long, which messes up the sign.

Well, this is point where crash happens (atleast on load routine). Haven't yet tried does it help to add explicit typeconversion.

Or something else that messes up bitsizes, since int and long are different on amd64 (and other 64bit platforms) than on 32 platforms.

It might be bug on planner code, but also bug in GCC, who knows....

I'll see soon does it help to add that (mrptime) conversion.

--

Jani Tiainen




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