RP/Tux 7.1 / Tux 8.0 / Tux 8.1 - dmadmin core dump with Tux 8.1 RP117 (Doc ID 775799.1)

Last updated on NOVEMBER 04, 2016

Applies to:

Oracle Tuxedo / Tuxedo / 7.1,8.0,8.1
Information in this document applies to any platform

Goal

DESCRIPTION:
In HP 64 bit, after installing Tux 8.1 RP117, which introduces the domain enhancement from Tux 7.1. With any domain
configuration, dmadmin command will fail with any subcommands.

After code investigation, seems in function gw_timeInt4ToString of gwmisc.c, when invoke system call gmtime in line
404:
if ((tmPtr = gmtime(&t)) != NULL) {
                (void)sprintf(buf, "%d/%d/%d/%d:%d:%d", tmPtr->tm_year + 1900,
                              tmPtr->tm_mon + 1, tmPtr->tm_mday, tmPtr->tm_hour,
                                        tmPtr->tm_min, tmPtr->tm_sec);
                GWDBG(98, ("< gw_timeInt4ToString(30) return success"));
                return 0;
        }
it is passed in one TM32I (int), however, gmtime requests the parameter to be time_t, on HP 64 bit, time_t should be
long. Then use int as long, BUS error will happen. Also the same concern about other 64 bit platform specific problem
with it, which is not found.

CONFIGURATION:
Installed TUX 8.1 RP117 on any HP 64 bit platform, configure one simple domain application, then run dmadmin command,
the any sub-commands pressed will lead to BUS error.


WORKAROUND:

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms