Subject: | Does not print last frame |
$ cat myfile.pl
sub xyz{
sleep;
return;
};
print "$$\n";
xyz();
$ perl myfile.pl
29900
$ sudo perl-stacktrace 29900
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffd45bb000
0x00007fcfe9824030 in __pause_nocancel () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
myfile.pl:6
it prints "myfile.pl:6", but what about "myfile.pl:2" where "sleep" call is located?