From: Timothy Stitt (tstitt_at_cscs.ch)
Date: Thu Sep 18 2008 - 12:04:57 PDT
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.