Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: curl_easy_cleanup( ) causes segmentation fault
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Ralph M via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 30 Sep 2024 21:20:02 -0400
On Thu, Sep 26, 2024 at 3:01 AM Daniel Stenberg via curl-library <
curl-library_at_lists.haxx.se> wrote:
> On Wed, 25 Sep 2024, Chris V via curl-library wrote:
>
> > I compile it with
> > gcc -o Beispiel beispiel.c -lcurl
> >
> > Starting it I am getting a segfault. As soon as I remove the
> > curl_easy_cleanup() call it runs fine.
> >
> > System is running on a Raspberry with Debian:
> > libcurl 7.64.0-4+deb10u9
> >
> > Any ideas what I did wrong?
>
> Nope. I can't spot any problem and that code runs fine on my tests - but I
> only tested with recent libcurl versions and not on a raspberry.
>
I have a Raspberry Pi running Debian Buster:
ralph_at_octopi:~ $ cat /etc/*ease
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
Installed libcurl4-openssl-dev:
Preparing to unpack
.../libcurl4-openssl-dev_7.64.0-4+deb10u9_armhf.deb ...
Unpacking libcurl4-openssl-dev:armhf (7.64.0-4+deb10u9) ...
Setting up libcurl4-openssl-dev:armhf (7.64.0-4+deb10u9) ...
The code compiles and runs just fine:
ralph_at_octopi:~ $ gcc -o Beispiel beispiel.c -lcurl
ralph_at_octopi:~ $ ./Beispiel
Fertig: 0
ralph_at_octopi:~ $ cat /tmp/wetter.test
Hier
The Pi was recently updated. I don't know what might be different from
yours.
Ralph Mitchell
Date: Mon, 30 Sep 2024 21:20:02 -0400
On Thu, Sep 26, 2024 at 3:01 AM Daniel Stenberg via curl-library <
curl-library_at_lists.haxx.se> wrote:
> On Wed, 25 Sep 2024, Chris V via curl-library wrote:
>
> > I compile it with
> > gcc -o Beispiel beispiel.c -lcurl
> >
> > Starting it I am getting a segfault. As soon as I remove the
> > curl_easy_cleanup() call it runs fine.
> >
> > System is running on a Raspberry with Debian:
> > libcurl 7.64.0-4+deb10u9
> >
> > Any ideas what I did wrong?
>
> Nope. I can't spot any problem and that code runs fine on my tests - but I
> only tested with recent libcurl versions and not on a raspberry.
>
I have a Raspberry Pi running Debian Buster:
ralph_at_octopi:~ $ cat /etc/*ease
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
Installed libcurl4-openssl-dev:
Preparing to unpack
.../libcurl4-openssl-dev_7.64.0-4+deb10u9_armhf.deb ...
Unpacking libcurl4-openssl-dev:armhf (7.64.0-4+deb10u9) ...
Setting up libcurl4-openssl-dev:armhf (7.64.0-4+deb10u9) ...
The code compiles and runs just fine:
ralph_at_octopi:~ $ gcc -o Beispiel beispiel.c -lcurl
ralph_at_octopi:~ $ ./Beispiel
Fertig: 0
ralph_at_octopi:~ $ cat /tmp/wetter.test
Hier
The Pi was recently updated. I don't know what might be different from
yours.
Ralph Mitchell
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2024-10-01