public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/10952] New: Single Stepping into functions is very slow when not setting LD_BIND_NOW env variable
@ 2009-11-13 14:32 bschindler at inf dot ethz dot ch
  2009-11-13 15:05 ` [Bug gdb/10952] " bschindler at inf dot ethz dot ch
  0 siblings, 1 reply; 2+ messages in thread
From: bschindler at inf dot ethz dot ch @ 2009-11-13 14:32 UTC (permalink / raw)
  To: gdb-prs

(I'm not sure which values to fill out above (host, target and build triplet, so
I'll describe below)

I'm currently debugging paraview and very often, single stepping will cause gdb
to stall for multiple seconds when stepping into a function call. Googling a bit
revealed that setting LD_BIND_NOW can solve these problems. And here it did
solve them 

I'm on a modern 8-core x86-64 system with more than enough ram. Kernel and
user-space software is all in x86-64.
Distribution is gentoo (no excessive flags)

If there is anything I can do just let me know

-- 
           Summary: Single Stepping into functions is very slow when not
                    setting LD_BIND_NOW env variable
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: bschindler at inf dot ethz dot ch
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10952

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/10952] Single Stepping into functions is very slow when not setting LD_BIND_NOW env variable
  2009-11-13 14:32 [Bug gdb/10952] New: Single Stepping into functions is very slow when not setting LD_BIND_NOW env variable bschindler at inf dot ethz dot ch
@ 2009-11-13 15:05 ` bschindler at inf dot ethz dot ch
  0 siblings, 0 replies; 2+ messages in thread
From: bschindler at inf dot ethz dot ch @ 2009-11-13 15:05 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From bschindler at inf dot ethz dot ch  2009-11-13 15:05 -------
Thanks to some help from pholklore___ on #gdb on freenode, I was able to produce
some output. 

I enabled:
 set debug infrun 1

And the output is like this (the last 100 lines, there were way more than this,
but they were all the same)

infrun: stop_pc = 0x7ffff7deecb6                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecb9                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecbd                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecc4                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecc7                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecc9                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecce                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecd2                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecd3                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7deecd4                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7df45a2                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7df45a5                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7df45aa                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7df45af                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7df45b4                                               
                                                                               
                                         
infrun: stepped into dynsym resolve code                                       
                                                                               
                                         
infrun: resume (step=1, signal=0), trap_expected=0                             
                                                                               
                                         
infrun: prepare_to_wait                                                        
                                                                               
                                         
infrun: target_wait (-1, status) =                                             
                                                                               
                                         
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],                             
                                                                               
                                         
infrun:   status->kind = stopped, signal = SIGTRAP                             
                                                                               
                                         
infrun: infwait_normal_state                                                   
                                                                               
                                         
infrun: TARGET_WAITKIND_STOPPED                                                
                                                                               
                                         
infrun: stop_pc = 0x7ffff7df45b9
infrun: stepped into dynsym resolve code
infrun: resume (step=1, signal=0), trap_expected=0
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],
infrun:   status->kind = stopped, signal = SIGTRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x7ffff7df45be
infrun: stepped into dynsym resolve code
infrun: resume (step=1, signal=0), trap_expected=0
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],
infrun:   status->kind = stopped, signal = SIGTRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x7ffff7df45c3
infrun: stepped into dynsym resolve code
infrun: resume (step=1, signal=0), trap_expected=0
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],
infrun:   status->kind = stopped, signal = SIGTRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x7ffff7df45c7
infrun: stepped into dynsym resolve code
infrun: resume (step=1, signal=0), trap_expected=0
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],
infrun:   status->kind = stopped, signal = SIGTRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x7ffff7df45cb
infrun: stepped into dynsym resolve code
infrun: resume (step=1, signal=0), trap_expected=0
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],
infrun:   status->kind = stopped, signal = SIGTRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x7fffe7b8afd4
infrun: stepped into subroutine
infrun: inserting step-resume breakpoint at 0x7fffe7b8afe0
infrun: resume (step=0, signal=0), trap_expected=0
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun:   1703 [Thread 0x7ffff7e977c0 (LWP 1703)],
infrun:   status->kind = stopped, signal = SIGTRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x7fffe7b8afe0
infrun: BPSTAT_WHAT_STEP_RESUME
infrun: stepped into subroutine
infrun: stop_stepping

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10952

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-13 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-13 14:32 [Bug gdb/10952] New: Single Stepping into functions is very slow when not setting LD_BIND_NOW env variable bschindler at inf dot ethz dot ch
2009-11-13 15:05 ` [Bug gdb/10952] " bschindler at inf dot ethz dot ch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).