break CreateColormap Breakpoint 2 at 0x100a9d40: file colormap.c, line 265. (gdb) cont Continuing. Breakpoint 2, CreateColormap (mid=4194305, pScreen=0x10327d30, pVisual=0x1035d8a8, ppcmap=0x7ff417dc, alloc=0, client=2) at colormap.c:265 265 class = pVisual->class; (gdb) bt #0 CreateColormap (mid=4194305, pScreen=0x10327d30, pVisual=0x1035d8a8, ppcmap=0x7ff417dc, alloc=0, client=2) at colormap.c:265 #1 0x100c0900 in ProcCreateColormap (client=0x105c6a18) at dispatch.c:2419 #2 0x100b8a34 in Dispatch () at dispatch.c:449 #3 0x100db818 in main (argc=2, argv=0x7ff41d04, envp=0x7ff41d10) at main.c:445 (gdb) s /build/buildd/gdb-6.3/gdb/infrun.c:2642: internal-error: insert_step_resume_breakpoint_at_sal: Assertion `step_resume_breakpoint == NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) n /build/buildd/gdb-6.3/gdb/infrun.c:2642: internal-error: insert_step_resume_breakpoint_at_sal: Assertion `step_resume_breakpoint == NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n (gdb) s SmartScheduleTimer (sig=14) at utils.c:1587 1587 int olderrno = errno; (gdb) bt #0 SmartScheduleTimer (sig=14) at utils.c:1587 #1 Cannot access memory at address 0x704 (gdb) n 1587 int olderrno = errno; (gdb) n 1589 SmartScheduleTime += SmartScheduleInterval; (gdb) n 1590 if (SmartScheduleIdle) (gdb) n 1594 errno = olderrno; (gdb) n 1595 } (gdb) n 500 1589 SmartScheduleTime += SmartScheduleInterval; (gdb) cont Continuing. Breakpoint 2, CreateColormap (mid=4194305, pScreen=0x10327d30, pVisual=0x1035d8a8, ppcmap=0x7ff417dc, alloc=0, client=2) at colormap.c:265 265 class = pVisual->class; (gdb) list 260 ColormapPtr pmap; 261 register EntryPtr pent; 262 int i; 263 register Pixel *ppix, **pptr; 264 265 class = pVisual->class; 266 if(!(class & DynamicClass) && (alloc != AllocNone) && (client != SERVER_ID)) 267 return (BadMatch); 268 269 size = pVisual->ColormapEntries; (gdb) s 266 if(!(class & DynamicClass) && (alloc != AllocNone) && (client != SERVER_ID)) (gdb) print class $1 = 4 (gdb) print pVisual $2 = 0x1035d8a8 (gdb) print pVisual->ColormapEntries $3 = 256 (gdb) s 269 size = pVisual->ColormapEntries; (gdb) s 270 sizebytes = (size * sizeof(Entry)) + (gdb) s 273 if ((class | DynamicClass) == DirectColor) (gdb) print sizebytes $4 = 7168 (gdb) s 274 sizebytes *= 3; (gdb) list 269 size = pVisual->ColormapEntries; 270 sizebytes = (size * sizeof(Entry)) + 271 (MAXCLIENTS * sizeof(Pixel *)) + 272 (MAXCLIENTS * sizeof(int)); 273 if ((class | DynamicClass) == DirectColor) 274 sizebytes *= 3; 275 sizebytes += sizeof(ColormapRec); 276 pmap = (ColormapPtr) xalloc(sizebytes); 277 if (!pmap) 278 return (BadAlloc); (gdb) s 275 sizebytes += sizeof(ColormapRec); (gdb) print sizebytes $5 = 21504 (gdb) s 276 pmap = (ColormapPtr) xalloc(sizebytes); (gdb) print sizebytes $6 = 21580 (gdb) s Xalloc (amount=21580) at utils.c:1361 1361 if ((long)amount <= 0) { (gdb) print pmap No symbol "pmap" in current context. (gdb) n 1365 amount = (amount + (sizeof(long) - 1)) & ~(sizeof(long) - 1); (gdb) n 1371 if ((ptr = (pointer)malloc(amount))) { (gdb) n 1372 return (unsigned long *)ptr; (gdb) n 1377 } (gdb) n CreateColormap (mid=4194305, pScreen=0x10327d30, pVisual=0x1035d8a8, ppcmap=0x7ff417dc, alloc=0, client=2) at colormap.c:277 277 if (!pmap) (gdb) print pmap $7 = 0x105c9170 (gdb) n 279 pmap->red = (EntryPtr)((char *)pmap + sizeof(ColormapRec)); (gdb) n 280 sizebytes = size * sizeof(Entry); (gdb) n 281 pmap->clientPixelsRed = (Pixel **)((char *)pmap->red + sizebytes); (gdb) n 282 pmap->numPixelsRed = (int *)((char *)pmap->clientPixelsRed + (gdb) n 284 pmap->mid = mid; (gdb) n 285 pmap->flags = 0; /* start out with all flags clear */ (gdb) n 286 if(mid == pScreen->defColormap) (gdb) n 288 pmap->pScreen = pScreen; (gdb) n 289 pmap->pVisual = pVisual; (gdb) n 290 pmap->class = class; (gdb) n 291 if ((class | DynamicClass) == DirectColor) (gdb) n 292 size = NUMRED(pVisual); (gdb) n 293 pmap->freeRed = size; (gdb) n 294 bzero ((char *) pmap->red, (int)sizebytes); (gdb) n 295 bzero((char *) pmap->numPixelsRed, MAXCLIENTS * sizeof(int)); (gdb) n /build/buildd/gdb-6.3/gdb/infrun.c:2642: internal-error: insert_step_resume_breakpoint_at_sal: Assertion `step_resume_breakpoint == NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) n /build/buildd/gdb-6.3/gdb/infrun.c:2642: internal-error: insert_step_resume_breakpoint_at_sal: Assertion `step_resume_breakpoint == NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n (gdb) n SmartScheduleTimer (sig=14) at utils.c:1587 1587 int olderrno = errno; (gdb) cont Continuing. Program received signal SIGSEGV, Segmentation fault. 0x0fe036d0 in mallopt () from /lib/libc.so.6 (gdb) bt #0 0x0fe036d0 in mallopt () from /lib/libc.so.6 #1 0x0fed1a1c in ?? () from /lib/libc.so.6 #2 0x0fed1a1c in ?? () from /lib/libc.so.6 Previous frame identical to this frame (corrupt stack?) (gdb) cont Continuing. Program received signal SIGABRT, Aborted. 0x0fdbac40 in kill () from /lib/libc.so.6 (gdb) cont Continuing. Program terminated with signal SIGABRT, Aborted. The program no longer exists. (gdb) q