Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (lldb) r
- Process 17536 launched: './queueTest1' (x86_64)
- Testing the ascending queue
- Inserting: 42: first insert
- 17: first 17 42
- {
- next: 42,
- prev: NULL
- }
- insert success
- -12: first -12 4296030752
- {
- next: 4296030752,
- prev: NULL
- }
- insert success
- 9982: first 9982 4296030768
- {
- next: 4296030768,
- prev: NULL
- }
- insert success
- 476: first 476 4296030784
- {
- next: 4296030784,
- prev: NULL
- }
- insert success
- 2912: first 2912 4296030800
- {
- next: 4296030800,
- prev: NULL
- }
- insert success
- -22: first -22 4296030816
- {
- next: 4296030816,
- prev: NULL
- }
- insert success
- 3291213: end
- {
- next: NULL,
- prev: 42
- }
- insert success
- 7782: first 7782 4296030832
- {
- next: 4296030832,
- prev: NULL
- }
- insert success
- Process 17536 stopped
- * 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)
- frame #0: 0x0000000100000d2a queueTest1`que_remove(queue=0x00000001001039b0) + 154 at queueADT.c:139
- 136 queue->back = NULL;
- 137 free(endNode);
- 138 } else {
- -> 139 // otherwise move back to the previous node
- 140 queue->back = queue->back->previous;
- 141
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement