Computer Science 102 Quiz 9 Name ______________________ 1. The program being debugged segfaulted in a standard library call to fscanf() (gdb) where #0 0x0082767c in _IO_vfscanf_internal () from /lib/libc.so.6 #1 0x0082a258 in vfscanf () from /lib/libc.so.6 #2 0x0082edde in fscanf () from /lib/libc.so.6 #3 0x0804ba62 in parser_load_attr (in=0x902740, pct=0x804d900, numattrs=2, attrname=0xbff1804c "normal") at parser.c:41 #4 0x0804bb48 in parser (in=0x902740, pct=0x804d900, numattrs=2, attrmax=0) at parser.c:82 #5 0x08049d59 in plane_init (in=0x902740, model=0x8938b88, attrmax=0) at plane.c:113 #6 0x080490d9 in model_item_load (in=0x902740, model=0x8938b88, itemtype=0xbff180f0 "plane") at model.c:38 #7 0x08049060 in model_load (in=0x902740, model=0x8938b88) at model.c:60 #8 0x080491f9 in model_init (in=0x902740) at model.c:83 #9 0x080487c8 in main (argc=1, argv=0xbff18234) at main.c:20 a. What is the name of the ray tracer FUNCTION that called fscanf()? b. What is the name of the source code MODULE that contains the function? c. At what line number was the call to fscanf() made? d. What is the name of the FUNCTION that called plane_init() 2. When single stepping gdb, the command that is used to cause it to step "over" a call to a standard library function is: a. s(tep) b. n(ext) c. o(ver) d. r(un) 3. When single stepping gdb, the command that is used to cause it to step "into" a call to a user written function: a. s(tep) b. n(ext) c. o(ver) d. r(un) 4. To cause gdb to restart execution of the program from the beginning use the command: a. c(ontinue) b. re(start) c. o(ver) d. r(un)