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 4267616
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:55:26+00:00 2026-05-21T06:55:26+00:00

running my program with gdb I get this: fem.o: malloc.c:3096: sYSMALLOc: Assertion `(old_top ==

  • 0

running my program with gdb I get this:

fem.o: malloc.c:3096: sYSMALLOc:
Assertion `(old_top == (((mbinptr)
(((char *) &((av)->bins[((1) – 1) *
2])) – __builtin_offsetof (struct
malloc_chunk, fd)))) && old_size == 0)
|| ((unsigned long) (old_size) >=
(unsigned long)((((__builtin_offsetof
(struct malloc_chunk,
fd_nextsize))+((2 * (sizeof(size_t)))
– 1)) & ~((2 * (sizeof(size_t))) – 1))) && ((old_top)->size & 0x1) &&
((unsigned long)old_end & pagemask) ==
0)’ failed.

Program received signal SIGABRT,
Aborted. 0xb7fe1424 in
__kernel_vsyscall ()

I found that this error arises after this code:

problem->y0 = (double *)calloc(n_tot, sizeof(double));

problem is a structure which has double *y0 as member.

Previously in the function, I do this

problem = (fem_problem *)calloc(1, sizeof(fem_problem));

and I don’t get any error neither problem == NULL.

some suggestion?

ADD:

I already checked the content of n_tot, it has the right number

  • 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-21T06:55:27+00:00Added an answer on May 21, 2026 at 6:55 am

    There could be any number of problems, for example:

    • The value of n_tot could be garbage.

    • You have written outside of an allocated block, and in doing so you have destroyed data structures used to maintain the heap.

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

Sidebar

Related Questions

I'm running my C++ program in gdb. I'm not real experienced with gdb, but
Why is it that when running code from gdb, I get the same addresses
I am looking for a method to monitor a running program that I have
I am running a program and want to see what its return code is
I have a .NET CF program (running on a Smartphone) and I have written
I now have a running Java program which only lacks of the final step,that
I have a long-running multithreaded program, and I'd like to occasionally like to call
I'm working on a project where a program running on the mobile phone needs
I've got a PHP command line program running. And I want to connect to
I'm working on a Java 2D rendering program (running on 1.6.0_11), which uses external

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.