Re: sane doesnt work under red hat 6.1 (again)!

Vincent Parrilla (parrilla@ix.netcom.com)
Thu, 04 Nov 1999 10:48:42 -0800

--------------AA908C803AEBA6320693B300
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> Hi,
>
> try to find out where the segfault happens:
> gdb xscanimage
> r <enter>
> after the segfault:
> backtrace <enter>
>
> And send the output (should be less than 100 lines) to the mailling list.

Greetings, since I have the same problem as Luca, I did the above.
Here are the results (any clues?):

mtt2:parrilla % xscanimage
xscanimage
Segmentation fault

mtt2:parrilla % gdb xscanimage
GNU gdb 4.17.0.11 with Linux support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) r
Starting program: /usr/local/bin/xscanimage
access control disabled, clients can connect from any host
xhost: must be on local machine to enable or disable access control.

Program received signal SIGSEGV, Segmentation fault.
0x402e27be in chunk_free (ar_ptr=0x40372580, p=0x80ae310) at malloc.c:3030
malloc.c:3030: No such file or directory.
(gdb) backtrace
#0 0x402e27be in chunk_free (ar_ptr=0x40372580, p=0x80ae310) at malloc.c:3030
#1 0x402e2505 in __libc_free (mem=0x80ae318) at malloc.c:2932
#2 0x4040c146 in sanei_hp_free (ptr=0x80ae320) at hp-hpmem.c:133
#3 0x40410ab3 in sanei_hp_scsi_destroy (this=0x80ae320) at hp-scl.c:365
#4 0x4040b3aa in sanei_hp_device_new (newp=0xbfff96c0, devname=0xbfff9850 "/dev/sgd")
at hp-device.c:376
#5 0x404076de in hp_get_dev (devname=0xbfff9850 "/dev/sgd", devp=0x0) at hp.c:444
#6 0x40407732 in hp_attach (devname=0xbfff9850 "/dev/sgd") at hp.c:462
#7 0x40409982 in sanei_scsi_find_devices (findvendor=0x80a2438 "HP", findmodel=0x0,
findtype=0x0, findbus=-1, findchannel=-1, findid=-1, findlun=-1,
attach=0x40407710 <hp_attach>) at sanei_scsi.c:1586
#8 0x40408841 in sanei_config_attach_matching_devices (name=0xbfff9af0 "scsi HP",
attach=0x40407710 <hp_attach>) at sanei_config2.c:136
#9 0x40407a95 in hp_read_config () at hp.c:558
#10 0x40407bc9 in hp_update_devlist () at hp.c:599
#11 0x40407d2b in sane_hp_get_devices (device_list=0xbfffeb4c, local_only=0) at hp.c:650
#12 0x40015a9c in sane_dll_get_devices (device_list=0x805ed40, local_only=0)
at dll.c:507
#13 0x4001610f in sane_get_devices (dl=0x805ed40, local=0) at dll-s.c:15
#14 0x804e1da in init (argc=1, argv=0xbffffc44) at xscanimage.c:1653
#15 0x804e1fc in interface (argc=1, argv=0xbffffc44) at xscanimage.c:1661
#16 0x804e300 in main (argc=1, argv=0xbffffc44) at xscanimage.c:1729
#17 0x402a1cb3 in __libc_start_main (main=0x804e2c4 <main>, argc=1, argv=0xbffffc44,
init=0x804b670 <_init>, fini=0x805480c <_fini>, rtld_fini=0x4000a350 <_dl_fini>,
stack_end=0xbffffc3c) at ../sysdeps/generic/libc-start.c:78
(gdb) quit
The program is running. Exit anyway? (y or n) y
mtt2:parrilla %

> ===================+==================================
> Vincent Parrilla | (650)625-2174 Work
> | (415)265-2123 Cell
> ===================+==================================
>

--------------AA908C803AEBA6320693B300
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

Hi,

try to find out where the segfault happens:
gdb xscanimage
r <enter>
after the segfault:
backtrace <enter>

And send the output (should be less than 100 lines) to the mailling list.

Greetings,   since I have the same problem as Luca, I did the above.
Here are the results (any clues?):
 
 
 

mtt2:parrilla % xscanimage
xscanimage
Segmentation fault

mtt2:parrilla % gdb xscanimage
GNU gdb 4.17.0.11 with Linux support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) r
Starting program: /usr/local/bin/xscanimage
access control disabled, clients can connect from any host
xhost:  must be on local machine to enable or disable access control.

Program received signal SIGSEGV, Segmentation fault.
0x402e27be in chunk_free (ar_ptr=0x40372580, p=0x80ae310) at malloc.c:3030
malloc.c:3030: No such file or directory.
(gdb) backtrace
#0  0x402e27be in chunk_free (ar_ptr=0x40372580, p=0x80ae310) at malloc.c:3030
#1  0x402e2505 in __libc_free (mem=0x80ae318) at malloc.c:2932
#2  0x4040c146 in sanei_hp_free (ptr=0x80ae320) at hp-hpmem.c:133
#3  0x40410ab3 in sanei_hp_scsi_destroy (this=0x80ae320) at hp-scl.c:365
#4  0x4040b3aa in sanei_hp_device_new (newp=0xbfff96c0, devname=0xbfff9850 "/dev/sgd")
    at hp-device.c:376
#5  0x404076de in hp_get_dev (devname=0xbfff9850 "/dev/sgd", devp=0x0) at hp.c:444
#6  0x40407732 in hp_attach (devname=0xbfff9850 "/dev/sgd") at hp.c:462
#7  0x40409982 in sanei_scsi_find_devices (findvendor=0x80a2438 "HP", findmodel=0x0,
    findtype=0x0, findbus=-1, findchannel=-1, findid=-1, findlun=-1,
    attach=0x40407710 <hp_attach>) at sanei_scsi.c:1586
#8  0x40408841 in sanei_config_attach_matching_devices (name=0xbfff9af0 "scsi HP",
    attach=0x40407710 <hp_attach>) at sanei_config2.c:136
#9  0x40407a95 in hp_read_config () at hp.c:558
#10 0x40407bc9 in hp_update_devlist () at hp.c:599
#11 0x40407d2b in sane_hp_get_devices (device_list=0xbfffeb4c, local_only=0) at hp.c:650
#12 0x40015a9c in sane_dll_get_devices (device_list=0x805ed40, local_only=0)
    at dll.c:507
#13 0x4001610f in sane_get_devices (dl=0x805ed40, local=0) at dll-s.c:15
#14 0x804e1da in init (argc=1, argv=0xbffffc44) at xscanimage.c:1653
#15 0x804e1fc in interface (argc=1, argv=0xbffffc44) at xscanimage.c:1661
#16 0x804e300 in main (argc=1, argv=0xbffffc44) at xscanimage.c:1729
#17 0x402a1cb3 in __libc_start_main (main=0x804e2c4 <main>, argc=1, argv=0xbffffc44,
    init=0x804b670 <_init>, fini=0x805480c <_fini>, rtld_fini=0x4000a350 <_dl_fini>,
    stack_end=0xbffffc3c) at ../sysdeps/generic/libc-start.c:78
(gdb) quit
The program is running.  Exit anyway? (y or n) y
mtt2:parrilla %
 
 


===================+==================================
  Vincent Parrilla | (650)625-2174 Work
                   | (415)265-2123 Cell
===================+==================================

--------------AA908C803AEBA6320693B300--

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com