Re: [DynInst_API:] dyninst 10 on ppcle and aarch


Date: Sun, 02 Dec 2018 22:24:57 -0500
From: Stan Cox <scox@xxxxxxxxxx>
Subject: Re: [DynInst_API:] dyninst 10 on ppcle and aarch

On 12/2/18 17:16, Benjamin Welton wrote:
Stan, can you apply the patch listed here and retest?

https://github.com/dyninst/dyninst/commit/ec4f8cdcb0ba33287dd12cd77f67cca5f1b9cd29

It did not seem to reach the loop in int_process::waitAndHandleEvents(bool block)
with that patch (Begin callbackMux debug message)

Here is the debug output with DYNINST_DEBUG_STACKWALK=1 DYNINST_DEBUG_PROCCONTROL=1 DYNINST_DEBUG_THREAD=1

(I know this back and forth is tedious)

Enabling DyninstAPI process control debug
Enabling DyninstAPI stack walking debug
[process.C:8550-U] - Setting thread mode to HandlerThreading
[process.C:8571-U] - New state uses handler threading, running handler thread
[handler.C:104-U] - Handler Bootstrap will handle event Bootstrap
[handler.C:104-U] - Handler Callback will handle event Bootstrap
[handler.C:104-U] - Handler Signal will handle event Signal
[handler.C:104-U] - Handler Callback will handle event Signal
[handler.C:104-U] - Handler Post Exit will handle event post-Exit
[handler.C:104-U] - Handler Callback will handle event post-Exit
[handler.C:104-U] - Handler Post Exit Cleanup will handle event post-Exit
[handler.C:104-U] - Handler Callback will handle event post-Exit
[handler.C:104-U] - Handler Post Exit Cleanup will handle event Crash
[handler.C:104-U] - Handler Callback will handle event Crash
[handler.C:104-U] - Handler Pre Exit will handle event pre-Exit
[handler.C:104-U] - Handler Callback will handle event pre-Exit
[handler.C:104-U] - Handler Thread Create will handle event ThreadCreate
[handler.C:104-U] - Handler Callback will handle event ThreadCreate
[handler.C:104-U] - Handler Thread Create will handle event UserThreadCreate
[handler.C:104-U] - Handler Callback will handle event UserThreadCreate
[handler.C:104-U] - Handler Thread Create will handle event LWPCreate
[handler.C:104-U] - Handler Callback will handle event LWPCreate
[handler.C:104-U] - Handler Thread Destroy will handle event pre-UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event pre-UserThreadDestroy
[handler.C:104-U] - Handler Thread Destroy will handle event post-UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event post-UserThreadDestroy
[handler.C:104-U] - Handler Thread Destroy will handle event UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event UserThreadDestroy
[handler.C:104-U] - Handler Thread Destroy will handle event pre-LWPDestroy
[handler.C:104-U] - Handler Callback will handle event pre-LWPDestroy
[handler.C:104-U] - Handler Thread Destroy will handle event post-LWPDestroy
[handler.C:104-U] - Handler Callback will handle event post-LWPDestroy
[handler.C:104-U] - Handler Thread Destroy will handle event LWPDestroy
[handler.C:104-U] - Handler Callback will handle event LWPDestroy
[handler.C:104-U] - Handler Thread Destroy will handle event pre-Unknown
[handler.C:104-U] - Handler Thread Destroy will handle event post-Unknown
[handler.C:104-U] - Handler Thread Destroy will handle event Unknown
[handler.C:104-U] - Handler Thread Cleanup will handle event pre-UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event pre-UserThreadDestroy
[handler.C:104-U] - Handler Thread Cleanup will handle event post-UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event post-UserThreadDestroy
[handler.C:104-U] - Handler Thread Cleanup will handle event UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event UserThreadDestroy
[handler.C:104-U] - Handler Thread Cleanup will handle event pre-LWPDestroy
[handler.C:104-U] - Handler Callback will handle event pre-LWPDestroy
[handler.C:104-U] - Handler Thread Cleanup will handle event post-LWPDestroy
[handler.C:104-U] - Handler Callback will handle event post-LWPDestroy
[handler.C:104-U] - Handler Thread Cleanup will handle event LWPDestroy
[handler.C:104-U] - Handler Callback will handle event LWPDestroy
[handler.C:104-U] - Handler Thread Cleanup will handle event pre-Unknown
[handler.C:104-U] - Handler Thread Cleanup will handle event post-Unknown
[handler.C:104-U] - Handler Thread Cleanup will handle event Unknown
[handler.C:104-U] - Handler Thread Stop will handle event Stop
[handler.C:104-U] - Handler Callback will handle event Stop
[handler.C:104-U] - Handler Single Step will handle event SingleStep
[handler.C:104-U] - Handler Callback will handle event SingleStep
[handler.C:104-U] - Handler Pre Syscall will handle event pre-PreSyscall
[handler.C:104-U] - Handler Callback will handle event pre-PreSyscall
[handler.C:104-U] - Handler Post Syscall will handle event post-PostSyscall
[handler.C:104-U] - Handler Callback will handle event post-PostSyscall
[handler.C:104-U] - Handler Crash will handle event Crash
[handler.C:104-U] - Handler Callback will handle event Crash
[handler.C:104-U] - Handler Breakpoint will handle event Breakpoint
[handler.C:104-U] - Handler Callback will handle event Breakpoint
[handler.C:104-U] - Handler BreakpointContinue will handle event Breakpoint
[handler.C:104-U] - Handler Callback will handle event Breakpoint
[handler.C:104-U] - Handler BreakpointClear will handle event BreakpointClear
[handler.C:104-U] - Handler Breakpoint Restore will handle event BreakpointRestore
[handler.C:104-U] - Handler RPC Handler will handle event RPC
[handler.C:104-U] - Handler Callback will handle event RPC
[handler.C:104-U] - Handler iRPC PreCallback Handler will handle event RPC
[handler.C:104-U] - Handler Callback will handle event RPC
[handler.C:104-U] - Handler Library Handler will handle event Library
[handler.C:104-U] - Handler Callback will handle event Library
[handler.C:104-U] - Handler Post Fork will handle event post-Fork
[handler.C:104-U] - Handler Callback will handle event post-Fork
[handler.C:104-U] - Handler Post Fork Continue will handle event post-Fork
[handler.C:104-U] - Handler Callback will handle event post-Fork
[handler.C:104-U] - Handler Post Exec will handle event post-Exec
[handler.C:104-U] - Handler Callback will handle event post-Exec
[handler.C:104-U] - Handler iRPC Launch Handler will handle event RPCLaunch
[handler.C:104-U] - Handler Async will handle event Async
[handler.C:104-U] - Handler AsyncIO Handler will handle event AsyncRead
[handler.C:104-U] - Handler Callback will handle event AsyncRead
[handler.C:104-U] - Handler AsyncIO Handler will handle event AsyncWrite
[handler.C:104-U] - Handler Callback will handle event AsyncWrite
[handler.C:104-U] - Handler AsyncIO Handler will handle event AsyncReadAllRegs
[handler.C:104-U] - Handler Callback will handle event AsyncReadAllRegs
[handler.C:104-U] - Handler AsyncIO Handler will handle event AsyncSetAllRegs
[handler.C:104-U] - Handler Callback will handle event AsyncSetAllRegs
[handler.C:104-U] - Handler ForceTerminate will handle event post-ForceTerminate
[handler.C:104-U] - Handler Callback will handle event post-ForceTerminate
[handler.C:104-U] - Handler Pre-bootstrap will handle event PreBootstrap
[handler.C:104-U] - Handler Nop Handler will handle event Nop
[handler.C:104-U] - Handler Detach will handle event Detach
[handler.C:104-U] - Handler Emulated Single Step will handle event Breakpoint
[handler.C:104-U] - Handler Callback will handle event Breakpoint
[handler.C:104-U] - Handler HandleAsyncFileRead will handle event AsyncFileRead
[handler.C:104-U] - Handler Callback will handle event AsyncFileRead
[handler.C:104-U] - Handler Postponed Syscall will handle event PostponedSyscall
[handler.C:104-U] - Handler Linux New Thread will handle event ThreadCreate
[handler.C:104-U] - Handler Callback will handle event ThreadCreate
[handler.C:104-U] - Handler Linux New Thread will handle event Bootstrap
[handler.C:104-U] - Handler Callback will handle event Bootstrap
[handler.C:104-U] - Handler Linux Force Termination will handle event post-ForceTerminate
[handler.C:104-U] - Handler Callback will handle event post-ForceTerminate
[handler.C:104-U] - Handler thread_db Library Handler will handle event Library
[handler.C:104-U] - Handler Callback will handle event Library
[handler.C:104-U] - Handler thread_db New Thread Handler will handle event pre-UserThreadCreate
[handler.C:104-U] - Handler Callback will handle event pre-UserThreadCreate
[handler.C:104-U] - Handler thread_db New Thread Handler will handle event post-UserThreadCreate
[handler.C:104-U] - Handler Callback will handle event post-UserThreadCreate
[handler.C:104-U] - Handler thread_db New Thread Handler will handle event UserThreadCreate
[handler.C:104-U] - Handler Callback will handle event UserThreadCreate
[handler.C:104-U] - Handler thread_db Destroy Handler will handle event pre-UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event pre-UserThreadDestroy
[handler.C:104-U] - Handler thread_db Destroy Handler will handle event post-UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event post-UserThreadDestroy
[handler.C:104-U] - Handler thread_db Destroy Handler will handle event UserThreadDestroy
[handler.C:104-U] - Handler Callback will handle event UserThreadDestroy
[handler.C:104-U] - Handler thread_db Dispatch Handler will handle event ThreadDB
[handler.C:2365-U] - Registering event pre-Crash with callback function 0x7fffb4fee104
[handler.C:2368-U] - Event pre-Crash does not have any handler
[handler.C:2365-U] - Registering event post-Crash with callback function 0x7fffb4fee104
[handler.C:2368-U] - Event post-Crash does not have any handler
[handler.C:2365-U] - Registering event Crash with callback function 0x7fffb4fee104
[handler.C:2365-U] - Registering event pre-ForceTerminate with callback function 0x7fffb4fee104
[handler.C:2368-U] - Event pre-ForceTerminate does not have any handler
[handler.C:2365-U] - Registering event post-ForceTerminate with callback function 0x7fffb4fee104
[handler.C:2365-U] - Registering event ForceTerminate with callback function 0x7fffb4fee104
[handler.C:2368-U] - Event ForceTerminate does not have any handler
[handler.C:2365-U] - Registering event pre-UserThreadCreate with callback function 0x7fffb4ff0934
[handler.C:2365-U] - Registering event post-UserThreadCreate with callback function 0x7fffb4ff0934
[handler.C:2365-U] - Registering event UserThreadCreate with callback function 0x7fffb4ff0934
[handler.C:2365-U] - Registering event pre-LWPCreate with callback function 0x7fffb4ff0934
[handler.C:2368-U] - Event pre-LWPCreate does not have any handler
[handler.C:2365-U] - Registering event post-LWPCreate with callback function 0x7fffb4ff0934
[handler.C:2368-U] - Event post-LWPCreate does not have any handler
[handler.C:2365-U] - Registering event LWPCreate with callback function 0x7fffb4ff0934
[handler.C:2365-U] - Registering event pre-UserThreadDestroy with callback function 0x7fffb4ff0c48
[handler.C:2365-U] - Registering event post-UserThreadDestroy with callback function 0x7fffb4ff0c48
[handler.C:2365-U] - Registering event UserThreadDestroy with callback function 0x7fffb4ff0c48
[handler.C:2365-U] - Registering event pre-LWPDestroy with callback function 0x7fffb4ff0c48
[handler.C:2365-U] - Registering event post-LWPDestroy with callback function 0x7fffb4ff0c48
[handler.C:2365-U] - Registering event LWPDestroy with callback function 0x7fffb4ff0c48
[handler.C:2365-U] - Registering event pre-Signal with callback function 0x7fffb4fef4d8
[handler.C:2368-U] - Event pre-Signal does not have any handler
[handler.C:2365-U] - Registering event post-Signal with callback function 0x7fffb4fef4d8
[handler.C:2368-U] - Event post-Signal does not have any handler
[handler.C:2365-U] - Registering event Signal with callback function 0x7fffb4fef4d8
[handler.C:2365-U] - Registering event pre-Library with callback function 0x7fffb4fee104
[handler.C:2368-U] - Event pre-Library does not have any handler
[handler.C:2365-U] - Registering event post-Library with callback function 0x7fffb4fee104
[handler.C:2368-U] - Event post-Library does not have any handler
[handler.C:2365-U] - Registering event Library with callback function 0x7fffb4fee104
[handler.C:2365-U] - Registering event pre-Breakpoint with callback function 0x7fffb4fef890
[handler.C:2368-U] - Event pre-Breakpoint does not have any handler
[handler.C:2365-U] - Registering event post-Breakpoint with callback function 0x7fffb4fef890
[handler.C:2368-U] - Event post-Breakpoint does not have any handler
[handler.C:2365-U] - Registering event Breakpoint with callback function 0x7fffb4fef890
[handler.C:2365-U] - Registering event pre-RPC with callback function 0x7fffb4ff0158
[handler.C:2368-U] - Event pre-RPC does not have any handler
[handler.C:2365-U] - Registering event post-RPC with callback function 0x7fffb4ff0158
[handler.C:2368-U] - Event post-RPC does not have any handler
[handler.C:2365-U] - Registering event RPC with callback function 0x7fffb4ff0158
[handler.C:2365-U] - Registering event pre-SingleStep with callback function 0x7fffb4fee408
[handler.C:2368-U] - Event pre-SingleStep does not have any handler
[handler.C:2365-U] - Registering event post-SingleStep with callback function 0x7fffb4fee408
[handler.C:2368-U] - Event post-SingleStep does not have any handler
[handler.C:2365-U] - Registering event SingleStep with callback function 0x7fffb4fee408
[handler.C:2365-U] - Registering event pre-Exit with callback function 0x7fffb4feede4
[handler.C:2365-U] - Registering event post-Exit with callback function 0x7fffb4feede4
[handler.C:2365-U] - Registering event post-Fork with callback function 0x7fffb4fee104
[handler.C:2365-U] - Registering event post-Exec with callback function 0x7fffb4fee104
[process.C:8621-H] - Handler starting to check for events
[process.C:8629-H] - Events already handled, going back to sleep
[process.C:6261-U] - User asked to attach to process 29209 ()
[process.C:1403-U] - New int_process at 0x10017ecede8
[int_thread_db.C:369-U] - Opening thread_db with libthread_db.so
[int_thread_db.C:416-U] - Successfully loaded thread_db.so library
[generator.C:144-U] - Setting generator state to initializing
[generator.C:391-G] - Generator started on thread 7fffb11cefb0
[generator.C:144-G] - Setting generator state to none
[generator.C:409-G] - Starting main loop of generator thread
[generator.C:144-G] - Setting generator state to process_blocked
[process.C:282-U] - Calling plat_attach for 1 processes
[process.C:318-U] - Calling plat_attach for process 29209
[linux.C:1003-U] - Attaching to pid 29209
[procpool.C:62-U] - Adding process 29209 to pool
[process.C:4442-U] - Changing postponed syscall state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing exiting state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing startup state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing pending stop state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing callback state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing breakpoint state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing bp hold state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing breakpoint resume state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing irpc setup state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing irpc wait state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing irpc state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing async state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing internal state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing detach state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing irpc user state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing control authority state for 29209/29209 from none to dontcare
[process.C:4442-U] - Changing user state for 29209/29209 from none to neonatal
[process.C:8377-U] - Adjusting counter NeonatalThreads by 1, before 0, after 1
[process.C:4442-U] - Changing handler state for 29209/29209 from none to neonatal
[process.C:4442-U] - Changing generator state for 29209/29209 from none to neonatal
[process.C:8377-U] - Adjusting counter GeneratorNonExitedThreads by 1, before 0, after 1
[process.C:3492-U] - Creating initial thread 29209/29209, thr_id = 0xffffffffffffffff
[process.C:4442-U] - Changing user state for 29209/29209 from neonatal to neonatal_intermediate
[process.C:8377-U] - Adjusting counter HandlerRunningThreads by 1, before 0, after 1
[process.C:4442-U] - Changing handler state for 29209/29209 from neonatal to neonatal_intermediate
[process.C:8377-U] - Adjusting counter GeneratorRunningThreads by 1, before 0, after 1
[process.C:4442-U] - Changing generator state for 29209/29209 from neonatal to neonatal_intermediate
[process.C:365-U] - Attach done, moving processes to neonatal_intermediate
[process.C:749-U] - Changing state of process from neonatal to neonatal_intermediate on 29209
[process.C:763-U] - Setting state of all threads in 29209 to neonatal_intermediate
[process.C:4378-U] - Leaving user state for 29209/29209 in state neonatal_intermediate
[process.C:4378-U] - Leaving handler state for 29209/29209 in state neonatal_intermediate
[process.C:4378-U] - Leaving generator state for 29209/29209 in state neonatal_intermediate
[process.C:381-U] - Attaching to threads for 29209
[process.C:242-U] - Already have thread 29209 in process 29209
[process.C:451-U] - Wait for attach from process 29209
[process.C:189-U] - Waiting for startup to complete for 29209
[process.C:995-U] - Top of waitAndHandleEvents.  Block = true
[generator.C:429-G] - Checking for live processes
[generator.C:278-G] - Entry to generator::hasLiveProc()
[generator.C:288-G] - Generator has running threads, returning true from hasLiveProc
[generator.C:442-G] - processWait returning true
[generator.C:144-G] - Setting generator state to system_blocked
[generator.C:207-G] - About to getEvent()
[linux.C:152-G] - blocking in waitpid
[linux.C:173-G] - Waitpid return status 4991 for pid 29209:
[linux.C:179-G] - Stopped with signal 19
[generator.C:209-G] - Got event
[generator.C:144-G] - Setting generator state to decoding
[linux.C:305-G] - Decoding event for 29209/29209
[linux.C:308-G] - ARM-debug: status 0x137f
[linux.C:313-G] - Decoded to signal 19
[linux.C:399-G] - Decoded event to thread bootstrap on 29209/29209
[generator.C:144-G] - Setting generator state to statesync
[process.C:2331-G] - Event Bootstrap is thread synchronous, marking thread 29209 generator stopped
[process.C:8377-G] - Adjusting counter GeneratorRunningThreads by -1, before 1, after 0
[process.C:4442-G] - Changing generator state for 29209/29209 from neonatal_intermediate to stopped
[generator.C:144-G] - Setting generator state to queueing
[mailbox.C:120-G] - Added event Bootstrap to mailbox, size = 1 + 0 + 0 = 1
[generator.C:144-G] - Setting generator state to none
[process.C:1048-U] - Blocking for events = !F && ((T && !F && T) || ? || ? || ? || ? || ? || ? || ? || ?)
[generator.C:144-G] - Setting generator state to process_blocked
[mailbox.C:171-U] - Returning event Bootstrap from mailbox
[generator.C:429-G] - Checking for live processes
[generator.C:278-G] - Entry to generator::hasLiveProc()
[generator.C:308-G] - No live processes, ret false
[generator.C:431-G] - Checked and found no live processes
[process.C:2331-U] - Event Bootstrap is thread synchronous, marking thread 29209 handler stopped
[process.C:8377-U] - Adjusting counter HandlerRunningThreads by -1, before 1, after 0
[process.C:8377-U] - Adjusting counter NeonatalThreads by -1, before 1, after 0
[process.C:4442-U] - Changing handler state for 29209/29209 from neonatal_intermediate to stopped
[handler.C:406-U] - Event Bootstrap added to handle list with handler Bootstrap
[handler.C:406-U] - Event Bootstrap added to handle list with handler Linux New Thread
[handler.C:406-U] - Event Bootstrap added to handle list with handler Callback
[handler.C:423-U] - Have event Bootstrap on Bootstrap
[handler.C:423-U] - Have event Bootstrap on Linux New Thread
[handler.C:423-U] - Have event Bootstrap on Callback
[handler.C:441-U] - Handling event 'Bootstrap' with handler 'Bootstrap'
[handler.C:564-U] - Handling bootstrap for 29209
[process.C:4442-U] - Changing user state for 29209/29209 from neonatal_intermediate to stopped
[handler.C:590-U] - All threads are bootstrapped, marking process bootstrapped
[process.C:749-U] - Changing state of process from neonatal_intermediate to running on 29209
[process.C:763-U] - Setting state of all threads in 29209 to stopped
[process.C:4378-U] - Leaving user state for 29209/29209 in state stopped
[process.C:4378-U] - Leaving handler state for 29209/29209 in state stopped
[process.C:4378-U] - Leaving generator state for 29209/29209 in state stopped
[handler.C:441-U] - Handling event 'Bootstrap' with handler 'Linux New Thread'
[linux.C:3117-U] - Setting ptrace options for new thread 29209
[handler.C:441-U] - Handling event 'Bootstrap' with handler 'Callback'
[handler.C:2132-U] - No callback registered for event type 'Bootstrap'
[process.C:820-U] - At top of syncRunState for 29209
[process.C:3310-U] - 29209/29209: setting target state to Stopped
[process.C:857-U] - Checking if any ProcStop events on 29209 are ready
[process.C:3310-U] - 29209/29209: setting target state to Stopped
[process.C:869-U] - Current Threading State for 29209:
[process.C:885-U] - 29209/29209 hand: stopped, gen: stopped, user: stopped, code: ----------------SSS
[process.C:894-U] - Running plat_syncRunState on 29209
[process.C:1048-U] - Polling for events = !F && ((T && !T && ?) || F || F || F || F || F || F || F || F)
[mailbox.C:149-U] - Polled mailbox for messages, but none found
[process.C:1067-U] - Returning after handling events
[process.C:1155-U] - Leaving WaitAndHandleEvents with return true, 'cause we're done
[process.C:242-U] - Already have thread 29209 in process 29209
[process.C:491-U] - Thread attach is done for process 29209
[process.C:496-U] - Triggering post-attach for 1 processes
[process.C:704-U] - Starting post_attach for process 29209
[sysv.C:242-U] - Refreshing list of loaded libraries
[sysv.C:201-U] - Initializing library mechanism for process 29209
[sysv.C:227-U] - Installing library breakpoint at 7fffbb4e56d0
[process.C:5208-U] - Prepping breakpoint at 7fffbb4e56d0
[process.C:5089-U] - Saving original data for breakpoint insertion at 7fffbb4e56d0 +4
[linux.C:847-U] - computeAddrWidth: word size is 8
[process.C:1513-U] - Reading from remote memory 7fffbb4e56d0 to 0x1001817b9d0, size = 4 on 29209/29209
[process.C:5095-U] - Buffer contents from read breakpoint:
[process.C:5097-U] - 	 0x20
[process.C:5097-U] - 	 0x0
[process.C:5097-U] - 	 0x80
[process.C:5097-U] - 	 0x4e
[response.C:304-U] - Waiting for async event 1, complete
[process.C:1571-U] - Writing to remote memory 7fffbb4e56d0 from 0x7fffc4570728, size = 4 on 29209/29209
[response.C:304-U] - Waiting for async event 2, complete
[process.C:1513-U] - Reading from remote memory 10000040 to 0x7fffc45708e0, size = 56 on 29209/29209
[process.C:1513-U] - Reading from remote memory 10000078 to 0x7fffc45708e0, size = 56 on 29209/29209
[process.C:1513-U] - Reading from remote memory 100000b0 to 0x7fffc45708e0, size = 56 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb5110d8 to 0x10017f01870, size = 40 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb511110 to 0x1001817b650, size = 40 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb5116b0 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb5116c0 to 0x1001817b650, size = 40 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb511b70 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb511b78 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb511b80 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb511e00 to 0x1001817b650, size = 40 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb511de0 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb511de8 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb511df0 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 7fffbb510990 to 0x1001817b650, size = 40 on 29209/29209
[process.C:1513-U] - Reading from remote memory 10000238 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 10000240 to 0x10017ecef30, size = 8 on 29209/29209
[process.C:1513-U] - Reading from remote memory 10000248 to 0x10017ecef30, size = 8 on 29209/29209
[sysv.C:279-U] - Found library /root/dyn/smoke-test/dynamic/mutatee.10 at 0
[sysv.C:281-U] - Creating new library object for /root/dyn/smoke-test/dynamic/mutatee.10
[sysv.C:279-U] - Found library /lib64/libc.so.6 at 7fffbb280000
[sysv.C:281-U] - Creating new library object for /lib64/libc.so.6
[sysv.C:279-U] - Found library /lib64/ld64.so.2 at 7fffbb4d0000
[sysv.C:281-U] - Creating new library object for /lib64/ld64.so.2
[process.C:698-U] - Successfully initialized address space for 29209
[int_thread_db.C:647-U] - Initializing thread_db library
[int_thread_db.C:663-U] - Sucessfully initialized thread_db
[int_thread_db.C:677-U] - Creating threadAgent
[int_thread_db.C:59-U] - Looking up symbol nptl_version in libpthread.so.0
[int_thread_db.C:1006-U] - Didn't yet find loaded thread library
[int_thread_db.C:684-U] - Debuggee isn't multithreaded at this point, libthread_db not enabled
[process.C:512-U] - Finished post-attach for 29209.  Process is ready
[process.C:8621-H] - Handler starting to check for events
[process.C:8629-H] - Events already handled, going back to sleep
[int_thread_db.C:1715-U] - Error: Attempt to read user thread info of 29209/29209 before user thread create
[int_thread_db.C:1715-U] - Error: Attempt to read user thread info of 29209/29209 before user thread create
[int_thread_db.C:1715-U] - Error: Attempt to read user thread info of 29209/29209 before user thread create
[int_thread_db.C:1715-U] - Error: Attempt to read user thread info of 29209/29209 before user thread create
[int_thread_db.C:1715-U] - Error: Attempt to read user thread info of 29209/29209 before user thread create
[int_thread_db.C:1715-U] - Error: Attempt to read user thread info of 29209/29209 before user thread create
[140736184387328]dynProcess.C[1474]: added thread 29209 to process 29209
[symlookup.C:49] - Creating SymbolLookup 0x1001c2e7a10
[walker.C:185] - Creating custom Walker with proc = 0x1001b726910lookup = 0x1001c2e7a10
[walker.C:73] - Creating new Walker with proc=0x1001b726910, sym=0x1001c2e7a10, step = 0
[steppergroup.C:83] - Constructing new AddrRangeGroup at 0x1001c120f40
[walker.C:195] - Successfully created Walker 0x1001c2e7a50
[framestepper.C:50] - Creating FrameStepper 0x10018408e60 with walker 0x1001c2e7a50
[framestepper_pimple.h:74] - Constructing DyninstDynamicStepper at 0x10018408e60
[framestepper.C:50] - Creating FrameStepper 0x1001c2e7ad0 with walker 0x1001c2e7a50
[walker.C:649] - Registering stepper DyninstDynamicStepper with group 0x1001c120f40
[steppergroup.C:150] - Adding stepper DyninstDynamicStepper to address ranges 0 -> ffffffffffffffff
[framestepper.C:50] - Creating FrameStepper 0x1001c2e7c10 with walker 0x1001c2e7a50
[framestepper_pimple.h:74] - Constructing FrameFuncStepper at 0x1001c2e7c10
[framestepper.C:50] - Creating FrameStepper 0x1001c2e7c30 with walker 0x1001c2e7a50
[walker.C:649] - Registering stepper FrameFuncStepper with group 0x1001c120f40
[steppergroup.C:150] - Adding stepper FrameFuncStepper to address ranges 0 -> ffffffffffffffff
[frame.C:69] - Created null frame at 0x7fffc45710d0
[frame.C:69] - Created null frame at 0x7fffc4570fb8
[sw_pcontrol.C:222] - Calling preStackwalk for thread 29209
[process.C:3779-U] - Get register value for thread 29209, register ppc64::pc
[linux.C:2441-U] - Register ppc64::pc has value 0x7fffbb36f080
[process.C:3853-U] - Returning register value 7fffbb36f080 for register ppc64::pc on 29209
[response.C:304-U] - Waiting for async event 21, complete
[process.C:3779-U] - Get register value for thread 29209, register ppc64::r1
[linux.C:2441-U] - Register ppc64::r1 has value 0x7fffe2d61e50
[process.C:3853-U] - Returning register value 7fffe2d61e50 for register ppc64::r1 on 29209
[response.C:304-U] - Waiting for async event 22, complete
[process.C:3779-U] - Get register value for thread 29209, register ppc64::r1
[process.C:3822-U] - Had cached register value
[process.C:3853-U] - Returning register value 7fffe2d61e50 for register ppc64::r1 on 29209
[response.C:304-U] - Waiting for async event 23, complete
[frame.C:176] - Setting ra of frame 0x7fffc4570fb8 to 7fffbb36f080
[frame.C:183] - Setting fp of frame 0x7fffc4570fb8 to 7fffe2d61e50
[frame.C:189] - Setting sp of frame 0x7fffc4570fb8 to 7fffe2d61e50
[frame.C:199] - Setting frame 0x7fffc4570fb8 RA location to register abstract::ReturnAddr
[frame.C:199] - Setting frame 0x7fffc4570fb8 SP location to register abstract::StackTop
[frame.C:199] - Setting frame 0x7fffc4570fb8 FP location to register abstract::FrameBase
[frame.C:140] - Marking frame 0x7fffc4570fb8 as top
[sw_pcontrol.C:250] - Calling postStackwalk for thread 29209
[frame.C:316] - Destroying frame 0x7fffc4570ee0
[frame.C:316] - Destroying frame 0x7fffc4570fb8
[frame.C:316] - Destroying frame 0x7fffc45710d0
[frame.C:316] - Destroying frame 0x7fffc4571300
[injector.C:31-U] - Injecting /root/dyninst-10.0.0/install/lib/libdyninstAPI_RT.so into process 29209
[process.C:1673-U] - Process 29209 is allocating memory of size 308 at 0x0
[irpc.C:327-U] - Posting iRPC 0 to process 29209, selecting a thread...
[irpc.C:361-U] - Thread 29209 has 0 running/posted iRPCs
[irpc.C:375-U] - Selected thread 29209 for iRPC 0
[irpc.C:385-U] - Posting iRPC 0 to thread 29209
[irpc.C:440-U] - RPC 0 already has allocated memory, added to end
[irpc.C:505-U] - Posted iRPC list for 29209:
	M-0
