[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
segfault
From: Peter Jay Salzman ####@####.#### Date: 30 Sep 2001 17:44:47 -0000 Message-Id: <20010930104418.A21670@dirac.org> dear primax, playing around with the driver resulted in a segfault: # ./primax_scan -C 0 -S 600 Segmentation fault (core dumped) here's the backtrace: (gdb) bt #0 0x401042b7 in malloc () from /lib/libc.so.6 #1 0x40103e44 in malloc () from /lib/libc.so.6 #2 0x4004e7fe in _TIFFmalloc () from /usr/lib/libtiff.so.3 #3 0x4004f31b in TIFFWriteRawTile () from /usr/lib/libtiff.so.3 #4 0x4004f42a in TIFFWriteCheck () from /usr/lib/libtiff.so.3 #5 0x4004ea6e in TIFFWriteScanline () from /usr/lib/libtiff.so.3 #6 0x80499ef in read_scan_data (image=0x804d8c0) at primax_scan.c:368 #7 0x804a0d5 in scan (image=0x804d8c0, mode=20) at primax_scan.c:625 #8 0x804a9ed in main (argc=5, argv=0xbffffa44) at primax_scan.c:942 here's the offending line: (gdb) fr 6 #6 0x80499ef in read_scan_data (image=0x804d8c0) at primax_scan.c:368 368 TIFFWriteScanline(tiffile,tiffdata + read_ptr * total_width, y , 0); variable info: (gdb) ptype tiffile type = struct tiff { <incomplete type> } * (gdb) ptype tiffdata type = unsigned char * (gdb) ptype read_ptr type = int (gdb) ptype total_width type = int (gdb) ptype y type = int (gdb) print tiffile $1 = (TIFF *) 0x807c4c0 (gdb) print tiffdata $2 = (unsigned char *) 0x8072558 '\177' <repeats 200 times>... (gdb) print read_ptr $3 = 0 (gdb) print total_width $4 = 1275 (gdb) print y $5 = 0 if i can be of more help, let me know. pete -- "You may not use the Software in connection with any site that disparages Microsoft, MSN, MSNBC, Expedia, or their products or services ..." -- Clause from license for FrontPage 2002 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |