Bug 112739

Summary: nessus -T html_graph segfaults on x86_64
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Michal Marek <mmarek>
Component: OtherAssignee: Marian Jancar <mjancar>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: ---   
Hardware: x86-64   
OS: All   
Whiteboard:
Found By: Component Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michal Marek 2005-08-24 15:18:06 UTC
Saving graphical html report (either from GUI or command line)
on SL10.0 beta2 on x86_64 crashes nessus. I'll be at work again
first next week on Monday, so if anyone wants to look at this:

$ gdb ./nessus/nessus
...
(gdb) set args -T html_graph -i /tmp/report.nbe -o /tmp/report.html
(gdb) r
Starting program: /home-nfs/mmarek/beta/nessus-core/BUILD/nessus-core-2.2.5/ness
us-core/nessus/nessus -T html_graph -i ~/tmp/nessus-core-2.2.5-2-report/report.n
be -o /tmp/xxx.html

Program received signal SIGSEGV, Segmentation fault.
0x0000000000455f00 in gdImageBoundsSafe (im=0x1e0, x=360, y=240) at gd.c:427
427             return (!(((y < 0) || (y >= im->sy)) ||
(gdb) bt
#0  0x0000000000455f00 in gdImageBoundsSafe (im=0x1e0, x=360, y=240)
    at gd.c:427
#1  0x00000000004556bb in gdImageSetPixel (im=0x1e0, x=360, y=240, 
    color=7198768) at gd.c:160
#2  0x00000000004559da in gdImageLine (im=0x1e0, x1=360, y1=240, x2=4464240, 
    y2=7, color=7198768) at gd.c:250
#3  0x0000000000441e75 in draw_3d_area (im=0x0, x1=0, x2=0, y0=10922, 
    y1=-1430450824, y2=0, xdepth=1, ydepth=7198704, clr=0, clrshd=0)
    at gdchart.c:239
#4  0x000000000042207a in html_make_index (hosts=0x6da140)
    at html_graph_output.c:1127
#5  0x00000000004228e3 in arglist_to_html_graph (hosts=0x6da140, 
    directory=0x6da090 "/tmp/xxx.html") at html_graph_output.c:1298
#6  0x0000000000454923 in main (argc=7, argv=0x7fffff922748) at nessus.c:1025
(gdb) p im->sy
Cannot access memory at address 0x1ec
Comment 2 Michal Marek 2005-08-29 09:40:14 UTC
fixed (see suse-dist).