Menu

#514 Segfault while selecting an entity

Next release
open-fixed
None
5
2015-04-24
2015-04-03
No

Hi,

I experience a segfault while selecting an entity.
I've launched librecad (built from latest git).

Please find attached:
- a minimal example to trigger the crash.
- the log of the gdb session

Steps to reproduce the crash:
1 - launch librecad
2 - load the attached file
3 - select (try to...) one of the non-straight line
4 - ... segfault

Regards

Jean-Luc

1 Attachments

Related

Bugs: #514

Discussion

  • Jean-Luc Coulon

    Jean-Luc Coulon - 2015-04-03

    gdb session

     
  • Jean-Luc Coulon

    Jean-Luc Coulon - 2015-04-04

    Hi,

    I tried a bisect.
    It is not so easy because there are other failures that I'm not sure they are related to this problem.

    It seems that the commit generating this is the following:

    [1] 29111 segmentation fault ./unix/librecad
    [jean-luc@tangerine] % git bisect bad /usr/local/src/git/librecad
    b849d7aa59443ece7d7c935490916ee6e308f69f is the first bad commit
    commit b849d7aa59443ece7d7c935490916ee6e308f69f
    Author: Dongxu Li dli@tamaggo.com
    Date: Tue Mar 31 20:34:11 2015 -0400

    RS_Vector: initializer list ctor
    

    :040000 040000 91918da68533880e061b0bf7af1270efb6607dcb ed3fddf2f5d2d8b0993555aef19bc26621d3eded M librecad

    Regards

    Jean-Luc

     
  • Dongxu Li

    Dongxu Li - 2015-04-04
    • status: open --> open-fixed
    • assigned_to: Dongxu Li
     
  • eslavko

    eslavko - 2015-04-23

    Sadly toady ppa version still have that crash...

    used on ubuntu 14.04

    Version: master
    SCM Revision: 2.0.7
    Compiler: GNU GCC 4.8.2
    Qt Version: 4.8.6
    Compiled on: Apr 23 2015
    Portions (c) 2011 by R. van Twisk
    Program Icons Supplied by
    Pablo: LibreCAD Argentine
    Splash and Logo supplied by
    Diego Daltom Designer

     
  • Dongxu Li

    Dongxu Li - 2015-04-23

    Can you build from git head?

    Launchpad has not being maintained for while, can you help?

     
    • Jean-Luc Coulon

      Jean-Luc Coulon - 2015-04-23

      Hi,

      For me [tm], the problem is fixed till you last fix.
      I have rebuilt it just now from git and it is fine also.

      Regards

      Jean-Luc

      2015-04-23 15:06 GMT+02:00 Dongxu Li dongxuli@users.sf.net:

      Can you build from git head?

      Launchpad has not being maintained for while, can you help?


      [bugs:#514] Segfault while selecting an entity

      Status: open-fixed
      Group: Next release
      Created: Fri Apr 03, 2015 07:31 PM UTC by Jean-Luc Coulon
      Last Updated: Thu Apr 23, 2015 07:43 AM UTC
      Owner: Dongxu Li

      Hi,

      I experience a segfault while selecting an entity.
      I've launched librecad (built from latest git).

      Please find attached:
      - a minimal example to trigger the crash.
      - the log of the gdb session

      Steps to reproduce the crash:
      1 - launch librecad
      2 - load the attached file
      3 - select (try to...) one of the non-straight line
      4 - ... segfault

      Regards

      Jean-Luc


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/librecad/bugs/514/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #514

  • eslavko

    eslavko - 2015-04-24

    Hello...

    From ppa at http://ppa.launchpad.net/librecad-dev/librecad-daily/ubuntu
    Version: master
    SCM Revision: 2.0.7
    Compiler: GNU GCC 4.8.2
    Qt Version: 4.8.6
    Compiled on: Apr 23 2015
    Portions (c) 2011 by R. van Twisk

    The program crashes on selecting curve.

    From git at https://github.com/LibreCAD/LibreCAD.git
    Version: master
    SCM Revision: 2.0.7-177-g0270726
    Compiler: GNU GCC 4.8.2
    Qt Version: 4.8.6
    Compiled on: Apr 24 2015

    On start of program the popupwindow shows up with that info:

    Cannot load library /home/slavko/xx/LibreCAD/unix/resources/plugins/libplotequation.so: (/home/slavko/xx/LibreCAD/unix/resources/plugins/libplotequation.so: undefined symbol: _ZTVN2mu6ParserE)

    ...but program starts and doesn't crash on selecting curve.

    so the ppa and git version clearly isn't same.

    Added console output for git version
    ./librecad
    RS_DEBUG::setLevel(3)
    RS_DEBUG: Critical
    RS_DEBUG: Errors
    RS_DEBUG: Warnings
    void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Snap Selection" under id 62

     

    Last edit: eslavko 2015-04-24

Log in to post a comment.