curl-users
Re: curl_global_init chrashes when used with dmalloc
Date: Mon, 9 Dec 2002 07:07:21 +0100
I just did strace on it, and I am not getting any wiser from it (direct translation from swedish) :)
my code looks something like this:
----------- snip -------------------------
...
printf("init\n");
curl_global_init(...
------------------------------------------
The last thing I see in stack trace is my printf, and this is the piece of code that have been working well for 2 years now.
After reading a bit more about dmalloc, my amateur guess is that dmalloc library doesn't like my lockon=10 option (it is mentioned in dmalloc-docs that bad value for this option may produce coredumps, and good value is obtained by trial-and-error). I guess it has issues with threading support :P
So I'll just leave this mailing list alone, and start posting on dmalloc-lists.
Greets, Admir Efendic
On Sun, 8 Dec 2002 13:17:23 +0100 (MET)
Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Sun, 8 Dec 2002, admir efendic wrote:
>
> > I have compiled curl-7.10.2, and added "--with-dmalloc" in configure options.
> > I have dmalloc-4.8.2-r1 installed on gentoo-1.4_rc1, gcc-3.2
> >
> > DMALLOC_OPTIONS='debug=0x4e40503,inter=100,lockon=10,log=dmalloc.log'
> > (debug = low)
> >
> > I have linked my program with -ldmalocth as last library, and i have
> > included dmalloc.h as last header in my files.
> >
> > now I know I might as well post this to dmalloc mailing list, but I
> > wondered if anyone had any ideas here as well...
>
> What does a stack trace of the crash show? If you check out the
> curl_global_init function, you'll see that it does very little. As you're
> using Linux, all it does is initializing OpenSSL if you built it with SSL
> enabled.
>
> I have very little experience with dmalloc.
>
> --
> Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-09