On Thu, Sep 26, 2024 at 3:01 AM Daniel Stenberg via curl-library <
curl-library@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@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@octopi:~ $ gcc -o Beispiel beispiel.c -lcurl
     ralph@octopi:~ $ ./Beispiel
     Fertig: 0
     ralph@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.html

Reply via email to