Bug 4552 - lket-b2a crashes (the lket-b2a code needs to be more robust)
Summary: lket-b2a crashes (the lket-b2a code needs to be more robust)
Status: RESOLVED WONTFIX
Alias: None
Product: systemtap
Classification: Unclassified
Component: lket (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 21:36 UTC by William Cohen
Modified: 2007-08-27 20:34 UTC (History)
0 users

See Also:
Host: i686
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Cohen 2007-05-25 21:36:46 UTC
During the testing the lket tests fails.

FAIL: systemtap.samples/lket(lket-b2a runtime)

Taking a closer look at what is going on the lket-b2a segfaults.

(gdb) run -f stpd_cpu*
Starting program: /home/wcohen/stap_testing_200705251949/install/bin/lket-b2a -f
stpd_cpu*

Program received signal SIGSEGV, Segmentation fault.
0x0804a8d6 in dump_data (header=
      {total_size = 16703, sys_size = 20026, microsecond = 7887296222732963401,
tid_pid = 7286936824557233506, aggr = 3467835980590838386}, infp=0x8f6e658)
    at /home/wcohen/stap_testing_200705251949/src/runtime/lket/b2a/lket_b2a.c:649
649                             fprintf(outfp, "EVT_NAME:%s ",
events_des[_HOOKID_REGSYSEVT][grpid][hookid]->description);
(gdb) print _HOOKID_REGSYSEVT 
$1 = 1
(gdb) print grpid 
$2 = 114
(gdb) print hookid 
$3 = 111
(gdb) print events_des  [_HOOKID_REGSYSEVT][grpid ][hookid ]
$4 = (event_desc *) 0x0


Looking through the lket_b2a.c code there doesn't seem to be any checking to
make sure that the events_des elements are set up correctly. Thus, null pointers
can be accessed in the manner above, causing the program to seg fault.
Comment 1 Frank Ch. Eigler 2007-08-27 20:34:48 UTC
LKET has been retired.