[CDRIVER-715] Print backtrace from test-libmongoc Created: 19/Jun/15  Updated: 03/May/17  Resolved: 31/Oct/16

Status: Closed
Project: C Driver
Component/s: tests
Affects Version/s: None
Fix Version/s: TBD

Type: New Feature Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Hannes Magnusson
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

test-libmongoc aborts or (rarely) segfaults when a test fails. Printing a backtrace would be nice, especially in Evergreen.

On Linux and perhaps Mac, these instructions provide a starting place:

http://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes

http://www.gnu.org/software/libc/manual/html_node/Backtraces.html

http://oroboro.com/stack-trace-on-crash/

On Windows apparently it's harder, leave that for later and see how the server implements backtraces.



 Comments   
Comment by Hannes Magnusson [ 31/Oct/16 ]

This isn't really needed anymore. We do report the filename&line on test failures, and its easy enough to reproduce based on the results we have.

Generated at Wed Feb 07 21:10:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.