Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (lldb) r
  2. Process 17536 launched: './queueTest1' (x86_64)
  3. Testing the ascending queue
  4. Inserting:  42: first insert
  5.  17: first 17 42
  6. {
  7.   next: 42,
  8.   prev: NULL
  9. }
  10.  
  11. insert success
  12.  -12: first -12 4296030752
  13. {
  14.   next: 4296030752,
  15.   prev: NULL
  16. }
  17.  
  18. insert success
  19.  9982: first 9982 4296030768
  20. {
  21.   next: 4296030768,
  22.   prev: NULL
  23. }
  24.  
  25. insert success
  26.  476: first 476 4296030784
  27. {
  28.   next: 4296030784,
  29.   prev: NULL
  30. }
  31.  
  32. insert success
  33.  2912: first 2912 4296030800
  34. {
  35.   next: 4296030800,
  36.   prev: NULL
  37. }
  38.  
  39. insert success
  40.  -22: first -22 4296030816
  41. {
  42.   next: 4296030816,
  43.   prev: NULL
  44. }
  45.  
  46. insert success
  47.  3291213: end
  48. {
  49.   next: NULL,
  50.   prev: 42
  51. }
  52.  
  53. insert success
  54.  7782: first 7782 4296030832
  55. {
  56.   next: 4296030832,
  57.   prev: NULL
  58. }
  59.  
  60. insert success
  61.  
  62. Process 17536 stopped
  63. * thread #1: tid = 0x7b663, 0x0000000100000d2a queueTest1`que_remove(queue=0x00000001001039b0) + 154 at queueADT.c:139, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1e6e)
  64.     frame #0: 0x0000000100000d2a queueTest1`que_remove(queue=0x00000001001039b0) + 154 at queueADT.c:139
  65.    136          queue->back = NULL;
  66.    137          free(endNode);
  67.    138      } else {
  68. -> 139          // otherwise move back to the previous node
  69.    140          queue->back = queue->back->previous;
  70.    141
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement