<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://sourceware.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="4.4+"
          urlbase="http://sourceware.org/bugzilla/"
          
          maintainer="overseers@sourceware.org"
>

    <bug>
          <bug_id>1836</bug_id>
          
          <creation_ts>2005-11-10 03:30:00 +0000</creation_ts>
          <short_desc>function(&quot;*&quot;) probe causes crash</short_desc>
          <delta_ts>2006-11-20 21:47:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>systemtap</product>
          <component>kprobes</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>2725</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="James Dickens">jamesd.wi</reporter>
          <assigned_to name="Jim Keniston">jkenisto</assigned_to>
          <cc>ldimaggi</cc>
          <cf_gcchost></cf_gcchost>
          <cf_gcctarget></cf_gcctarget>
          <cf_gccbuild></cf_gccbuild>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6717</commentid>
    <comment_count>0</comment_count>
    <who name="James Dickens">jamesd.wi</who>
    <bug_when>2005-11-10 03:30:33 +0000</bug_when>
    <thetext>global calls

probe kernel.function(&quot;*&quot;)
        {
                calls++;
        }


this should genereate thousands of probes... yet this is the output of stap -v 

Pass 2: analyzed user script.  1 probe(s), 0 function(s), 1 global(s).
Running grep &quot; [tT] &quot; /proc/kallsyms | sort -k 1,8 -s -o
/tmp/stapFOptqu/symbols.sorted
Pass 3: translated to C into &quot;/tmp/stapFOptqu/stap_2526.c&quot;
Running make -C &quot;/lib/modules/2.6.13-1.1532_FC4/build&quot; M=&quot;/tmp/stapFOptqu&quot; modules
make: Entering directory `/usr/src/kernels/2.6.13-1.1532_FC4-i686&apos;
  CC [M]  /tmp/stapFOptqu/stap_2526.o
  Building modules, stage 2.
  MODPOST
  CC      /tmp/stapFOptqu/stap_2526.mod.o
  LD [M]  /tmp/stapFOptqu/stap_2526.ko
make: Leaving directory `/usr/src/kernels/2.6.13-1.1532_FC4-i686&apos;
Pass 4: compiled into &quot;stap_2526.ko&quot;
Running sudo /usr/local/libexec/systemtap/stpd -r /tmp/stapFOptqu/stap_2526.ko

of course it also oopses the box. 

 uname -av
Linux localhost.localdomain 2.6.13-1.1532_FC4 #1 Thu Oct 20 01:30:08 EDT 2005
i686 athlon i386 GNU/Linux

[jamesd@localhost ~]$ stap -V
SystemTap translator/driver (version 0.4.2 built 2005-10-31)
Copyright (C) 2005 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
[jamesd@localhost ~]$

please resply for any other details you need.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6718</commentid>
    <comment_count>1</comment_count>
    <who name="Frank Ch. Eigler">fche</who>
    <bug_when>2005-11-10 03:35:18 +0000</bug_when>
    <thetext>The wildcard probe pattern is actually expanded to a single probe with thousands
of locations.  The verbose message line does not include that last number.  A
couple of months ago, this expansion used to work differently, so that&apos;s
probably what misled you.

The oops is a separate and unfortunate problem.  A screenshot or somesuch would
help.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6720</commentid>
    <comment_count>2</comment_count>
    <who name="James Dickens">jamesd.wi</who>
    <bug_when>2005-11-10 03:43:49 +0000</bug_when>
    <thetext>Subject: Re:  translator doesn&apos;t generate correct code for this.

i was mistaken it doesn&apos;t oopse the system but does trigger a reboot
of the box.

On 10 Nov 2005 03:35:18 -0000, fche at redhat dot com
&lt;sourceware-bugzilla@sourceware.org&gt; wrote:
&gt;
&gt; ------- Additional Comments From fche at redhat dot com  2005-11-10 03:35 -------
&gt; The wildcard probe pattern is actually expanded to a single probe with thousands
&gt; of locations.  The verbose message line does not include that last number.  A
&gt; couple of months ago, this expansion used to work differently, so that&apos;s
&gt; probably what misled you.
&gt;
&gt; The oops is a separate and unfortunate problem.  A screenshot or somesuch would
&gt; help.
&gt;
&gt;
&gt; --
&gt;            What    |Removed                     |Added
&gt; ----------------------------------------------------------------------------
&gt;             Summary|translator doesn&apos;t generate |translator doesn&apos;t generate
&gt;                    |correct code for this.      |correct code for this.
&gt;
&gt;
&gt; http://sourceware.org/bugzilla/show_bug.cgi?id=1836
&gt;
&gt; ------- You are receiving this mail because: -------
&gt; You reported the bug, or are watching the reporter.
&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6722</commentid>
    <comment_count>3</comment_count>
    <who name="Frank Ch. Eigler">fche</who>
    <bug_when>2005-11-10 04:14:45 +0000</bug_when>
    <thetext>I guess supporting function name wildcards made these cartoon probes too easy. 
