[CXX-570] Auth() function cause core dump in shared library - fcgi environment Created: 27/Mar/15 Updated: 11/Sep/19 Resolved: 31/Mar/15 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | API |
| Affects Version/s: | legacy-1.0.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Fanky | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
RHEL6 x64 |
||
| Attachments: |
|
| Description |
|
Here's my case: |
| Comments |
| Comment by Fanky [ 30/Mar/15 ] |
|
Hi Andrew, I've moved the GlobalInstance to main() section and it is ok now. Thanks for your support! |
| Comment by Andrew Morrow (Inactive) [ 29/Mar/15 ] |
|
Hi - Thank you for the bug report. The example you provided cannot be compiled as-is. If possible, could you provide a complete, compilable example program that demonstrates the crash? If that is not possible, then providing a stack trace would also be helpful. You should be able to obtain a stack trace from the corefile by loading your application and the corefile in GDB and invoking 'thread apply all bt'. However, based on the code you provided, I have a few immediate observations:
My suggestion is that you try moving the GlobalInstance variable to some common startup section of your FastCGI program. Thanks, |