C++ application crashes with atexit() error

We have an install application which makes use of MFC and written in c++, It crashes intermittently with the call stack pasted. This crash happens when this application is about to finish. We can see atexit() reference in the call stack with a static variable ‘svUniqueUpdates’ that is being used inside a function for some computation. Is this crash really caused by atexit() and how to fix it?

Call stack

0 Id: 3f30.8d0 Suspend: 1 Teb: 00000090bbdf7000 Unfrozen # Child-SP RetAddr : Args to Child : Call Site 00 00000090bc1ffba8 00007ffa7cc507b3 : 0000000000000000 00007ff61fec2370 0000b408eb7e3e32 00007ffa7fa05d78 : Install!TotalUpdCount’::2'::dynamic atexit destructor for ‘svUpdates” 01 00000090bc1ffbb0 00007ffa7cc4ce0b : 00000090bc1ffd00 00000090bc1ffc88 00000090bc1ffd20 00007ffa7cd25c80 : ucrtbase!::operator()+0xc3 02 00000090bc1ffc10 00007ffa7cc506e4 : 00000090bc1ffd08 00007ffa7cd25c80 0000000000000000 00000090bc1ffc78 : ucrtbase!__crt_seh_guarded_call::operator()<, & __ptr64, >+0x3b 03 00000090bc1ffc40 00007ffa7cc5bb69 : 00007ffa7cd260a8 00007ffa00000002 0000000000000002 00000090bc1ffc70 : ucrtbase!execute_onexit_table+0x34 04 00000090bc1ffc70 00007ffa7cc4f5ab : 0000000000000001 0000000000000000 000001f7ffffffff 00007ffa684431a8 : ucrtbase!::operator()+0x65 05 00000090bc1ffcb0 00007ffa7cc462ce : 0000000000000001 0000000000000000 0000000000000000 00000090bc1ffd00 : ucrtbase!__crt_seh_guarded_call::operator()<, & __ptr64, >+0x3b 06 00000090bc1ffce0 00007ff61fd110b0 : 0000000000000001 0000000000000000 0000000000000000 0000000000000000 : ucrtbase!common_exit+0x5e 07 00000090bc1ffd30 00007ffa7d628364 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : Install!__scrt_common_main_seh+0x16c 08 00000090bc1ffd70 00007ffa7fa0e851 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : kernel32!BaseThreadInitThunk+0x14 09 00000090bc1ffda0 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x21

only code using this static variable:

