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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:30:43+00:00 2026-06-14T19:30:43+00:00

What is wrong if we push the strings into vector like this: globalstructures->schema.columnnames.push_back("id"); When

  • 0

What is wrong if we push the strings into vector like this:

globalstructures->schema.columnnames.push_back("id");

When i am applied valgrind on my code it is showing

possibly lost of 27 bytes in 1 blocks are possibly lost in loss record 7 of 19.

like that in so many places it is showing possibly lost…..because of this the allocations and frees are not matching….which is resulting in some strange error like

malloc.c:No such file or directory

Although I am using calloc for allocation of memory everywhere in my code i am getting warnings like

Syscall param write(buf) points to uninitialised byte(s)

The code causing that error is

  datapage *dataPage=(datapage *)calloc(1,PAGE_SIZE);               
  writePage(dataPage,dataPageNumber); 
             
                     
  int writePage(void *buffer,long pagenumber)                 
  {
    int fd;
    fd=open(path,O_WRONLY, 0644);

     if (fd < 0)
        return -1;

    lseek(fd,pagenumber*PAGE_SIZE,SEEK_SET);

     if(write(fd,buffer,PAGE_SIZE)==-1)
    return false;


      close(fd);
      return true;
  }

Exact error which i am getting when i am running through gdb is …

Breakpoint 1, getInfoFromSysColumns (tid=3, numColumns=@0x7fffffffdf24: 1, typesVector=…, constraintsVector=…, lengthsVector=…,
columnNamesVector=…, offsetsVector=…) at dbheader.cpp:1080

Program received signal SIGSEGV, Segmentation fault.

_int_malloc (av=0x7ffff78bd720, bytes=8) at malloc.c:3498
3498 malloc.c: No such file or directory.

When i run the same through valgrind it’s working fine…

  • 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-14T19:30:44+00:00Added an answer on June 14, 2026 at 7:30 pm

    Well,

    malloc.c:No such file or directory
    

    can occur while you are debugging using gdb and you use command “s” instead of “n” near malloc which essentially means you are trying to step into malloc, the source of which may not be not available on your Linux machine.

    That is perhaps the same reason why it is working fine with valgrind.

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

Sidebar

Related Questions

Whats wrong with this code? -(void) drawRect:(CGRect) rect { CGContextRef c = UIGraphicsGetCurrentContext(); if
This seems like an odd problem. Maybe it's also the wrong approach. But I
I typedef a vector with two elements. Then I push_back into it an other
i have following code for copying content of vector into file #include<iterator> #include<algorithm> #include<fstream>
I am using this function to insert into the database. I'd like to validate
What wrong with this validation: Jquery: $(document).ready(function(){ $(#addcmd).attr(disabled,disabled); $(#cmdstxt).keypress( function(event){ var txt=$(#cmdstxt); if( txt.val().length
Whats wrong with this picture? Model: validates_acceptance_of :terms_of_service, :on => :create, :accept => true,
whats wrong with this? anybody help me please.. if(stripos($nerde, $hf) !== false) && (stripos($nerde,
what wrong with this Query ??? i need this Query. UPDATE user_preferences SET user_preferences_value
I am attempting to push updates into a process via a named pipe, but

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.