From: Nenad Vukicevic (nenad_at_intrepid_dot_com)
Date: Thu Sep 18 2008 - 14:01:20 PDT
Tim, unfortunately gcc-upc v4.2.3.3 is incompatible with v2.6 of the Berkeley run-time. By default, gcc-upc v4.2.3.3 builds with 'packed' pointer representation (see http://www.intrepid.com/upc/configuration.html) that is incompatible with Berkeley's packed pointer - layout of thread/address/block is just different. The best option for you is to checkout the latest Berkeley run-time from their CVS tree, as we made numerous changes there to make it compatible with the latest gcc-upc. There is also a possibility that gcc-upc v4.2.3.3 built for structure pointer representation (--with-upc-pts=struct) will work with v2.6 of the run-time. We haven't tried it as this option is performance inferior to the packed one. Nenad > On 09/18/08 21:04:57, Timothy Stitt wrote: >> Dear all, >> >> I just got the Berkely Runtime System (v2.6) built with gcc-upc >> (v4.2.3.3) on my local 32-bit x86 system. I compiled my first UPC >> program given below using the command line 'upcc -o hello -T 1 >> helloworld.upc' >> >> #include <upc_relaxed.h> >> #include <stdio.h> >> >> int main() { >> printf("Hello from thread %i/%i\n", MYTHREAD, THREADS); >> upc_barrier; >> return 0; >> } >> >> When I try to execute the executable using ' upcrun ./hello' I keep >> getting the following runtime error (with information): >> ----------------------------------------------------------------------- >> WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING >> >> This application was built from a Berkeley UPC installation that >> was configured and built with these optional features enabled: >> debugging tracing statistics >> This usually has a SERIOUS impact on performance, so you should NOT >> trust any performance numbers reported in this program run!!! >> >> To suppress this message, pass '-quiet' to the upcrun command or set >> the UPC_NO_WARN or UPC_QUIET environment variables. >> ----------------------------------------------------------------------- >> UPCR: UPC thread 0 of 1 on Rostau (process 0 of 1, pid=10928) >> *** Caught a fatal signal: SIGSEGV(11) on node 0/1 >> [0] /usr/bin/gdb -nx -batch -x /tmp/gasnet_18SUAn >> '/home/tim/pgas/UPC/examples/./hello' 10928 >> [0] 0xb7f3f410 in __kernel_vsyscall () >> [0] #0 0xb7f3f410 in __kernel_vsyscall () >> [0] #1 0xb7e4d4d3 in waitpid () from /lib/tls/i686/cmov/libc.so.6 >> [0] #2 0xb7df0643 in ?? () from /lib/tls/i686/cmov/libc.so.6 >> [0] #3 0x080e9d6b in gasneti_system_redirected ( >> [0] cmd=0x8222560 "/usr/bin/gdb -nx -batch -x /tmp/gasnet_18SUAn >> '/home/tim/pgas/UPC/examples/./hello' 10928", stdout_fd=3) >> [0] at >> /home/tim/pgas/UPC/berkeley_upc-2.6.0/gasnet/gasnet_tools.c:642 >> [0] #4 0x080ea2b6 in gasneti_bt_gdb (fd=3) >> [0] at >> /home/tim/pgas/UPC/berkeley_upc-2.6.0/gasnet/gasnet_tools.c:818 >> [0] #5 0x080ea886 in gasneti_print_backtrace (fd=2) >> [0] at >> /home/tim/pgas/UPC/berkeley_upc-2.6.0/gasnet/gasnet_tools.c:985 >> [0] #6 0x080eab81 in _gasneti_print_backtrace_ifenabled (fd=2) >> [0] at >> /home/tim/pgas/UPC/berkeley_upc-2.6.0/gasnet/gasnet_tools.c:1039 >> [0] #7 0x081a562f in gasneti_defaultSignalHandler (sig=11) >> [0] at >> /home/tim/pgas/UPC/berkeley_upc-2.6.0/gasnet/gasnet_internal.c:344 >> [0] #8 <signal handler called> >> [0] #9 0xb7e2b9b5 in memcpy () from /lib/tls/i686/cmov/libc.so.6 >> [0] #10 0x080c36c5 in gccupc_static_data_init (start=0xb3db8000, >> len=4096) >> [0] at /home/tim/pgas/UPC/berkeley_upc-2.6.0/upcr_gccupc.c:99 >> [0] #11 0x080b43e1 in upcri_perthread_spawn (args=0xbff92270) >> [0] at /home/tim/pgas/UPC/berkeley_upc-2.6.0/upcr_init.c:958 >> [0] #12 0x080b48fa in upcr_startup_spawn (pargc=0xbff92320, >> pargv=0xbff92324, >> [0] static_data_size=4096, default_cache_size=0, >> spawnfuncs=0xbff922ac) >> [0] at /home/tim/pgas/UPC/berkeley_upc-2.6.0/upcr_init.c:1222 >> [0] #13 0x080b50df in do_bupc_init_reentrant (pargc=0xbff92320, >> pargv=0xbff92324, >> [0] user_func=0x80600f2 <upc_main>) >> [0] at /home/tim/pgas/UPC/berkeley_upc-2.6.0/upcr_init.c:1436 >> [0] #14 0x080b51e0 in bupc_init_reentrant (pargc=0xbff92320, >> pargv=0xbff92324, >> [0] user_func=0x80600f2 <upc_main>) >> [0] at /home/tim/pgas/UPC/berkeley_upc-2.6.0/upcr_init.c:1471 >> [0] #15 0x080745b3 in main (argc=) at hello_startup_tmp.c:80 >> Segmentation fault >> >> No matter what options I use I always get the same seg fault. I would be >> grateful if someone could suggest what I am doing wrong. Please let me >> know what further debug information you need. >> >> Regards, >> >> Tim. >