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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:28:12+00:00 2026-06-02T03:28:12+00:00

So when glibc crashes, it has a *glibc detected * crash message. It then

  • 0

So when glibc crashes, it has a *glibc detected * crash message. It then prints a bunch of backtraces, like

*** glibc detected *** ./odin: free(): invalid pointer: 0xbfba4444 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b161)[0xb75f9161]
/lib/tls/i686/cmov/libc.so.6(+0x6c9b8)[0xb75fa9b8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xb75fda9d]
/usr/lib/libstdc++.so.6(_ZdlPv+0x1f)[0xb77da2ef]

All well and good, but other cases when things crash, I’ve been doing backtrace() and then using a system call to addr2line and printing the actual points in the function instead. But when it’s a glibc crash, it quits bypassing any signal handlers I called.

Is there a way to hook against these glibc crashes?

  • 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-02T03:28:14+00:00Added an answer on June 2, 2026 at 3:28 am

    That is an option for memory functions, you can toggle it using mallopt. By the sounds of it you want to set M_CHECK_ACTION to zero to allow execution to continue, unless you want the program to exit straight away in which case see if 2 allows you to do what you want.

    This small program produces the normal glibc error: test1.c
    This one ignores the error and carries on: test2.c
    This one aborts on the error: test3.c

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

Sidebar

Related Questions

I know there are scores of questions with * glibc detected * free(): invalid
I'm getting a strange error: *** glibc detected *** findbasis: free(): invalid next size
The following program crashes with a bad glibc double free error: #include <iostream> #include
Can glibc be compiled into one object file which can then be linked to
A call to clear on a QByteArray generates the following exception: * glibc detected
* glibc detected * malloc(): memory corruption (fast): *** This is the error I
I'm getting *** glibc detected *** (/my/program/...): malloc(): memory corruption: 0xf28000fa *** I've run
GLibC has a method semtimedop which allows you to perform an operation ( a
glibc's printf("% .0d",0) prints a space, and printf("%+.0d",0) prints a plus sign, and the
Anyone has experience measuring glibc regexp functions? Are there any generic tests I need

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.