public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug malloc/15991] New: Error after calling proc by pointer: `malloc.c:3096: sYSMALLOc'...
@ 2013-10-01 21:57 a.i.prutkov at gmail dot com
2013-10-13 12:24 ` [Bug malloc/15991] " neleai at seznam dot cz
2014-06-13 12:45 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: a.i.prutkov at gmail dot com @ 2013-10-01 21:57 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15991
Bug ID: 15991
Summary: Error after calling proc by pointer: `malloc.c:3096:
sYSMALLOc'...
Product: glibc
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: malloc
Assignee: unassigned at sourceware dot org
Reporter: a.i.prutkov at gmail dot com
Dears sirs.
I have a problem when I am trying to run my programm written on C++ (platform
is Core i5-2.41 GNU/Linux x86_64).
The programm has many pointers on procedures (about 220), extracted by dlsym
from dynamical libraries (such as lissl, as libcrypto, as limcrypt). I need it
to protect the programm from Reverse Engineering (LD_PRELOAD etc).
The programm is multithread (Posix Threads), and it has callbacks with local
defined objects of different classes (NOT DYNAMICALLY for correct free memory
(by their destructors) used by objects in threads) similar:
[CODE=CPP]
void* my1_cb(void *arg){
Crypt::Rsa rsa; // Rsa is big class for job with openssl rsa keys/CA
Internet::SSLTcpClent client; // SSLTcpClent is big class for connect to SSL
hosts
// etc ...
}
[/CODE]
In the runtime I get error:
[STDOUTPUT]
server: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *)
&((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd))))
&& old_size == 0) || ((unsigned long) (old_size) >= (unsigned
long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *
(sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size &
0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Abort termination
[/STDOUTPUT]
after calling procedure by pointer (from libz.so):
[CODE=CPP]
if (procs->deflateInit2_p(&stream,
Z_BEST_COMPRESSION,
Z_DEFLATED,
m,
8,
Z_DEFAULT_STRATEGY,
procs->zlibVersion_p(),
sizeof(z_stream)) != Z_OK) {
goto err;
}
[/CODE]
I will be glad any help/tips.
--
Have a nice day.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug malloc/15991] Error after calling proc by pointer: `malloc.c:3096: sYSMALLOc'...
2013-10-01 21:57 [Bug malloc/15991] New: Error after calling proc by pointer: `malloc.c:3096: sYSMALLOc' a.i.prutkov at gmail dot com
@ 2013-10-13 12:24 ` neleai at seznam dot cz
2014-06-13 12:45 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: neleai at seznam dot cz @ 2013-10-13 12:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15991
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |UNCONFIRMED
CC| |neleai at seznam dot cz
Ever confirmed|1 |0
--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
This is probably application issue, If you run that program in valgrind it will
probably find invalid write that caused this.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug malloc/15991] Error after calling proc by pointer: `malloc.c:3096: sYSMALLOc'...
2013-10-01 21:57 [Bug malloc/15991] New: Error after calling proc by pointer: `malloc.c:3096: sYSMALLOc' a.i.prutkov at gmail dot com
2013-10-13 12:24 ` [Bug malloc/15991] " neleai at seznam dot cz
@ 2014-06-13 12:45 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 12:45 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15991
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-13 12:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-01 21:57 [Bug malloc/15991] New: Error after calling proc by pointer: `malloc.c:3096: sYSMALLOc' a.i.prutkov at gmail dot com
2013-10-13 12:24 ` [Bug malloc/15991] " neleai at seznam dot cz
2014-06-13 12:45 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).