*** Caught a fatal signal: SIGSEGV (11) on node 0/1
NOTICE: Before reporting bugs, run with GASNET_BACKTRACE = 1 in the environment to generate a backtrace.
Segmentation Error (cast taken)
-g
option. This means that a special UPC configuration will be launched from the dbg subfolder. In order to be able to see specific lines of code, you need to save temporary files with sources at compile time with the -save-temps
parameter: upcc ./Pack_Polycubes.upc -o Pack_Polycubes -pthreads <b>-save-temps -g</b>
-freeze[=<thread_id>]
parameter, or you can just stop by mistake using -freeze-on-error
: upcrun -n 1 -freeze-on-error ./Pack_Polycubes
- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
This application was built from a Berkeley UPC installation that
has been configured with these optional features enabled:
debugging tracing statistical collection debugging malloc
This is usually
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 Rosa-VB (pshm node 0 of 1, process 0 of 1, pid = 31257)
Hello, I am 0 of 1.
...
*** Caught a fatal signal: SIGSEGV (11) on node 0/1
Process frozen for debugger: host = Rosa-VB pid = 31257
To unfreeze, attach a debugger and set 'gasnet_frozen' to 0, or send a SIGCONT
gdb Pack_Polycubes.o 31257
GNU gdb (Linaro GDB) 7.7.1_2014.06_1-10 ()
Copyright © 2014 Free Software Foundation, Inc.
...
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007f0afab16cd0 in __nanosleep_nocancel () from /lib64/libc.so.6
(gdb) set gasnet_frozen = 0 (gdb) continue
Program received signal SIGSEGV, Segmentation fault.
0x00000000004289f8 in MultiplyMatrixPackSpace (Result = 0x26274ac, Matrix = 0x2696340, CurPackSpace = 0x7ffd81634020)
at ./Pack_Polycubes.upc:1065
1065 Result [row] [col] = 0;
(gdb) list
1060 // Row-to-Column Multiplication
1061 for (row = 0; row <Params.Demension; row ++)
1062 {
1063 for (col = 0; col <Params.Demension; col ++)
1064 {
1065 Result [row] [col] = 0;
(gdb) bt
# 0 0x00000000004289f8 in MultiplyMatrixPackSpace (Result = 0x26274ac, Matrix = 0x2696340, CurPackSpace = 0x7ffd81634020)
# 1 0x0000000000428680 in CheckIndependancePS (CurPackSpace = 0x7ffd81634020) at ./Pack_Polycubes.upc:1032
# 2 0x0000000000428430 in AddIndependentPackSpace (CurPackSpace = 0x7ffd81634020) at ./Pack_Polycubes.upc:1011
...
# 8 0x000000000042e21 in ExplorePackSpaces () at ./Pack_Polycubes.upc:922
# 9 0x00000000004244c5 in user_main (argc = 4, argv = 0x7ffd816344e8) at ./Pack_Polycubes.up around14 ...
quit
. (gdb) continue
Continuing.
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
kill
command from another console window, but in Rosa it is simpler with the help of Ctrl ^ C.break [file:]functiop
- set abreak [file:]functiop
on the functionbt
call stackprint expr
- display the value of the expression- continue program execution
next
- execute the next line of the program (jump over)step
- step inside the program linelist
- view the current break linehelp
- call helpquit
- exit
man gdb
Source: https://habr.com/ru/post/317196/
All Articles