[SimGrid-user] Segmentation fault with MSG_process_killall()

wkolberg at inf.ufrgs.br wkolberg at inf.ufrgs.br
Tue Mar 5 17:15:43 CET 2013


Hi!

I'm trying to quickly finish a simulation by calling  
MSG_process_killall() from a host in my platform. So firstly, is it ok  
to do that?

However, I'm getting a segmentation fault when I try to do that.  
Should I ensure anything before calling the function? Maybe I'm  
missing something.

Below is some debug information... it seems that  
MSG_process_cleanup_from_SIMIX() is trying to dereference a NULL  
pointer (msg_proc).


Program received signal SIGSEGV, Segmentation fault.
MSG_process_cleanup_from_SIMIX (smx_proc=0xecfb00) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/msg/msg_process.c:49
49	  if (msg_proc->data && msg_global->process_data_cleanup) {
(gdb) where
#0  MSG_process_cleanup_from_SIMIX (smx_proc=0xecfb00) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/msg/msg_process.c:49
#1  0x00007ffff7b39263 in smx_ctx_base_stop  
(context=context at entry=0xecfc50) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_context_base.c:91
#2  0x00007ffff7b39319 in smx_ctx_raw_stop.10118 (context=0xecfc50) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_context_raw.c:376
#3  0x00007ffff7a8268c in SIMIX_process_stop (arg=arg at entry=0xecfb00)  
at /home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_private.h:285
#4  0x00007ffff7a98e61 in SIMIX_process_yield  
(self=self at entry=0xecfb00) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_process.c:752
#5  0x00007ffff7b391a6 in simcall_BODY_process_cleanup  
(process=<optimized out>) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_user.c:21
#6  simcall_process_cleanup (process=<optimized out>) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_user.c:338
#7  0x00007ffff7b39270 in smx_ctx_base_stop  
(context=context at entry=0xecfc50) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_context_base.c:93
#8  0x00007ffff7b392f6 in smx_ctx_raw_stop (context=0xecfc50) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_context_raw.c:376
#9  smx_ctx_raw_wrapper.10107 (context=0xecfc50) at  
/home/wkolberg/Downloads/SimGrid-3.9/src/simix/smx_context_raw.c:364
#10 0x0000000000000000 in ?? ()
(gdb) p msg_proc
$5 = (simdata_process_t) 0x0

Best regards,
Wagner



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





More information about the Simgrid-user mailing list