Menu

#53 Segmetation fault on Ubuntu 14.10

None
closed
nobody
None
general
5
2016-03-21
2015-03-16
Bartek
No

Hi

I downloaded and compiled the latest version of the source from your git - tag v2.0.1, and when I run the program it crashes almost immediately with a segmentation fault.

It does not happen every time but like every 3 or 4 launchings of the program and when it does not happen then everything seems to work fine.

As far as I've checked, this problem does not occur at tag v1.7.2 nor at the point of this commit:
[1c1118] update INSTALL file 2014-09-20 15:46:48.

I have Ubuntu 14.10, wxwidgets in version 3.0.2-1.trusty.

From gdb:

(gdb) run
Starting program: /usr/local/bin/eviacam
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe2a2f700 (LWP 12745)]
[New Thread 0x7fffe0172700 (LWP 12746)]
[New Thread 0x7fffdf971700 (LWP 12747)]
[New Thread 0x7fffdf170700 (LWP 12748)]
[New Thread 0x7fffddfd8700 (LWP 12765)]
[New Thread 0x7fffdd7d7700 (LWP 12766)]
[New Thread 0x7fffdcfd6700 (LWP 12767)]
[New Thread 0x7fffc7fff700 (LWP 12769)]
[New Thread 0x7fffc77fe700 (LWP 12770)]
[Thread 0x7fffdcfd6700 (LWP 12767) exited]

(eviacam:12742): GLib-CRITICAL **: Source ID 70 was not found when attempting to remove it
[Thread 0x7fffc77fe700 (LWP 12770) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7121fea in wxSocket_Input (condition=G_IO_IN, data=0x7fffb4004178)
at ../src/gtk/sockgtk.cpp:28
28 ../src/gtk/sockgtk.cpp: No such file or directory.

From traceback:

ASSERT INFO:
../src/unix/sockunix.cpp(143): assert "m_fd != INVALID_SOCKET" failed in OnReadWaiting(): invalid socket ready for reading?

BACKTRACE:
[1] g_main_context_dispatch
[2] g_main_loop_run
[3] gtk_main
[4] wxGUIEventLoop::DoRun()
[5] wxEventLoopBase::Run()
[6] wxAppConsoleBase::MainLoop()
[7] wxEntry(int&, wchar_t**)
[8] main
[9] __libc_start_main
[10] _start

Regards
Bartek

Related

Commit: [1c1118]

Discussion

  • Cesar Mauri-Loba

    Thanks for your detailed bug report. It looks as if this crash has something to do with sockets. Thus, it most likely is related with a new feature which checks for updates on startup automatically (added after the commits you mention). Try one of these and let us know:

    • Disabling checking for updates automatically (change checkUpdatesAtStartup=1 to checkUpdatesAtStartup=0 in file $HOME/.eviacam)
    • Or checking out and compiling commit c9b785
     
  • Bartek

    Bartek - 2015-03-16

    The first solution worked. At least about 10 trials and no fail

    Thanks!

     
  • Cesar Mauri-Loba

    Since 8bb818d8f2e1ff0df8060db6d6ad32cee8057ba2 checking for updates is disabled by default on linux.

     
  • Cesar Mauri-Loba

    • status: open --> closed
    • Milestones: -->
     

Log in to post a comment.