Giter Site home page Giter Site logo

Comments (5)

ericwol-msft avatar ericwol-msft commented on June 18, 2024

Is there a callstack??

from azure-iot-sdk-c.

Nathan-Jordan avatar Nathan-Jordan commented on June 18, 2024

[New Thread 0xb6ffc2f0 (LWP 5687)]

Thread 3 "Test" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6ffc2f0 (LWP 5687)]
0xb67db48c in internal_getent (stream=0xb6300470, result=result@entry=0xb6ffb65c,
buffer=buffer@entry=0xb6ffb838 "gateway-prod-gw-northeur127.0.0.1 localhost Moxa\n",
buflen=buflen@entry=1024, errnop=errnop@entry=0xb6ffb74c, herrnop=herrnop@entry=0xb6ffb75c,
af=af@entry=0, flags=flags@entry=0) at nss_files/files-XXX.c:251
251 nss_files/files-XXX.c: No such file or directory.

(gdb) backtrace
#0 0xb67db48c in internal_getent (stream=0xb6300470, result=result@entry=0xb6ffb65c, buffer=buffer@entry=0xb6ffb838 "gateway-prod-gw-northeur127.0.0.1 localhost Moxa\n",
buflen=buflen@entry=1024, errnop=errnop@entry=0xb6ffb74c, herrnop=herrnop@entry=0xb6ffb75c, af=af@entry=0, flags=flags@entry=0) at nss_files/files-XXX.c:251
#1 0xb67dbeac in _nss_files_gethostbyname4_r (name=0x427088 "###", pat=0xb6ffb748,
buffer=0xb6ffb838 "gateway-prod-gw-northeur127.0.0.1 localhost Moxa\n", buflen=1024, errnop=0xb6ffb74c, herrnop=0xb6ffb75c, ttlp=0x0) at nss_files/files-hosts.c:392
#2 0x002b94a0 in gaih_inet.constprop ()
#3 0x002ba04a in getaddrinfo ()
#4 0x00079c16 in Curl_getaddrinfo_ex ()
#5 0x00071a04 in getaddrinfo_thread ()
#6 0x0007a5cc in curl_thread_create_thunk ()
#7 0x0028d96a in start_thread (arg=0x0) at pthread_create.c:458
#8 0x002bc022 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

May not be relavant but I was trying valgrind and it said this.
==3842== Massif, a heap profiler
==3842== Copyright (C) 2003-2015, and GNU GPL'd, by Nicholas Nethercote
==3842== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==3842== Command: ./Test
==3842==

valgrind: m_transtab.c:2459 (vgPlain_init_tt_tc): Assertion 'sizeof(TTEntryC) <= 88' failed.
Segmentation fault

from azure-iot-sdk-c.

ASeidelt avatar ASeidelt commented on June 18, 2024

This might be related to #2554 ?

AFAIK this was fixed in the Repo, but there is no updated release yet

from azure-iot-sdk-c.

ericwol-msft avatar ericwol-msft commented on June 18, 2024

Can you verify the main branch?

from azure-iot-sdk-c.

Nathan-Jordan avatar Nathan-Jordan commented on June 18, 2024

Seemed to have fixed it, I was statically linking the libs. Dynamically linking fixed the issue

Found various mentions of this in similar posts:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1613067
https://sourceforge.net/p/iperf2/tickets/83/
https://sourceware.org/bugzilla/show_bug.cgi?id=10652
https://sourceware.org/bugzilla/show_bug.cgi?id=19341

After this I still had a crash with:

  • SSL: couldn't create a context: error:140A90A1:lib(20):func(169):reason(161)
    and
    curl_easy_perform() failed: out of memory

Adding the below code fixed this:
#include <curl/curl.h>
curl_global_init(CURL_GLOBAL_SSL);

Ref:
https://stackoverflow.com/questions/166617/curle-out-of-memory-error-when-posting-via-https

from azure-iot-sdk-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.