Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added authentication to ommongodb #17

Merged
merged 1 commit into from
Jan 26, 2014
Merged

added authentication to ommongodb #17

merged 1 commit into from
Jan 26, 2014

Conversation

jtv4k
Copy link
Contributor

@jtv4k jtv4k commented Jan 24, 2014

See #14

Sorry for the duplicate issue. I don't want to spend time figuring out how to associate this request with an existing issue!

Code comes without testing or compiling, but it looks alright! If it doesn't work, let me know and I'll spend the time to set up a development environment.

@jtv4k jtv4k mentioned this pull request Jan 24, 2014
rgerhards added a commit that referenced this pull request Jan 26, 2014
added authentication to ommongodb
@rgerhards rgerhards merged commit 1b4cbb7 into rsyslog:master Jan 26, 2014
rgerhards added a commit that referenced this pull request Jan 27, 2014
regression from pull request #17 from jtv4k/master
onceking added a commit to onceking/rsyslog that referenced this pull request May 3, 2016
curl use SIGALRM to timeout handling. but it doesn't work in linux
threads and the signal is delivered to an *arbitary* threads which
almost guarantees crashing if a wrong thread picks up the signal.

```
(gdb) bt
 #0  0x00007f8b8859aa6d in addbyter () from libcurl.so.4
 rsyslog#1  0x00007f8b8859b993 in dprintf_formatf () from libcurl.so.4
 rsyslog#2  0x00007f8b8859bfd5 in curl_mvsnprintf () from libcurl.so.4
 rsyslog#3  0x00007f8b8859ac42 in curl_msnprintf () from libcurl.so.4
 rsyslog#4  0x00007f8b8858bbf6 in Curl_failf () from libcurl.so.4
 rsyslog#5  0x00007f8b885826ef in Curl_resolv_timeout () from libcurl.so.4
 rsyslog#6  0x00007f8b88cf2dfd in clock_gettime () from /lib64/libc.so.6
 rsyslog#7  0x00007f8b6c01b1e0 in ?? ()
 rsyslog#8  0x00007f8b887d58e8 in Curl_crealloc () from libcurl.so.4
 rsyslog#9  0x00007f8b6c01a5a0 in ?? ()
 rsyslog#10 0x00007f8b887d58e8 in Curl_crealloc () from libcurl.so.4
 rsyslog#11 0x00007f8b6c002860 in ?? ()
 rsyslog#12 0x000000000000000a in ?? ()
 rsyslog#13 0x00007f8b6c01b5b0 in ?? ()
 rsyslog#14 0x00007f8b6c0028c0 in ?? ()
 rsyslog#15 0x00007f8b6c00c630 in ?? ()
 rsyslog#16 0x000000000000000a in ?? ()
 rsyslog#17 0x00007f8b6c0028c0 in ?? ()
 rsyslog#18 0x0000000000000018 in ?? ()
 rsyslog#19 0x00007f8b885a5432 in Curl_llist_remove () from libcurl.so.4
 rsyslog#20 0x0000000004000000 in ?? ()
 rsyslog#21 <signal handler called>
 rsyslog#22 0x0000006e0000005b in ?? ()
Cannot access memory at address 0x0
```

References
* https://curl.haxx.se/libcurl/c/threadsafe.html
* https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html
* https://www.redhat.com/archives/libvir-list/2012-October/msg00008.html
@lock
Copy link

lock bot commented Dec 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants