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

  • Home
  • SEARCH
  • 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 3358824
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:47:54+00:00 2026-05-18T02:47:54+00:00

I am only having this problem when running my program on a Mac; linux

  • 0

I am only having this problem when running my program on a Mac; linux 64 and 32 bit are fine but on mac I get a bunch of:

*** malloc[437]: error for object 0xbfffe970:
Non-aligned pointer being freed (2) 

towards the end of execution of my program where I am freeing a bunch of pointers in a data structure. Code to long to be posted but does anyone have any idea why it works fine without error on linux but not mac?

  • 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-05-18T02:47:55+00:00Added an answer on May 18, 2026 at 2:47 am

    Probably just a different malloc implementation. Presumably the Mac malloc aligns to bigger boundaries and so it’s spotting the pointer you’re passing to free can’t be correct since it has the wrong alignment

    HOWEVER, it is saying that you’re passing to free() a pointer that didn’t come from malloc(). This is certainly a sign of a bug, and it’s probably happening on all your platforms.

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

Sidebar

Related Questions

Originally, I was having some issues getting this code to function, but after a
Scenario: a program running in a byte code virtual machine like Java or Python,
At work one of our target platforms is a resource constrained mini-server running Linux
I'm facing a problem when I need to distribute my java application, created using
This question is a follow up and continuation of this question about a Privilege
My program threw a NullPointerException the other day when it tried to use a
I'm a novice C# programmer and am having trouble getting music to play in
I just spend the good part of the afternoon trying to find out why
We are developing applications for use within AutoCAD. Basically we create a Class Library
I have developed a Java Swing application, which uses the SwingWorker class to perform

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.