[process.C:4320-U] - Desyncing 29209/29209 internal state to level 1
[process.C:4442-U] - Changing internal state for 29209/29209 from dontcare to running
[mailbox.C:120-U] - Added event Nop to mailbox, size = 1 + 0 + 0 = 1
[process.C:995-U] - Top of waitAndHandleEvents.  Block = false
[process.C:1048-U] - Polling for events = !F && ((F && !? && ?) || F || F || F || F || F || F || F || F)
[mailbox.C:171-U] - Returning event Nop from mailbox
[handler.C:406-U] - Event Nop added to handle list with handler Nop Handler
[handler.C:423-U] - Have event Nop on Nop Handler
[handler.C:441-U] - Handling event 'Nop' with handler 'Nop Handler'
[process.C:820-U] - At top of syncRunState for 29209
[process.C:3310-U] - 29209/29209: setting target state to Running
[process.C:3541-U] - Checking thread 29209/29209 for events thrown before continue
[process.C:3549-U] - Found thread 29209/29209 ready to run IRPC, not continuing
[process.C:4320-U] - Desyncing 29209/29209 irpc setup state to level 1
[process.C:4442-U] - Changing irpc setup state for 29209/29209 from dontcare to stopped
[event.C:133-U] - Setting callback suppress for RPCLaunch
[mailbox.C:120-U] - Added event RPCLaunch to mailbox, size = 1 + 0 + 0 = 1
[process.C:857-U] - Checking if any ProcStop events on 29209 are ready
[process.C:3310-U] - 29209/29209: setting target state to Stopped
[process.C:869-U] - Current Threading State for 29209:
[process.C:885-U] - 29209/29209 hand: stopped, gen: stopped, irpc setup: stopped, code: -----S-----R----SSS
[process.C:894-U] - Running plat_syncRunState on 29209
[process.C:1048-U] - Polling for events = !F && ((F && !? && ?) || F || F || F || F || F || F || F || F)
[mailbox.C:171-U] - Returning event RPCLaunch from mailbox
[handler.C:406-U] - Event RPCLaunch added to handle list with handler iRPC Launch Handler
[handler.C:423-U] - Have event RPCLaunch on iRPC Launch Handler
[handler.C:441-U] - Handling event 'RPCLaunch' with handler 'iRPC Launch Handler'
[irpc.C:1224-U] - Handling next posted irpc 0 on 29209/29209 of type InfMalloc in state Prepping
[irpc.C:1232-U] - Marking RPC 0 on 29209/29209 as prepped
[irpc.C:1242-U] - Saving RPC state on 29209/29209
[irpc.C:719-U] - Saving state for iRPC 0
[irpc.C:739-U] - Saving original application registers for 29209/29209
[process.C:3665-U] - Reading registers for thread 29209
[process.C:3679-U] - plat_getAllRegisters on 29209/29209
[linux.C:2368-U] - Register ppc64::r0 has value               a2, offset 0
[linux.C:2368-U] - Register ppc64::r1 has value     7fffe2d61e50, offset 8
[linux.C:2368-U] - Register ppc64::r2 has value     7fffbb497100, offset 16
[linux.C:2368-U] - Register ppc64::r3 has value              204, offset 24
[linux.C:2368-U] - Register ppc64::r4 has value     7fffe2d61eb8, offset 32
[linux.C:2368-U] - Register ppc64::r5 has value                a, offset 40
[linux.C:2368-U] - Register ppc64::r6 has value                0, offset 48
[linux.C:2368-U] - Register ppc64::r7 has value               64, offset 56
[linux.C:2368-U] - Register ppc64::r8 has value     7fffbb422be0, offset 64
[linux.C:2368-U] - Register ppc64::r9 has value                0, offset 72
[linux.C:2368-U] - Register ppc64::r10 has value                0, offset 80
[linux.C:2368-U] - Register ppc64::r11 has value                0, offset 88
[linux.C:2368-U] - Register ppc64::r12 has value                0, offset 96
[linux.C:2368-U] - Register ppc64::r13 has value     7fffbb51a170, offset 104
[linux.C:2368-U] - Register ppc64::r14 has value                0, offset 112
[linux.C:2368-U] - Register ppc64::r15 has value                0, offset 120
[linux.C:2368-U] - Register ppc64::r16 has value                0, offset 128
[linux.C:2368-U] - Register ppc64::r17 has value                0, offset 136
[linux.C:2368-U] - Register ppc64::r18 has value                0, offset 144
[linux.C:2368-U] - Register ppc64::r19 has value                0, offset 152
[linux.C:2368-U] - Register ppc64::r20 has value                0, offset 160
[linux.C:2368-U] - Register ppc64::r21 has value                0, offset 168
[linux.C:2368-U] - Register ppc64::r22 has value                0, offset 176
[linux.C:2368-U] - Register ppc64::r23 has value                0, offset 184
[linux.C:2368-U] - Register ppc64::r24 has value                0, offset 192
[linux.C:2368-U] - Register ppc64::r25 has value                0, offset 200
[linux.C:2368-U] - Register ppc64::r26 has value                0, offset 208
[linux.C:2368-U] - Register ppc64::r27 has value     7fffbb50f1e0, offset 216
[linux.C:2368-U] - Register ppc64::r28 has value                0, offset 224
[linux.C:2368-U] - Register ppc64::r29 has value     7fffbb50f1e8, offset 232
[linux.C:2368-U] - Register ppc64::r30 has value                0, offset 240
[linux.C:2368-U] - Register ppc64::r31 has value     7fffbb513180, offset 248
[linux.C:2368-U] - Register ppc64::mq has value                0, offset 312
[linux.C:2368-U] - Register ppc64::xer has value                0, offset 296
[linux.C:2368-U] - Register ppc64::lr has value     7fffbb36eef0, offset 288
[linux.C:2368-U] - Register ppc64::ctr has value                0, offset 280
[linux.C:2368-U] - Register ppc64::dsisr has value         40000000, offset 336
[linux.C:2368-U] - Register ppc64::dar has value     7fffbb36eea0, offset 328
[linux.C:2368-U] - Register ppc64::pc has value     7fffbb36f080, offset 256
[linux.C:2368-U] - Register ppc64::msr has value 800000010000d033, offset 264
[linux.C:2368-U] - Register ppc64::cr has value         52000244, offset 304
[linux.C:2368-U] - Register ppc64::or3 has value     7fffe2d61eb8, offset 272
[linux.C:2368-U] - Register ppc64::trap has value              c00, offset 320
[process.C:3703-U] - Successfully retrieved all registers for 29209
[irpc.C:752-U] - Saving original 112 bytes of memory at 10000000 from application for 29209/29209
[process.C:1513-U] - Reading from remote memory 10000000 to 0x1001c2eade0, size = 112 on 29209/29209
[irpc.C:1267-U] - Writing RPC on 29209
[irpc.C:785-U] - Writing rpc 0 memory to 10000000->10000070
[process.C:1571-U] - Writing to remote memory 10000000 from 0x1001c34d590, size = 112 on 29209/29209
[irpc.C:803-U] - IRPC: Setting 29209/29209 PC to 10000004
[process.C:3875-U] - 29209/29209: Setting ppc64::pc to 0x10000004...
[process.C:3900-U] - Setting register ppc64::pc for thread 29209 to 10000004
[linux.C:2732-U] - Set register ppc64::pc (size 8, offset 256) to value 10000004
[irpc.C:832-U] - Moving next iRPC for 29209/29209 to running
[process.C:8377-U] - Adjusting counter ProcStopRPCs by 1, before 0, after 1
[process.C:4320-U] - Desyncing 29209/29209 irpc wait state to level 1
[process.C:4442-U] - Changing irpc wait state for 29209/29209 from dontcare to stopped
[process.C:4320-U] - Desyncing 29209/29209 irpc state to level 1
[process.C:4442-U] - Changing irpc state for 29209/29209 from dontcare to running
[process.C:4345-U] - Restoring 29209/29209 irpc setup state to level 0
[process.C:4442-U] - Changing irpc setup state for 29209/29209 from stopped to dontcare
[process.C:820-U] - At top of syncRunState for 29209
[process.C:3310-U] - 29209/29209: setting target state to Running
[process.C:3541-U] - Checking thread 29209/29209 for events thrown before continue
[process.C:857-U] - Checking if any ProcStop events on 29209 are ready
[process.C:3310-U] - 29209/29209: setting target state to Running
[process.C:869-U] - Current Threading State for 29209:
[process.C:885-U] - 29209/29209 hand: stopped, gen: stopped, irpc: running, code: ----R-S----R----SSS
[process.C:894-U] - Running plat_syncRunState on 29209
[process.C:2970-U] - intCont on thread 29209/29209
[linux.C:1400-U] - Continuing thread 29209
[linux.C:1460-U] - Calling PTRACE_CONT on 29209 with signal 0
[process.C:8377-U] - Adjusting counter HandlerRunningThreads by 1, before 0, after 1
[process.C:4442-U] - Changing handler state for 29209/29209 from stopped to running
[process.C:8377-U] - Adjusting counter GeneratorRunningThreads by 1, before 0, after 1
[process.C:4442-U] - Changing generator state for 29209/29209 from stopped to running
[process.C:5903-U] - Clearing register pool for 29209/29209
[memcache.C:573-U] - Clearing memCache
[process.C:1048-U] - Polling for events = !F && ((F && !? && ?) || F || F || F || T || ? || ? || ? || ?)
[mailbox.C:149-U] - Polled mailbox for messages, but none found
[process.C:1067-U] - Returning after handling events
[process.C:1155-U] - Leaving WaitAndHandleEvents with return true, 'cause we're done
mutator.10: /root/dyninst-10.0.0/src/proccontrol/src/process.C:1726: static bool int_process::infMalloc(long unsigned int, int_addressSet*, bool): Assertion `rpc->getState() == int_iRPC::Finished' failed.
[← Prev in Thread] Current Thread [Next in Thread→]