Questions tagged [truss]

22 questions
121
votes
3 answers

How to trace system calls of a program in Mac OS X?

I wanted to trace the system calls made by the find command to debug some performance issues however I could not figure out how to do this on Mac OS X Yosemite. How can I trace system calls for an arbitrary program similarly to what strace does on…
Michaël Le Barbier
  • 6,103
  • 5
  • 28
  • 57
9
votes
2 answers

dtruss fails on ps on OS X 10.11

I was trying to see which syscall ps uses to get the command line of a process on OS X 10.11 (El Capitan), and ran into the following error: # dtruss ps -p 43520 -o args dtrace: failed to execute ps: dtrace cannot control executables signed with…
Dan
  • 7,155
  • 2
  • 29
  • 54
3
votes
2 answers

How to trace system calls in FreeBSD from source code?

How to log system calls (the syscall number and the return value, for both int 0x80 and sysenter/syscall) on FreeBSD 10.1 x86_64 from source code? I know truss can do the work, but I need to log other information like the buffer of copyout during…
WindChaser
  • 960
  • 1
  • 10
  • 30
3
votes
1 answer

Having problems redirecting stderr to a subshell created w/process substitution

~ bash --version GNU bash, version 3.2.51(1)-release (sparc-sun-solaris2.10) Copyright (C) 2007 Free Software Foundation, Inc. The following command works as expected: ~ ls hdfhdfhdhfd 2> >(wc -l) 1 ... but this doesn't work, and I'm running out…
Brian Vandenberg
  • 4,011
  • 2
  • 37
  • 53
1
vote
1 answer

Process under FreeBSD 9.0 hangs in uninterruptable sleep with apparently no syscall (empty wchan)

I have a custom logging process that is reading from STDIN and sending the data out via TCP to a scribed logging server. STDIN is in my case an access log that is attached to Apache httpd 2.2 like this in httpd.conf: CustomLog…
Christian Esken
  • 472
  • 1
  • 4
  • 11
1
vote
3 answers

Alternative to 'truss -p' instruction

I am looking for a command in Unix that returns the status of a process(active, dead, sleeping, waiting for another process, etc.) is there any available? A shell script maybe?
lamcro
  • 6,069
  • 18
  • 57
  • 70
1
vote
1 answer

Strace, how to see the fork syscall?

On old SystemV Unix using the "truss" program(is similar to strace) truss script.sh ..... fork() = 382 6 Received signal #18, SIGCLD, in waitsys() [default] siginfo: SIGCLD CLD_EXITED…
elbarna
  • 597
  • 1
  • 10
  • 26
1
vote
2 answers

How can I visualize truss using VTK?

I am trying to run the code below to visualize stresses on a truss but I am getting an error.I am using vtk 8.2.0 and after googling the error I found solutions to lower versions (below 8.2) so they couldnt work.The code is below.Please someone…
Abdirizak
  • 87
  • 7
1
vote
1 answer

Which loops and which co-ordinate system can I use to automate this example of a truss structure

I am completely new to matlab and can't seem to get an if loop to work. For example if Ln > k , plot point i(n-1) to i(n). How would I automatically assign the correct row or column vectors to i(n)? Here is a diagram of what I'm wanting What I want…
dnk8n
  • 675
  • 8
  • 21
0
votes
2 answers

Solaris tool to trace library API's

I want to trace all the functions which an application calls. Here, I am not looking for system calls, but the library API's mainly. I have tried truss, it is not showing some library API's which I am expecting. Is there any tool in solaris like…
aaa
  • 415
  • 6
  • 15
0
votes
2 answers

How Can I only save filled in entry widgets without saving the empty entry widget in atext file using Tkinter app?

I am creating a simple app for truss analysis and I have to collect and save some data in a text file.According to my code I can only solve for 6 nodes maximum (6 entry boxes).However when I dont fill in all the boxes it also saves the empty boxes…
Abdirizak
  • 87
  • 7
0
votes
0 answers

How do I remove single quotation marks from data saved from text widget in Tkinter app?

I am newbie to python and I am trying to create a simple GUI app for truss analysis.The problem is after I enter data in the text widget and save it in a txt file the data comes out with single quotation marks which I could not remove.I tride using…
Abdirizak
  • 87
  • 7
0
votes
1 answer

How can I display displacement and node numbers on a 3D truss?

I am trying to show displacement on a 3D truss example however I am running into an error.I have simplified my code below.I am able to show displacement on a 2D problem however I am unable on a 3D problem.I am also trying to show the node numbers at…
Abdirizak
  • 87
  • 7
0
votes
0 answers

What can cause kopen to hang?

I have the following line from an AIX truss I ran: kopen("path/to/file", O_WRONLY|O_CREAT|O_NSHARE|O_DSYNC|O_LARGEFILE,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) (sleeping...) I'm assuming the sleeping... means we are waiting here for an extended period of…
TreeWater
  • 761
  • 6
  • 13
0
votes
1 answer

peculiarity about creating a file using output redirection and opening a file with cat

I noticed that creating a file using output redirection involves neither creat() or open() system call. I thinks this is due to the stdin and stdout always exist and are always open. But how can I detect (i.e., using dtrace) file creation/read/write…
techie11
  • 1,243
  • 15
  • 30
1
2