The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled C++ Code
Posted by: just me | July 18, 2010 @ 8:31pm
C++ Code
[
Download
]
(gdb) bt #0 0x0804a52a in skiplist<int>::insert (this=0xbfe48914, value=11) at skiplist.h:91 #1 0x08048b9b in main () at app.cpp:13 (gdb) (gdb) p left->right $1 = (node<int> *) 0x0 (gdb) -111:**-F1 *gud-a.out* Bot L81 (Debugger:run [signal])----------------------------------------------------------------------------- if(!marked.empty()) { left=marked.top(); marked.pop(); // handle corner nodes if(left->right != NULL) { if (left->isInfNeg == false) { //! -inf if(left->right == NULL) break; => while(left->right->data < value) { left = marked.top(); marked.pop(); } } }
Syntax Highlighting
[
Open in new window
]
Author Comments
I checked for left->right for NULL twice and execution still encounters the line which segfaults
while(left->right->data < value) {
Rating
4.66 / 8
41 Votes
http://codebin.yi.org/745
page generated in 0.01 seconds