```TotalUpdCount(list<wchar_t *> &lvUpdates) {     list<wchar_t *>::iterator svListIter; map<wstring,int>::iterator svVecIter; static map<wstring,int> svUpdates; static bool svFirst=true;  if(svFirst) {     svUpdates.clear();     svFirstTime=false; } for (svListIter = lvUpdates.begin();     svListIter != lvUpdates.end();     svListIter++) {     wstring svTmpUpdate=*svListIter;     svVecIter = svUpdates.find(svTmpUpdate);     if (svVecIter == svUpdates.end())         svUpdates.insert(make_pair(svTmpUpdate, 1)); } nvTotalUpdatesCnt = static_cast<int>(svUpdates.size()); 
  

SNMP service crashes every 72 hours – Kernel error

My server has a SNMP service (NET-SNMP) started with systemd. It runs well, except that every 3 days, at 3:00 PM, the service crashes.

I notice in the log that there is a reload of the agent. Then it crashes.

What causes the reload? Why the snmptrapd.service becomes inactive ?

Here is the log from /var/log/messages. The machine is a SLES 12.

2019-01-16T15:00:01.261639+01:00 myserver systemd[1]: Reloading LSB: Net-SNMP agent. 2019-01-16T15:00:01.270020+01:00 myserver kernel: [4192068.189683] floppy: error -5 while reading block 0 2019-01-16T15:00:01.270032+01:00 myserver kernel: [4220891.794129] snmpd[37667]: segfault at 0 ip 00007ff808105224 sp 00007ffc65011420 error 4 in libnetsnmpmibs.so.30.0.2[7ff80806a000+180000] 2019-01-16T15:00:01.271016+01:00 myserver snmpd[49093]: Reload service snmpd:..done 2019-01-16T15:00:01.282082+01:00 myserver systemd[1]: Reloaded LSB: Net-SNMP agent. 2019-01-16T15:00:01.282290+01:00 myserver snmpd[49101]: Shutting down snmpd:..done 2019-01-16T15:00:01.291082+01:00 myserver systemd[1]: Unit snmptrapd.service cannot be reloaded because it is inactive. 2019-01-16T15:00:01.481446+01:00 myserver systemd[1]: Reloading System Logging Service. 

The last log line from the net-snmpd.log file, right before the crash is: Reconfiguring daemon

Ubuntu server crashes while uploading large files

Trying to repurpose my old Dell Optiplex 745 as a media sever. Loaded Ubuntu 16.04.5 LTS, set up drives in Ext 4 with snapRAID and SAMBA. I’m trying to upload movie and TV files from my newer PC running Windows 10. The server crashes on upload of every 3rd to 8th file. I get different messages. Some start with “BUG: unable to handle kernel NULL pointer dereference at 00000000000001”. Some with “general protection fault :0000 [#1] SMP”. Sometimes the server PC just spontaneously reboots. The files are 1 – 5 GB in length and transfer very fast (approx. 100 mb/sec), when they work. I’ve tried it with the Windows firewall on and off. I’ve tried it with 8GB of memory and with 2 DIMMs removed to give 4GB. I’ve tried it with FTP using Filezilla in Windows, and by dragging and dropping with file manager. None of it makes any difference. I have 3 dmesg log files from 3 crashes, which can be provided if you can tell me how to attach them. They seem to long to just paste here. I’d appreciate it if anyone can help.

Openshot crashes on startup

Using Debian testing

When I try to start Openshot it crashes. I have tried three ways to install it: Regular packages, Flatpak and AppImage, but I get the same result from all of them.

Error message:

 main_window:ERROR Unhandled crash detected... will attempt to recover backup project: /home/me/.openshot_qt/backup      ui_util:WARNING Icon theme media-playback-start not found. Will use backup icon.  main_window:INFO updateStatusChanged          app:INFO Process command-line arguments: ['/tmp/.mount_0ATLjX/usr/bin/launch']  main_window:INFO recover_backup  main_window:INFO Recovering backup file: /home/me/.openshot_qt/backup/backup.osp project_data:INFO Setting default profile to HD 720p 30 fps project_data:INFO 2.1.0 project_data:INFO 0.1.1 terminate called after throwing an instance of 'openshot::InvalidFile'   what():  File could not be opened. Caught signal 6 (SIGABRT) ---- Unhandled Exception: Stack Trace ----   /lib/x86_64-linux-gnu/libc.so.6 ( abort                                     + 0x121 )  [0x7f063e71d535]   /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (                                           + 0x8c943)  [0x7f063d0a5943]   /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (                                           + 0x92896)  [0x7f063d0ab896]   /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (                                           + 0x91989)  [0x7f063d0aa989]   /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ( __gxx_personality_v0                      + 0x2c5 )  [0x7f063d0ab2d5]   /lib/x86_64-linux-gnu/libgcc_s.so.1 (                                           + 0x10d73)  [0x7f063e8f2d73]   /lib/x86_64-linux-gnu/libgcc_s.so.1 ( _Unwind_Resume                            + 0x125 )  [0x7f063e8f35f5]   /tmp/.mount_0ATLjX/usr/bin/libopenshot.so.16 ( openshot::QtImageReader::QtImageReader(std::string)  + 0x8b  )  [0x7f062d96456b]   /tmp/.mount_0ATLjX/usr/bin/libopenshot.so.16 ( openshot::Mask::SetJsonValue(Json::Value)  + 0x37b )  [0x7f062d91b97b]   /tmp/.mount_0ATLjX/usr/bin/libopenshot.so.16 ( openshot::Timeline::SetJsonValue(Json::Value)  + 0x269 )  [0x7f062d973819]   /tmp/.mount_0ATLjX/usr/bin/libopenshot.so.16 ( openshot::Timeline::SetJson(std::string)  + 0x99  )  [0x7f062d965949]   /tmp/.mount_0ATLjX/usr/bin/_openshot.so (                                           + 0x8aa29)  [0x7f062dc3fa29]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x654b)  [0x7f063eb08fbb]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalCodeEx                         + 0x886 )  [0x7f063eb0c976]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6742)  [0x7f063eb091b2]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6c5c)  [0x7f063eb096cc]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6c5c)  [0x7f063eb096cc]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6c5c)  [0x7f063eb096cc]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6c5c)  [0x7f063eb096cc]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalCodeEx                         + 0x886 )  [0x7f063eb0c976]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6742)  [0x7f063eb091b2]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalCodeEx                         + 0x886 )  [0x7f063eb0c976]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 (                                           + 0x209fa6)  [0x7f063eb0cfa6]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyObject_Call                             + 0x68  )  [0x7f063ea6e758]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 (                                           + 0x15159d)  [0x7f063ea5459d]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyObject_Call                             + 0x68  )  [0x7f063ea6e758]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_CallObjectWithKeywords             + 0x47  )  [0x7f063eae49b7]   /tmp/.mount_0ATLjX/usr/bin/PyQt5.QtCore.so ( PyQtSlot::invoke(_object*, _object*) const  + 0x50  )  [0x7f063da48840]   /tmp/.mount_0ATLjX/usr/bin/PyQt5.QtCore.so ( PyQtSlot::invoke(void**, _object*, void*) const  + 0xcf  )  [0x7f063da48caf]   /tmp/.mount_0ATLjX/usr/bin/PyQt5.QtCore.so ( PyQtSlotProxy::unislot(void**)            + 0x62  )  [0x7f063da53762]   /tmp/.mount_0ATLjX/usr/bin/PyQt5.QtCore.so ( PyQtSlotProxy::qt_metacall(QMetaObject::Call, int, void**)  + 0x57  )  [0x7f063da540d7]   /tmp/.mount_0ATLjX/usr/bin/libQt5Core.so.5 ( QMetaObject::activate(QObject*, int, int, void**)  + 0x8ad )  [0x7f063d45136d]   /tmp/.mount_0ATLjX/usr/bin/PyQt5.QtCore.so (                                           + 0x1ed9c9)  [0x7f063da559c9]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6d79)  [0x7f063eb097e9]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalCodeEx                         + 0x886 )  [0x7f063eb0c976]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 (                                           + 0x209fa6)  [0x7f063eb0cfa6]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyObject_Call                             + 0x68  )  [0x7f063ea6e758]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 (                                           + 0x15159d)  [0x7f063ea5459d]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyObject_Call                             + 0x68  )  [0x7f063ea6e758]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 (                                           + 0xcabf9)  [0x7f063e9cdbf9]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 (                                           + 0x174636)  [0x7f063ea77636]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyObject_Call                             + 0x68  )  [0x7f063ea6e758]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x44cd)  [0x7f063eb06f3d]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6c5c)  [0x7f063eb096cc]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalCodeEx                         + 0x886 )  [0x7f063eb0c976]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalCode                           + 0x3b  )  [0x7f063eb0d10b]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 (                                           + 0x24d6ed)  [0x7f063eb506ed]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalFrameEx                        + 0x6d79)  [0x7f063eb097e9]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalCodeEx                         + 0x886 )  [0x7f063eb0c976]   /tmp/.mount_0ATLjX/usr/bin/libpython3.4m.so.1.0 ( PyEval_EvalCode                           + 0x3b  )  [0x7f063eb0d10b]   /tmp/.mount_0ATLjX/usr/bin/launch ( main                                      + 0x777 )  [0x404117]   /lib/x86_64-linux-gnu/libc.so.6 ( __libc_start_main                         + 0xeb  )  [0x7f063e71f09b]   /tmp/.mount_0ATLjX/usr/bin/launch (                                                   )  [0x404425] ---- End of Stack Trace ---- 

What should I do to make it work? Or should I file a bug report?

Remote Desktop 10.2.3 Database Creation Error; 10.2.1 runs fine; 10.2.2 crashes: how to find actual cause(s)?

What would be good steps to find the cause of the below errors?

I get this error when running Microsoft Remote Desktop 10.2.3 or higher on MacOS High Sierra: enter image description here

Database Creation Error  "An error occurred during persistent store migration.  [Domain: NSCocoaErrorDomain, Code: 134110]" 

I am stuck at 10.2.1 now (which cannot add user accounts and will eventually stop working), want to use the newer version, but cannot use intermediate 10.2.2 as it crashes with the below information that I repeatedly submitted with the “Problem Report for Microsoft Desktop”.

Manually migrating all the machine and user entries is really cumbersome: there are hundreds of them.

Information that might help:

  • where is the information on entries and users stored?
  • what format is that information stored?
  • are the tools for converting that information between various versions?
  • where are crash reports stored?

Crash report on 10.2.1: https://gist.github.com/jpluimers/851453d938a62ce45abd30fb929ae5e1

Sharing crashes in all apps

The sharing function in all apps crash on my phone. No matter what app I use, as long as I click on the share button, the app crashes and restarts before showing the list of apps I can share with.

My phone is a Huawei Honor 9 and the OS version is 8.0. I am an Android developer so I tried to get the exception from Android Studio:

E/AndroidRuntime: FATAL EXCEPTION: ModernAsyncTask #1 Process: com.google.android.apps.photos, PID: 19271 java.lang.RuntimeException: An error occurred while executing doInBackground()     at pu.done(PG:5)     at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)     at java.util.concurrent.FutureTask.setException(FutureTask.java:252)     at java.util.concurrent.FutureTask.run(FutureTask.java:271)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)     at java.util.concurrent.ThreadPoolExecutor$  Worker.run(ThreadPoolExecutor.java:636)     at java.lang.Thread.run(Thread.java:784)  Caused by: java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ApplicationInfo android.content.pm.ComponentInfo.applicationInfo' on a null object reference     at android.os.Parcel.readException(Parcel.java:1960)     at android.os.Parcel.readException(Parcel.java:1900)     at android.content.pm.IPackageManager$  Stub$  Proxy.queryIntentActivities(IPackageManager.java:3621)     at android.app.ApplicationPackageManager.queryIntentActivitiesAsUser(ApplicationPackageManager.java:937)     at android.app.ApplicationPackageManager.queryIntentActivities(ApplicationPackageManager.java:926)     at aham.d(PG:7)     at pi.d(PG:3)     at pi.b(PG:19)     at px.call(PG:5)     at java.util.concurrent.FutureTask.run(FutureTask.java:266)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)      at java.util.concurrent.ThreadPoolExecutor$  Worker.run(ThreadPoolExecutor.java:636)      at java.lang.Thread.run(Thread.java:784)  

It seems that this NullPointerException

java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ApplicationInfo android.content.pm.ComponentInfo.applicationInfo' on a null object reference 

is the cause to this problem.

I believe it’s not the app’s problem (in this case Google Photos) because it occurs in every app. So is it a system problem or is it caused by some other app I have installed? How can I find and uninstall that app if it’s the latter case?

Emergency: Ubuntu crashes on boot, no access to liveusb

I have no access to a means of reinstalling Ubuntu. I am currently at an airport on 20-hour layover. All I have on me is the computer ( a 2009 MacBook Pro with 2gb of RAM), and a screwdriver. Ubuntu is using Linux 4.15.0-43-generic.

The default options for booting all either lead to a crash screen I can’t post because my “reputation” on here isn’t high enough, or a frozen cursor. How do I get this to boot normally?

Last lines on the crashed log are 1.568945 ehci-pci 0000:00:04.1: Iraq 17, io mem 0x93389200

Update: Okay, it’s working again, and I have absolutely no idea what happened. I really need to switch back to OS X.

Amazon CloudWatch Agent crashes and restarts on Windows

After installing the Amazon CloudWatch Agent on Windows and starting the service, it repeatedly crashes and restarts.

In the Windows Event Log the following events occur with the crash:

Event ID 7031

Error

The Amazon CloudWatch Agent service terminated unexpectedly. It has done this X times.

And:

Event ID 7039

Warning

A service process other than the one launched by the Service Control Manager connected when starting the Amazon CloudWatch Agent service. The Service Control Manager launched process XXX and process XXX connected instead.

In the amazon-cloudwatch-agent.log file the last error is:

ec2tagger: Unable to initialize EC2 Instance Tags : +NoCredentialProviders: no valid providers in chain.