[Symphony-tickets] [SYMPHONY] #138: Segmentation fault when using openmp

SYMPHONY coin-trac at coin-or.org
Tue Feb 3 12:14:24 EST 2015


#138: Segmentation fault when using openmp
----------------------+-------------------------
 Reporter:  rbubley   |      Owner:  tkr
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  Not Sure  |    Version:  trunk (SVN)
 Keywords:            |
----------------------+-------------------------
 I am running SYMPHONY 5.5.6 (Rev 2384), on a Mac, compiled with gcc (both
 version 4.8.4 and 4.9.2).

 When running a MILP problem from the command line, I get a seg fault if I
 have compiled with OpenMP (and none if I have compiled without it).

 The seg fault occurs after all the processing, and at the end of the
 output. Running it through a debugger, the offending line is line 819 of
 master_wrapper.c

 It seg faults with -O3 and -O2 optimization flags, but didn't with -O0. It
 seems that it doesn't always seg fault, suggesting some sort of race
 condition, perhaps.


 {{{
 thread 1: tid = 0x53cd0b, 0x0000000100013219
 symphony`free_master_u(env=0x0000000101002400) + 521 at
 master_wrapper.c:819, queue = 'com.apple.main-thread', stop reason =
 EXC_BAD_ACCESS (code=1, address=0xd4000000db)
     frame #0: 0x0000000100013219
 symphony`free_master_u(env=0x0000000101002400) + 521 at
 master_wrapper.c:819
    816        if (env->warm_start->cuts){
    817           for (i = env->warm_start->cut_num - 1; i >= 0; i--){
    818              if (env->warm_start->cuts[i]){
 -> 819                 FREE(env->warm_start->cuts[i]->coef);
    820              }
    821              FREE(env->warm_start->cuts[i]);
    822           }
 }}}

--
Ticket URL: <https://projects.coin-or.org/SYMPHONY/ticket/138>
SYMPHONY <http://projects.coin-or.org/SYMPHONY>
The SYMPHONY framework for parallel branch-and-cut algorithms.



More information about the Symphony-tickets mailing list