I was observing the memory layout for different OpenCV applications (edge.cpp, for example) by looking at /proc/$PID/maps. As expected, there is a heap, and a stack as well as other expected segments. However, when I'm instrumenting these applications with my DebugTrace Pintool, the maps file doesn't show a heap. I was wondering how Pin changes the memory layout of applications and how could it possibly handle a large heap?

Pin user guide talks about how Pin and Pintools manage the memory they need. However, it doesn't explain how Pin changes the user program memory layout. Also, in this answer, Mackie points out that Pin changes memory layout but I was hoping for a more detailed answer.

I'm using Pin 3.7 under Fedora 24 with kernel 4.9 on an x86_64 machine.

We have migrated our previous server setup to Kubernetes and I am trying to set up some cron jobs to do some backups and consistency checks which I previously used to have on a separate virtual machine. As this is needed only once a day for a brief period of time, it is useless to have this as a VM and pay for the time is not doing anything.

What is the best practice to do that? Shall I just create docker image just to do this?

I have messages in my queue, which I have sent via the Contacts Tab, by clicking on the contact name (myself) and then clicking on the Send Email button, just to send myself a test email.

In my configuration email settings I am using PHP Mail.

If I have the mail set to 'Send Immediately' it works fine. I get my test email instantly. But if I have it set to queue the message goes into my spool/default folder but when the cron job triggers it is not sent.

Things I have tried so far....

I deleted the cache folder contents

I checked to see if I have two versions of this file: SendChannelBroadcastCommand.php - I don't, I just have this file once, in the ChannelBundle/Command folder. It is not also in the CoreBundle/Command folder (as suggested by a similar post)

I deleted all of the queued messages in the spool/default folder, then sent some more... which are now sitting in the folder just like before.

Things that might be a factor?

The permissions for the file SendChannelBroadcastCommand.php is set to 644. I don't know if this is correct but assume it is.

When I open the SendChannelBroadcastCommand.php file in dreamweaver, it flags it with lots of syntax errors. I don't really know enough about code to determine if these are genuine errors or if Dreamwaever is just being a little too sensitive. I also don't know if this file in included inside another one that'd make those errors disappear if Dreamweaver could see the complete end result, but I thought it was worth a mention.

Things that I'm sure are not a problem

I'm certain that the cron job is set up correctly. It is running. And I receive the email reports (although I've turned those back off now as I don't want a report every minute)

I've seen this problem mentioned a few times on other forums but none of the solutions are working for me.

My Mautic installation is 2.14.0
My PHP is 7.0.31
Installation was via Softaculous on cPanel on a dedicated server hosted with Namecheap

Thank you in advance for any suggestions that I can try to fix this issue.

Steve.

Oh, in case you're wondering... I am using PHP Mail as Mautic would not connect to Amazon SES. For that I get the following error (which my hosting company was unable to help me fix, so I'm trying PHP mail)

Connection could not be established with host email-smtp.us-east-1.amazonaws.com [Connection refused #111] Log data: ++ Starting Mautic\EmailBundle\Swiftmailer\Transport\AmazonTransport !! Connection could not be established with host email-smtp.us-east-1.amazonaws.com [Connection refused #111] (code: 0)
++ Starting Mautic\EmailBundle\Swiftmailer\Transport\AmazonTransport !! Connection could not be established with host email-smtp.us-east-1.amazonaws.com [Connection refused #111] (code: 0)

When I track all the local variable by print it, I just found that the:

((p1 >> 2) & m4) //line7

printed the value of '0x2222222'(seven '2' instead of eight '2').

This is so unexpected, the p1 prints '0x2aaaaaaa' and the m4 is '0x33333333', so it should be 0x22222222(eight '2;).
However, when I run this in ubuntu 16.04, everything is just as expected, for the ((p1 >> 2) & m4) prints '0x22222222':

Do you run this on your Mac having the same problem? Does anything different in macOS lead to this problem?

On the other hand, I've already got rid of another set of messages that also used to overwhelm the error log, which were related with samba. I resolved this issue by modifying its samba.conf file and properly setting the logging configuration (like this). As the message I'm trying to eliminate refers to domain, I suspect it might have something to do with samba auth.

P.S. Machine was set up by 3rd party; otherwise I'm know what I've configured to use domain and I wouldn't even be asking this question. :)

I need to run regularly several scripts and resend their output in a format of Prometheus metrics.

For the moment I use home-made solution on Flask with a background cron job, dump output into files, parse them and convert into .prom format, and then expose via NodeExporter.. bref.

That seems to be overkill and home-made for nothing.
I wonder if there is a standard solution, which could run scripts, parse their output and expose at /metrics or resend in Prometheus or Fluentd format?