Installation welcome page

79 views
Skip to first unread message

Gerrit Leder

unread,
Oct 18, 2012, 7:48:11 AM10/18/12
to dim...@googlegroups.com
Hi all,

I installed Latest dim_STAT v.9.0 distribution! (Aug.2011)

But when calling the MainPage (welcome page) I get the following error:

 Invalid X_PAGE value: /dim_STAT/x.welcome

I reinstalled three times: always the same behaviour. And nothing appears in Google.

Help appreciated!

Bye
Gerrit


(dim)

unread,
Oct 18, 2012, 9:08:23 AM10/18/12
to dim_STAT
Hi Gerrit,

I've already met such a problem and very surprised the post about is
not appearing here.. - in my case it was Fedora 16 (hope you're not
using it now?) and gave me a huge headache before I've found the
source of issue.. After days of tracing various parts of the code,
I've found some odd behavior within the system (LibC) functions
strcpy() !!! - if I replace it to my own (for ex.) - issue was
gone ;-) as well the problem was never seen before on any other Linux
or UNIX.. - so I've just suggested to avoid to use Fedora 16 if
possible..

what is your Linux distro?..
did you try on any other?..

Rgds,
-Dimitri


On Oct 18, 1:48 pm, Gerrit Leder <gerrit.le...@gmail.com> wrote:
> Hi all,
>
> I installed Latest dim_STAT *v.9.0* distribution! *(Aug.2011)
>
> *But when calling the MainPage (welcome page) I get the following error:

Gerrit Leder

unread,
Oct 18, 2012, 9:16:03 AM10/18/12
to dim...@googlegroups.com
Hello Dimitri,

I am using Ubunut 12.04 and should I try a newer/older version?
It is now: Ubuntu 12.04.1 LTS 32 bit

I would like to stick to Ubuntu, OpenSUSE would be another option.

What do you suggest?

Thanks a lot
Gerrit

2012/10/18 (dim) <dimit...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "dim_STAT" group.
To post to this group, send email to dim...@googlegroups.com.
To unsubscribe from this group, send email to dimstat+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dimstat?hl=en.


(dim)

unread,
Oct 18, 2012, 10:28:01 AM10/18/12
to dim_STAT
Hi Gerrit,

I've just tested on Xubuntu 11.04 32bit -- works without any problem
(should be the same on Ubuntu 11.04 as well), there was no issue until
now on any Oracle Linux too (so should be the same on RH5/RH6)..

anybody else meeting a similar problem?
what other Linux distros are used and can be reported as tested?

Rgds,
-Dimitri


On Oct 18, 3:16 pm, Gerrit Leder <gerrit.le...@gmail.com> wrote:
> Hello Dimitri,
>
> I am using Ubunut 12.04 and should I try a newer/older version?
> It is now: Ubuntu 12.04.1 LTS 32 bit
>
> I would like to stick to Ubuntu, OpenSUSE would be another option.
>
> What do you suggest?
>
> Thanks a lot
> Gerrit
>
> 2012/10/18 (dim) <dimitrik...@gmail.com>

Gerrit Leder

unread,
Oct 19, 2012, 7:26:17 AM10/19/12
to dim...@googlegroups.com
Latest News:

installation of dim_stat with Ubuntu 12.10 32 bit yields the same dim_stat error :-( no MainPage "x.welcome" :-(

Installation of OpenSUSE 12.2 32 bit failed behind a Network Proxy.

Bye
Gerrit

Dimitri

unread,
Oct 19, 2012, 8:42:36 AM10/19/12
to dim...@googlegroups.com
Hi Gerrit,

I'll check it and let you know.. - I should have a Ubuntu 12.04 desktop around, or will try 12.10 under VBox. If the issue becomes "general" and not only related to Fedora 16, then it makes sense to replace some sys lib functions if the problem is the same (but it can be different also), so, let's see..

Rgds,
-Dimitri

To view this discussion on the web visit https://groups.google.com/d/msg/dimstat/-/Spcr73b0dfQJ.

Dimitri

unread,
Oct 23, 2012, 3:13:13 AM10/23/12
to dim...@googlegroups.com
Hi Gerrit,

So far, I've made my investigation, and the latest Ubuntu has the same problem as I've observed on Fedora 16 during tis summer..

Here is the trace output I'm getting from WebX while the "welcome" page is accessed:


On the start it gets the "root" path (which is "/apps/WebX/apps") in my case, and the page name to show (via X_PAGE parameter, which is "/dim_STAT/x.welcome" on start). But before even to access to the page, WebX should verify first that the proposed page is existing within the "root" path, so it'll do:

1.) compose full path name with "root"/"page" (which will be: "/apps/WebX/apps//dim_STAT/x.welcome")
2.) then replace all "//" and "/./" by "/"

