double-free Questions

2

I have a python application which uses postgres and works fine in a conda envirnment based on python 3.7.3. I am trying to update its conda environment to use a newer python version. I built the ne...
Monticule asked 7/12, 2023 at 10:28

8

Solved

Obj *op = new Obj; Obj *op2 = op; delete op; delete op2; // What happens here? What's the worst that can happen when you accidentally double delete? Does it matter? Is the compiler going to throw...

4

Solved

As the title suggests I am new to C and have a mid-term coming up shortly. I am revising from past papers currently and a recurring theme is the double free problem. I understand that it is the pro...
Corm asked 11/1, 2014 at 1:25

1

I'm trying to implement the Lazy Concurrent List-based Set in C++ by using shared_ptr. My reasoning is that unreachable nodes will be automatically freed by the last shared_ptr. As per my understan...

2

I have two outsourced shared libraries for linux platform (no source, no document). The libraries work fine when they are linked to program separately (g++ xx.cpp lib1.so, or g++ xx.cpp lib2.so). ...
Scotch asked 31/7, 2014 at 5:52

1

Solved

The following section of my code gives me this messege when executing * glibc detected ./a.out: double free or corruption (fasttop): 0x08e065d0 ** i have gone through the code many times but i can...
Flagstaff asked 16/11, 2013 at 14:21

2

I can't figure out why I get error for the code below. The instances of object A will be pushed into a vector (vectorA.push_back(A a)) continuously. So sometimes, vectorA needs to be reallocated; t...
Affinal asked 24/7, 2013 at 17:8

1

Solved

I have shared object A.so which statically links to libssl.a & another shared object B.so which also statically links libssl.a . A.so & B.so has symbols from libssl.a in GLOBAL scope. I c...
Grader asked 12/6, 2012 at 22:38

3

Solved

EDIT - added .h file I'm having difficulty trying to find the cause of a double free error. Steps taken to solve 1) Used the Zombies tool. Zombies reports that tid is being double freed 2) Set...
Simplehearted asked 19/11, 2011 at 3:41
1

© 2022 - 2024 — McMap. All rights reserved.