Top «Prev(2005-07-07) Latest Next(2005-08-07)» Edit

pterjan's diary


2005-07-24 Awful

  The worst configure I have ever seen

I was rebuilding ace-5.4.4-1mdk.src.rpm (software comes from there) on x86_64, and my machine bacame unresponsive. I could run top which displayed:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
19509 pterjan   18   0  294g 353m  248 R  1.7 35.3   0:02.83 conftest
I could kill the configure which was doing this very interesting thing:
checking if new throws std::bad_alloc exception on failure...
I then looked into the configure code and found this :
        int main(int, char *[]) {
          while (1) {
            try {
              char *a = new char[1024*1024];
              if (a == 0) {
                return 1; /* new() does NOT throw exceptions */
              }
            }
#ifdef ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB
            catch (std::bad_alloc)
#else
            catch (bad_alloc)
#endif  /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
            {
             return 0; /* new() does throw exceptions */
            }
         };
           return 1;  /* ERROR: We shouldn't get this far! */
        }
How can someone write such code in their configure ? Maybe I could put into mine « checking if reboot is working... », « checking if /var can be deleted... » or « checking if apache can serve warez... ».

  Sorry planets

Looks like something strange occured while I updated my tdiary to 2.1.2. Planet Mandriva and Planete GnomeFR got my 10 latest news as being from yesterday. Sorry for the flood.

The RSS looks correct so I can't do much to fix...


2004|06|07|08|09|11|
2005|01|02|05|06|07|08|09|10|11|12|
2006|01|02|03|06|08|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|12|
2011|02|04|06|
2012|01|05|11|
2013|01|02|04|06|
2014|02|
2015|06|
2017|05|07|12|