We need to analyze further to see whether translator probe point blacklisting
(bug #1235) is sufficient, or if there is another problem.

Reassigning to kprobes to request that they give the can a first kick.  The list
of functions matched may be inspected from the &apos;stap -p3&apos; source code or the
&apos;stap -p2&apos; list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6728</commentid>
    <comment_count>4</comment_count>
    <who name="Prasanna S Panchamukhi">prasanna</who>
    <bug_when>2005-11-10 13:33:00 +0000</bug_when>
    <thetext>I see a hang/reboot just after inserting probes on do_fork on 2.6.13 kernel.
[root@wks126728wss ~]# stap -V
SystemTap translator/driver (version 0.4.2 built 2005-11-09)
Copyright (C) 2005 Red Hat, Inc. and others
This is free software; see the source for copying conditions.

[root@wks126728wss ~]# cat /home/prasanna/examp/test3.stp

probe kernel.function(&quot;do_fork&quot;) { log(&quot;e&quot;) }

[root@wks126728wss examp]# stap -v -g test3.stp
Created temporary directory &quot;/tmp/stapUAG0nh&quot;
Searched &apos;/usr/local/share/systemtap/tapset/2.6.13-1.1532_FC4/*.stp&apos;, match coun t 0
Searched &apos;/usr/local/share/systemtap/tapset/2.6.13/*.stp&apos;, match count 0
Searched &apos;/usr/local/share/systemtap/tapset/2.6/*.stp&apos;, match count 0
Searched &apos;/usr/local/share/systemtap/tapset/*.stp&apos;, match count 9
Pass 1: parsed user script and 9 library script(s).
parsed &apos;do_fork&apos; -&gt; func &apos;do_fork&apos;
pattern &apos;kernel&apos; matches module &apos;kernel&apos;
focused on module &apos;kernel&apos; = [c0100000-c05358d8, bias 0]
pattern &apos;do_fork&apos; matches function &apos;do_fork&apos;
selected function do_fork
querying prologue-end of function &apos;do_fork&apos;
pattern &apos;kernel&apos; matches module &apos;kernel&apos;
Pass 2: analyzed user script.  1 probe(s), 6 function(s), 0 global(s).
Running grep &quot; [tT] &quot; /proc/kallsyms | sort -k 1,8 -s -o /tmp/stapUAG0nh/symbols
.sorted
Pass 3: translated to C into &quot;/tmp/stapUAG0nh/stap_2286.c&quot;
Running make -C &quot;/lib/modules/2.6.13-1.1532_FC4/build&quot; M=&quot;/tmp/stapUAG0nh&quot; modul es
make: Entering directory `/usr/src/kernels/2.6.13-1.1532_FC4-i686&apos;
  CC [M]  /tmp/stapUAG0nh/stap_2286.o
  Building modules, stage 2.
  MODPOST
  CC      /tmp/stapUAG0nh/stap_2286.mod.o
  LD [M]  /tmp/stapUAG0nh/stap_2286.ko
make: Leaving directory `/usr/src/kernels/2.6.13-1.1532_FC4-i686&apos;
Pass 4: compiled into &quot;stap_2286.ko&quot;
Running sudo /usr/local/libexec/systemtap/stpd -r /tmp/stapUAG0nh/stap_2286.ko
e
e
the system hangs/reboots just after couple of messages. I see a double fault
message sometimes.

Please see bug #1776 comment #2 for details.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6765</commentid>
    <comment_count>5</comment_count>
    <who name="Prasanna S Panchamukhi">prasanna</who>
    <bug_when>2005-11-11 15:00:00 +0000</bug_when>
    <thetext>When a kernel module is loaded to insert probes on do_fork(), it does not cause
any hang/reboot of the system and it works fine.
But when a probes is inserted on do_fork() through systemtap, it causes hang/reboot.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10359</commentid>
    <comment_count>6</comment_count>
    <who name="Frank Ch. Eigler">fche</who>
    <bug_when>2006-06-01 20:46:30 +0000</bug_when>
    <thetext>*** Bug 2725 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13344</commentid>
    <comment_count>7</comment_count>
    <who name="Jim Keniston">jkenisto</who>
    <bug_when>2006-11-16 00:53:27 +0000</bug_when>
    <thetext>It appears that the specific failure in question is not associated with kprobes.
 However, I&apos;m leaving this one open because:
1) At least one other bug is marked as a dup of this.
2) It&apos;s worthwhile to probe kernel.function(&quot;*&quot;) from time to time and chase
down any new failures that crop up -- as they inevitably will, since the
translator blacklist must lag kernel releases.
3) I&apos;m not sure what failures we&apos;d currently see on each architecture given
current kernel.org bits.

However, when such a failure is seen, it&apos;s best to isolate and report the
specific failure -- and not just mark it as a dup of this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13420</commentid>
    <comment_count>8</comment_count>
    <who name="Frank Ch. Eigler">fche</who>
    <bug_when>2006-11-20 21:47:16 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 2725 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>