Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8517659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:45:57+00:00 2026-06-11T05:45:57+00:00

I am trying to run a code (sent to me by someone) that uses

  • 0

I am trying to run a code (sent to me by someone) that uses mex files in MATLAB. I have managed to compile the mex files, but when I run the code that calls these files, I get the error shown below. I am not quite sure what’s happening here, so any help will be appreciated.

Segmentation violation detected at Mon Sep 10 16:26:11 2012
------------------------------------------------------------------------

Configuration:
  Crash Decoding  : Disabled
  Current Visual  : 0x22 (class 4, depth 24)
  Default Encoding: UTF-8
  GNU C Library   : 2.11.3 stable
  MATLAB Root     : /cae/apps/data/matlab-2012a
  MATLAB Version  : 7.14.0.739 (R2012a)
  Operating System: Linux 3.2.0-0.bpo.2-amd64 #1 SMP Fri Jun 29 20:42:29 UTC 2012 x86_64
  Processor ID    : x86 Family 6 Model 42 Stepping 7, GenuineIntel
  Virtual Machine : Java 1.6.0_26-b03 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
  Window System   : The X.Org Foundation (11006000), display localhost:10.0

Fault Count: 1


Abnormal termination:
Segmentation violation
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:45:59+00:00Added an answer on June 11, 2026 at 5:45 am

    There’s definitely a bug in the MEX code. Two possibilities:
    1. The error is insufficient error-checking, and you’re calling the function with parameters that are not valid (bad types, sizes, order, etc.)
    2. If you’re using a confirmed set of parameters that work on the author’s machine, then perhaps the code is not portable, and makes bad assumptions (32/64 bit, Windows/Linux, etc.)

    Step 1: Check your arguments, if possible use a minimal test set that has been verified on the author’s computer.

    Step 2: Run the same code via the debugger:
    http://www.mathworks.com/help/matlab/matlab_external/debugging-c-c-language-mex-files.html
    This will help isolate the location of the crash. Then fix the code 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run this code but this error appear: Uncaught TypeError: string is
I am trying to run the code below but it keeps locking up my
Trying to use CIColorMap filter, but getting run-time error [NSImage _feImage]: unrecognized selector sent
I am trying to run code on several cores (I tried both the snow
I'm trying to run this code: let coins = [50, 25, 10, 5, 2,1]
I am trying to run this code: ItemTaxonomy iTaxonomy = from itemTaxonomy in connection.ItemTaxonomy
I am trying to run this code : exec myStoredProcedure Cast('c5b48202-36af-4597-9780-5366d4188f55' AS uniqueidentifier), 744,
I'm trying to run the code from here MDN: Generators and Iterators function fib()
when I trying to run following code. var result = from c in db.brand
Basically I'm trying to run some code (Python 3.2) if a value on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.