Bug 8662

Summary: animata crashes on startup
Product: Mageia Reporter: Vladimir Gurevich <mageia>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec, fundawang, marja11, nic, richard.j.walker
Version: CauldronKeywords: PATCH
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: animata CVE:
Status comment:

Description Vladimir Gurevich 2013-01-11 15:00:43 CET
animata seems to always crash on startup with a segmentation fault.

GDB backtrace shows an infinite recursion:

Starting program: /usr/bin/animata 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x0000000000433775 in Flu_Tree_Browser::selection_color (this=0x68ba60, c=15)
    at src/libs/FLU/Flu_Tree_Browser.h:492
492         { selection_color( (Fl_Color)c ); }
(gdb) bt
#0  0x0000000000433775 in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#1  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#2  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#3  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#4  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#5  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#6  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#7  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#8  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#9  0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#10 0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492
#11 0x000000000043377a in Flu_Tree_Browser::selection_color (this=0x68ba60, 
    c=15) at src/libs/FLU/Flu_Tree_Browser.h:492

... ad infinitum

Here is where it comes from (if you put a breakpoint on the offending line):

(gdb) b 492
Breakpoint 1 at 0x433769: file src/libs/FLU/Flu_Tree_Browser.h, line 492.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /usr/bin/animata 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Breakpoint 1, Flu_Tree_Browser::selection_color (this=0x68ba60, c=15)
    at src/libs/FLU/Flu_Tree_Browser.h:492
492         { selection_color( (Fl_Color)c ); }
(gdb) bt
#0  Flu_Tree_Browser::selection_color (this=0x68ba60, c=15)
    at src/libs/FLU/Flu_Tree_Browser.h:492
#1  0x0000000000435822 in Flu_Tree_Browser::Flu_Tree_Browser (this=0x68ba60, 
    x=640, y=20, w=215, h=501, l=0x456344 "layers")
    at src/libs/FLU/Flu_Tree_Browser.cpp:725
#2  0x0000000000431879 in AnimataUI::AnimataUI (this=0x67c600)
    at src/animataUI.cpp:1400
#3  0x000000000040ab50 in main (argc=1, argv=0x7fffffffdb78)
    at src/animata.cpp:1339
(gdb)
Manuel Hiebel 2013-01-11 22:59:34 CET

CC: (none) => dmorganec, fundawang
Source RPM: (none) => animata

Comment 1 Richard Walker 2014-10-19 18:05:31 CEST
This looks very much like Bug 4365 against MGA2, but the same symptoms apply to MGA3 and MGA4.

CC: (none) => richard.j.walker

Comment 2 Nic Baxter 2016-01-12 09:08:04 CET
The original project is now obsolete. It was carried over from Mandriva using https://code.google.com/p/animata/. Last change was Dec 2009.

I downloaded the source from https://github.com/BruceJawn/animata
and built it. It runs. I will try to build the rpm.

Nic

CC: (none) => nic

Comment 3 Nic Baxter 2016-01-12 10:02:49 CET
OK here is my first attempt at build a srpm. I would appreciate comments on how I can improve the spec file.
http://nicbaxter.com.au/files/animata-master-4.mga5.src.rpm

Cheers

Nic
Comment 4 Samuel Verschelde 2016-10-15 21:38:13 CEST
Thanks Nic for the SRPM attempt. Sorry that no one noticed it and answered. Assigning to animata maintainer Shlomi Fish.

Assignee: bugsquad => shlomif
Keywords: (none) => PATCH

Comment 5 Shlomi Fish 2016-10-16 10:33:35 CEST
Hi Nic!

Some comments on your SRPM:

1. It contains some trailing whitespace - http://perl-begin.org/tutorials/bad-elements/#trailing-whitespace .

2. "master" is not a good version. Please change it to "004" or "005" with the right "Release" stuff.

3. shlomif@telaviv1:~/progs/Rpms$ rpmlint ~/animata-master-4.mga5.src.rpm 
animata.src: W: strange-permission animata-master.zip 0640L

Please fix it .

4. a .tar.gz is preferable over a .zip if possible.
Comment 6 Marja Van Waes 2021-09-07 22:21:04 CEST
This report saw no action since almost 5 years ago, therefore closing as OLD

Feel free to reopen if it is still valid in current cauldron or Mageia 8

Assignee: shlomif => bugsquad
Resolution: (none) => OLD
Status: NEW => RESOLVED
CC: (none) => marja11