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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:52:42+00:00 2026-05-27T09:52:42+00:00

I am using c in linux, when i run main.c i get below error:

  • 0

I am using c in linux, when i run main.c i get below error:

* glibc detected /asde/pasc/source/cl/weasdashanges/webasdnges: malloc():
memory corruption: 0x08069098 *
*

the backtrace from gdb is as follows: its pointing to function dblogin which is strange because i am pretty sure that should not be the problem because i never made changes there.

if ((login = dblogin()) == FAIL)        return 0;

and this code was working fine before the changes.

 (gdb) backtrace
    #0  0x0012d422 in __kernel_vsyscall ()
    #1  0x002f7651 in raise () from /lib/tls/i686/cmov/libc.so.6
    #2  0x002faa82 in abort () from /lib/tls/i686/cmov/libc.so.6
    #3  0x0032e49d in ?? () from /lib/tls/i686/cmov/libc.so.6
    #4  0x00338591 in ?? () from /lib/tls/i686/cmov/libc.so.6
     #5  0x0033b395 in ?? () from /lib/tls/i686/cmov/libc.so.6
     #6  0x0033c70b in calloc () from /lib/tls/i686/cmov/libc.so.6
     #7  0x001f9cd6 in ?? () from /usr/lib/libsybdb.so.5
     #8  0x001edd1a in dblogin () from /usr/lib/libsybdb.so.5
     #9  0x0804de13 in ?? ()
    #10 0x0804e01b in ?? ()
     #11 0x0804bf9f in ?? ()
    #12 0x002e3bd6 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
    #13 0x0804a031 in ?? ()

Any ideas on how i can find out whats the specific problem? like a gdb command tells it to break on every write to that location

  • 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-27T09:52:43+00:00Added an answer on May 27, 2026 at 9:52 am

    Use valgrind to find out memory leaks in your program. Also use more your debugger.

    If you want to find out how is a particular location overwritten, you could use the watch command of gdb

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

Sidebar

Related Questions

I am using Eclipse GALILEO running on Linux Ubuntu with EPIC plugin to Run/Debug
Why does the program listed below run on mac osx and linux but not
I'm using J9 VM to run my application on a Linux machine (BusyBox). When
im using linux with gedit which has the wonderful habit of creating a temp
I'm using Linux Inotify to detect FS events on my program. How could I
I'm using Linux Ubuntu Intrepid Ibex and using as compiler the gcc , but
I am using Linux 2.6.26 kernel version and I am trying to change the
I'm using Linux Mint 11 64 bit. I needed some packages to install newest
I'm programming C using Linux gcc with -std=c89 switch. I have a variable storing
I am using linux mint, and consulting VendorIds from http://developer.android.com I don't know how

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.