[esp-r] Re: res crashes when netflow results should be shown

Ferguson, Alex AFerguso at NRCan.gc.ca
Tue Jul 22 14:26:57 BST 2008


Hi Holger,

Are you compiling ESP-r from source (that is, using a sandbox checked
out from svn)? If so, check which version of gcc you're using:

  $ gcc -v

If the result is gcc 3.4.X, then everything's probably ok. The Install
script should correctly locate the gcc/g77/g++ compilers, and link in
the correct libc and libstdc++ libraries. But if your default compiler
is set to gcc 4.+, you need to specify the '--gcc4' command line
argument during installation. Run the following command from the src
directory for more information:

  $ ./Install --help

If you fail to specify '--gcc4' on a system with gcc4 compilers, the
install script will likely find the version 4.X gcc and g++ compilers,
but will probably use the version 3.4 g77 fortran compiler. It will
probably link these against the version 4.X libc and libstdc++
libraries. 

These library and compiler mismatches will produce unpredictable
results, and might well generate the stack-smash error you encountered.
Even if you're using the '--gcc4' option, I can't be certain which
library your binaries will be built against if other gcc libraries are
present on your system.

Truth is that many linux distibutions do a poor job managing multiple
versions of the gcc compiler. Gentoo provides a useful script called
gcc-config, which allows users to cleanly switch between multiple
versions of gcc, and updates the environment variables to point to the
correct libraries. Does anybody know of similar tools for Ubuntu and
other distributions?

- Alex

-----Original Message-----
From: esp-r-bounces at lists.strath.ac.uk
[mailto:esp-r-bounces at lists.strath.ac.uk] On Behalf Of Holger Bertling
Sent: Tuesday, July 22, 2008 4:39 AM
To: esp-r
Cc: Jon Hand
Subject: [esp-r] Re: res crashes when netflow results should be shown

Hello Jon,

ESP-r 11.5 is running on Ubuntu 8.04.
I chosed X11.

But I'm not sure about the compiler.
Is it the gcc?
On my system are gcc-3.4 and gcc-4.2.
If I had been asked,
I'd chosen the recommended...
Can I check this afterwards?

Thanks and best regards,
Holger


Am Dienstag, den 22.07.2008, 00:36 +0100 schrieb Jon Hand:
> A 'stack' issue has been identifed in res. This issue may be machine 
> specific as we have not had other reports of this problem.
> 
> Some additional information would be useful - what operating system 
> and what version, what compiler and version was used, which graphics 
> libary (X11 or GTK) for the version of esp-r and lastly is there a 
> version and revision number for the version of esp-r being used?
> 
> Regards, Jon Hand
> 
> 
> -----Original Message-----
> From: esp-r-bounces at lists.strath.ac.uk on behalf of Holger Bertling
> Sent: Mon 7/21/2008 6:32 PM
> To: esp-r
> Subject: [esp-r]  res crashes when netflow results should be shown
>  
> Hello List,
> 
> The simulation seems to be Ok.
> Res accepts the flow-results-file.
> I tried different models
> and file and screen output.
> 
> When I select any results of the flownetwork this is happening:
> 
> b at d:~$ res
> kl_1        ->spha         via door_1      
> spha        ->kl_2         via door_2      
> kl_1        ->outside_node via window_1    
> spha        ->outside_node via window_2    
> kl_2        ->outside_node via window_3    
>  AXISDRW 0 0 1 0 0
>  Current  -0.652873993 fac   1. IADJ  -1
>  New     -1.
> *** stack smashing detected ***: res terminated ======= Backtrace: 
> ========= 
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7d6e138]
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7d6e0f0]
> res[0x828f4f4]
> res[0x81d6dc4]
> res[0x816f7f9]
> res[0x821e5b6]
> res[0x804c684]
> res[0x8299639]
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7c97450]
> res[0x804a561]
> ======= Memory map: ========
> 08048000-082f3000 r-xp 00000000 08:05 5153976
/usr/esru/esp-r/bin/res
> 082f3000-0831c000 rw-p 002ab000 08:05 5153976
/usr/esru/esp-r/bin/res
> 0831c000-09cf6000 rw-p 0831c000 00:00 0          [heap]
> b7c43000-b7c47000 r-xp 00000000 08:05
> 4645301    /usr/lib/libXfixes.so.3.1.0
> b7c47000-b7c48000 rw-p 00003000 08:05
> 4645301    /usr/lib/libXfixes.so.3.1.0
> b7c48000-b7c4f000 r-xp 00000000 08:05
> 4645321    /usr/lib/libXrender.so.1.3.0
> b7c4f000-b7c50000 rw-p 00007000 08:05
> 4645321    /usr/lib/libXrender.so.1.3.0
> b7c50000-b7c58000 r-xp 00000000 08:05
> 4645291    /usr/lib/libXcursor.so.1.0.2
> b7c58000-b7c59000 rw-p 00007000 08:05
> 4645291    /usr/lib/libXcursor.so.1.0.2
> b7c59000-b7c5a000 rw-p b7c59000 00:00 0 b7c5a000-b7c5e000 r-xp 
> 00000000 08:05
> 4645295    /usr/lib/libXdmcp.so.6.0.0
> b7c5e000-b7c5f000 rw-p 00003000 08:05
> 4645295    /usr/lib/libXdmcp.so.6.0.0
> b7c5f000-b7c61000 r-xp 00000000 08:05
> 4645284    /usr/lib/libXau.so.6.0.0
> b7c61000-b7c62000 rw-p 00001000 08:05
> 4645284    /usr/lib/libXau.so.6.0.0
> b7c62000-b7c63000 rw-p b7c62000 00:00 0  . . .
> 
> Maybe someone can read this...
> 
> Best regards,
> 
> Holger
> 
> 
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk
> http://lists.strath.ac.uk/mailman/listinfo/esp-r
> 
> 
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk
> http://lists.strath.ac.uk/mailman/listinfo/esp-r


_______________________________________________
esp-r mailing list
esp-r at lists.strath.ac.uk
http://lists.strath.ac.uk/mailman/listinfo/esp-r



More information about the esp-r mailing list