Changeset 2781d797 in OpenModelica


Ignore:
Timestamp:
2013-12-09T14:48:40+01:00 (10 years ago)
Author:
Martin Sjölund <martin.sjolund@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
7341889e
Parents:
c83f8a95
Message:

Don't strip so many stack frames from seg.fault messages

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18445 f25d12d1-65f4-0310-ae8a-bbce733d8d8e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SimulationRuntime/c/meta/meta_modelica_segv.c

    rf3177c0c r2781d797  
    103103  isStackOverflow = si->si_addr < stackBottom && (si->si_addr > stackBottom - LIMIT_FOR_STACK_OVERFLOW);
    104104  if (isStackOverflow) {
    105     setTrace(3,0);
     105    setTrace(1,0);
    106106    sigprocmask(SIG_UNBLOCK, &segvset, NULL);
    107107    longjmp(*((threadData_t*)pthread_getspecific(mmc_thread_data_key))->mmc_stack_overflow_jumper,1);
    108108  }
    109109  /* This backtrace uses very little stack-space, and segmentation faults we always want to print... */
    110   setTrace(3,16);
     110  setTrace(1,16);
    111111  unused=write(2, "\nLimited backtrace at point of segmentation fault\n", 50);
    112112  backtrace_symbols_fd(trace+trace_size_skip, trace_size-trace_size_skip, 2);
Note: See TracChangeset for help on using the changeset viewer.