which corresponding to the following in the source code:

......
 X_TRACE( " ==> fname: %s for root: %s \n", fname, root );

 while( (chp= (char *)strstr( fname, "//"  )) != NULL )  strcpy( chp, &chp[1] );
 X_TRACE( " trim //  ==> fname: %s for root: %s \n", fname, root );
......

and as you can see from the trace output:
- the file name is "/apps/WebX/apps//dim_STAT/x.welcome" before enter to the "while" loop
- but by leaving the loop become: "/apps/WebX/apps/dim_STAT/x.welccome"
  
so, the "//" is well replaced by "/", but during the string copy within strcpy() something is going wrong, and "x.welcome" is transformed into "x.welccome"  (with one more 'c'), which is no more corresponding to requested file name anymore, and that's why you're observing the reported error.. (and I have no idea how ever it may happen within strcpy().. - looks like the copy is stopping on the 'c' letter instead to continue till the end of the string.. - and if there was some data corruption, we may expect that any similar code should come with the same problem)

but If I'm replacing the sys lib strcpy() function by my own:

// (dim)
// workaround for a bug in recent Linux libC strcpy()..
char *strcpy( char *to, const char *from )
{
  int i;

  for( i= 0; ; i++ )
  {
    to[i]= from[i];
    if( to[i] == '\0' )  break;
  }
}

everything is then working as expected ;-)

but of course the sys lib function should be way more optimal (and probably even released on an assembler level to go much faster), so it's hard for me to consider such a workaround as a "solution" -- I'd prefer to see the sys lib strcpy() working correctly.. 

until then, I've recompiled dim_STAT for Linux with a "workaround" strcpy() and uploaded it on my site, so you may already get a try and see if it works for you -- and I'm very curious as well if you'll not hit any other problems. While for users using other (older) Linux distributions it should not create any troubles as the alternate "workaround" strcpy() may only work ;-)

so, try it now, and let me know if it works for you.

Rgds,
-Dimitri

On Friday, October 19, 2012 at 13:26 , Gerrit Leder wrote:

To view this discussion on the web visit https://groups.google.com/d/msg/dimstat/-/Spcr73b0dfQJ.

Gerrit Leder

unread,
Oct 29, 2012, 5:55:59 AM10/29/12
to dim...@googlegroups.com
Hi Dimitri,

thanks for the explanation. But where can I find the uploaded "workaround" at your site? I can only see Version 9.0 for download.

Bye
Gerrit

Dimitri

unread,
Oct 29, 2012, 10:38:27 AM10/29/12
to dim...@googlegroups.com
Hi Gerrit,

just re-download the tarball again - it was updated with binaries having a "workaround" code inside, so I hope it'll just work since then for you and there is no other kind of surprises ;-)

Rgds,
-Dimitri

To view this discussion on the web visit https://groups.google.com/d/msg/dimstat/-/P_faM6KMz90J.

Gerrit Leder

unread,
Oct 29, 2012, 11:24:10 AM10/29/12
to dim...@googlegroups.com
Hi Dimitri,

redownloaded v 9.0 and welcome page is now available! :-)

Thanks again
Gerrit

Dimitri

unread,
Oct 29, 2012, 11:41:50 AM10/29/12
to dim...@googlegroups.com
Hi Gerrit,

this is better ;-)
let's see now if there will be no any other issues..

Rgds,
-Dimitri

To view this discussion on the web visit https://groups.google.com/d/msg/dimstat/-/FdWDFjuldt0J.
Reply all
Reply to author
Forward
0 new messages