Comments (5)
Is there a callstack??
from azure-iot-sdk-c.
[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.
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.
Can you verify the main branch?
from azure-iot-sdk-c.
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)
- IoTHubDeviceClient_UploadMultipleBlocksToBlob_Async can miss some errors HOT 14
- Async responses for Direct Methods HOT 11
- Azure SDK unreliably connecting to IoT Hub. Error reason: IOTHUB_CLIENT_CONNECTION_NO_NETWORK HOT 6
- Is it possible to connect a real robot (as a device client) to an IoT hub? HOT 3
- The version of the Provisioning API is not up to date HOT 2
- Does MQTT_Websockets support SAS authentication? HOT 2
- Convenience function DM callback
- LogError with null as a string (%s) HOT 13
- unit tests rely on unspecified order-of-evaluation bahavior HOT 2
- Segmentation fault during device to cloud message HOT 9
- LTS_03_2024 release/tag not part of lts_03_2024 branch HOT 2
- Provisioning with X509 doesn't work on windows HOT 1
- It's not possible to create a client device handle using Transport or Auth HOT 2
- A way to query IoT Hub from device and get response? HOT 5
- IoTHubDeviceClient_CreateFromDeviceAuth() using symmetric key attestation issue HOT 2
- Required ENV variables for C Iot Edge Module HOT 2
- SAS request error for blob upload cannot be handled HOT 3
- Error while processing: __float128 is not supported on this target HOT 1
- Clarification of versioning procedures HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-iot-sdk-c.