Bug 5514 - torcs segfault
Summary: torcs segfault
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-04-20 17:27 CEST by claire robinson
Modified: 2012-04-24 19:30 CEST (History)
2 users (show)

See Also:
Source RPM: torcs
CVE:
Status comment:


Attachments
torcs gdb output (1.92 KB, text/plain)
2012-04-20 17:54 CEST, claire robinson
Details

Description claire robinson 2012-04-20 17:27:16 CEST
There is a segfault with torcs when choosing quick race > configure race >
accept but it isn't a regression.

/usr/games/torcs: line 53: 24727 Segmentation fault      $LIBDIR/torcs-bin -l
$LOCAL_CONF -L $LIBDIR -D $DATADIR $*

I'll install the debug packages and try to get a backtrace
Comment 1 claire robinson 2012-04-20 17:47:50 CEST
At the moment using torcs from updates_testing.

$ rpm -qa | grep torcs
torcs-robots-berniw-1.3.1-7.1.mga1
torcs-data-cars-extra-1.3.1-2.mga1
torcs-1.3.1-7.1.mga1
torcs-robots-olethros-1.3.1-7.1.mga1
torcs-debug-1.3.1-7.1.mga1
torcs-data-1.3.1-2.mga1
torcs-robots-bt-1.3.1-7.1.mga1


$ torcs -d
GNU gdb (GDB) 7.1-6.mga1 (Mageia release 1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-mageia-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/torcs/torcs-bin...Reading symbols from /usr/lib/debug/usr/lib/torcs/torcs-bin.debug...done.
done.
(gdb) Starting program: /usr/lib/torcs/torcs-bin -l /home/clairer/.torcs -L /usr/lib/torcs -D /usr/share/games/torcs
warning: no loadable sections found in added symbol-file /usr/lib/debug/usr/lib/libstdc++.so.6.0.14.debug
warning: no loadable sections found in added symbol-file /usr/lib/debug/lib/libgcc_s-4.5.2.so.1.debug
[Thread debugging using libthread_db enabled]
Visual Properties Report
------------------------
Compatibility mode, properties unknown.

Program received signal SIGSEGV, Segmentation fault.
GfParmGetStr (parmHandle=0x0, path=0xb7fb1da0 "Robots/index/0",
    key=0xb7faf1e6 "car name", deflt=0xb7faeece "") at params.cpp:1954
1954    params.cpp: No such file or directory.
        in params.cpp
(gdb) #0  GfParmGetStr (parmHandle=0x0, path=0xb7fb1da0 "Robots/index/0",
    key=0xb7faf1e6 "car name", deflt=0xb7faeece "") at params.cpp:1954
#1  0xb7fa9abe in RmDriversSelect (vs=0xb7be20b0) at driverselect.cpp:334
#2  0xb7bd95eb in reConfigRunState () at racemanmenu.cpp:159
#3  0xb7c0c0b0 in GfuiScreenActivate (screen=0x87204f0) at gui.cpp:490
#4  0xb7fa7c5c in rmtsDeactivate (screen=0x87204f0) at trackselect.cpp:81
#5  0xb7c0f23d in gfuiButtonAction (action=1) at guibutton.cpp:576
---Type <return> to continue, or q <return> to quit---#6  0xb7c0df8d in gfuiMouseAction (vaction=0x1) at guiobject.cpp:457
#7  0xb7c0b595 in gfuiMouse (button=0, state=1, x=214, y=429) at gui.cpp:422
#8  0xb7b96bc3 in processEventsAndTimeouts () at glut_event.c:472
#9  0xb7b97425 in glutMainLoop () at glut_event.c:1386
#10 0x08048c2c in main (argc=7, argv=0xbfffef24) at main.cpp:109
(gdb) quit
A debugging session is active.

        Inferior 1 [process 2207] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
Comment 2 claire robinson 2012-04-20 17:52:36 CEST
It quits by itself. Following the instructions of torcs -e instead..


$ cd /usr/share/games/torcs
$ export LD_LIBRARY_PATH=/usr/lib/torcs/lib:/usr/lib/torcs/lib:
$ gdb  /usr/lib/torcs/torcs-bin
Comment 3 claire robinson 2012-04-20 17:54:45 CEST
Created attachment 2052 [details]
torcs gdb output

Assignee: bugsquad => eeeemail

claire robinson 2012-04-20 18:05:02 CEST

Assignee: eeeemail => bugsquad

claire robinson 2012-04-20 18:11:16 CEST

Assignee: bugsquad => lists.jjorge

Comment 4 José Jorge 2012-04-22 23:13:56 CEST
torcs-1.3.1-7.2.mga1 fixes this bug, requiring torcs-robots-base.

Status: NEW => ASSIGNED
Assignee: lists.jjorge => qa-bugs

Comment 5 claire robinson 2012-04-24 12:39:45 CEST
Confirmed fixed i586. Thanks.
Comment 6 claire robinson 2012-04-24 13:27:08 CEST
Confirmed x86_64 too

Validated.

Advisory
-------------
This update to torcs corrects a segmentation fault when changing the default race settings.
-------------

SRPM:  torcs-1.3.1-7.2.mga1


Could sysadmin please push from core/updates_testing to core/updates

Thanks!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Hardware: i586 => All

Comment 7 Thomas Backlund 2012-04-24 19:30:14 CEST
Update pushed.

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.