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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:28:00+00:00 2026-06-16T23:28:00+00:00

So I have run into a weird error a few times now and im

  • 0

So I have run into a weird error a few times now and im looking for some good directions as to identify the problem.

Basically what I am seeing is a seg-fault. The symptoms are as follows:

  1. It occurs only when the program is in release mode, not in debug.
  2. It appears as a segfault and GDB tells me that it is in _list_release/_free()/free() at the end of a function.

    Program received signal SIGSEGV, Segmentation fault.

    0xb0328af8 in _list_release () from /usr/qnx650/target/qnx6/x86/lib/libc.so.3

    (gdb) bt

    0 0xb0328af8 in _list_release () from /usr/qnx650/target/qnx6/x86/lib/libc.so.3

    1 0xb032a464 in __free () from /usr/qnx650/target/qnx6/x86/lib/libc.so.3

    2 0xb0329f7d in free () from /usr/qnx650/target/qnx6/x86/lib/libc.so.3

  3. I am not using any dynamic memory (except for what might appear in Eigen (or other libraries)

  4. I can print all local variables just before the end of the function, so its not a double free.

Last time this happened it was a memory fault which fits all of these problems. Annoyingly this time i cannot find the problem.

What i would like to do is the following:

  1. This would be extra useful: How can I force this error in Debug mode, then GDB would be way more helpful.
  2. What is the best way to track down what little bugger is causing the problem. NOTE: I cannot use valgrind, it does not work on the operating system i am using (QNX)

Any help would be great.

  • 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-16T23:28:01+00:00Added an answer on June 16, 2026 at 11:28 pm

    It appears as a segfault and GDB tells me that it is in _list_release/_free()/free()

    Generally, any crash in free() is a sign of heap corruption (a double free, a write to free’d memory, freeing unallocated (e.g. stack or global) memory, or an overflow of a heap buffer).

    I am not using any dynamic memory

    Yes, you are. The fact that you do so indirectly via other libraries is irrelevant.

    I can print all local variables just before the end of the function, so its not a double free.

    As many commenters already said, your conclusion doesn’t follow: you can access free’d memory just fine, and it may even still contain sensible values.

    How can I force this error in Debug mode, then GDB would be way more helpful.

    • You can build with ‘-O2 -g’ (a “release” mode but with debug info enabled).
    • GDB will likely not be more helpful — GDB is somewhat useless in debugging heap corruption.

    What is the best way to track down what little bugger

    You have a few choices:

    • Port your code to a platform where you can use Valgrind or AddressSanitizer
    • Use one of many debugging malloc implementations (dmalloc, mpatrol, etc.). QNX has one.
    • Read the code very carefully, making sure that you don’t write more data to possibly-malloc’d buffers than you are supposed to.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fairly new to using MSSQL and have run into a weird problem. Given
Hi I have run into a very weird problem. I have a basic chrome
Recently few days I run into a weird problem of php not able to
I have run into a weird problem. This code returns None instead of True,
I have run into a problem with Eclipse Indigo, attempting to start up my
I have run into a little problem. I am connecting to a webservice that
I have run into a problem trying to modify a form I myself have
I have run into a bit of a problem here: I had a problem-specific
I have run into a problem w/ my model for databinding in WPF. I
I've run into a weird error with a Qt program running on Windows. The

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.