Package: fatsort Version: 0.9.10-1 Severity: important fatsort segfaults while trying to sort. According to fsck.vfat (post-crash), the filesystem is clean. Restarting fatsort results in the same crash. So it looks like it crashes before writing anything, or at least before changing anything.
I've attached a backtrace of the crash (made with a rebuild fatsort with noopt and nostrip). You can see it tries to access tmp->lde, while tmp is a null pointer. If needed, I can give you an image of the partition (8 gigabyte). (gdb) run /dev/sdb Starting program: /usr/bin/fatsort /dev/sdb FATSort Utility 0.9.10 by Boris Leidner <fatsort(at)formenos.de> File system: FAT32. Sorting directory / Program received signal SIGSEGV, Segmentation fault. 0x000000000040440a in writeClusterChain (fd=0x608010, bs=0x7fffffffe470, list=0x609280, chain=0x6092c0) at sort.c:459 459 if (fs_write(tmp->lde, DIR_ENTRY_SIZE, 1, fd)<1) { (gdb) bt full #0 0x000000000040440a in writeClusterChain (fd=0x608010, bs=0x7fffffffe470, list=0x609280, chain=0x6092c0) at sort.c:459 i = 1 entries = 16 MaxEntries = 128 tmp = 0x0 p = 0x609be0 empty = '\0' <repeats 31 times> __PRETTY_FUNCTION__ = "writeClusterChain" __func__ = "writeClusterChain" #1 0x0000000000404c4d in sortClusterChain (fd=0x608010, bs=0x7fffffffe470, cluster=2, path=0x406943 "/") at sort.c:640 clen = 9 value = 0 c = 32 ClusterChain = 0x609260 newpath = '\0' <repeats 512 times> list = 0x609280 p = 0x1e724200608010 __PRETTY_FUNCTION__ = "sortClusterChain" __func__ = "sortClusterChain" #2 0x00000000004049e2 in sort_fs (filename=0x7fffffffe9c2 "/dev/sdb") at sort.c:586 fd = 0x608010 rfd = 5 bs = {BS_JmpBoot = "\353X\220", BS_OEMName = "MSDOS5.0", BS_BytesPerSec = 512, BS_SecPerClus = 8 '\b', BS_RsvdSecCnt = 38, BS_NumFATs = 2 '\2', BS_RootEntCnt = 0, BS_TotSec16 = 0, BS_Media = 248 '\370', BS_FATSz16 = 0, BS_SecPerTrk = 63, BS_NumHeads = 255, BS_HiddSec = 0, BS_TotSec32 = 15993856, FATxx = {FAT12_16 = { BS_DrvNum = 229 '\345', BS_Reserved = 60 '<', BS_BootSig = 0 '\0', BS_VolID = 0, BS_VolLab = "\0\2\0\0\0\1\0\6\0\0", BS_FilSysType = "\0\0\0\0\0\0\0", unused = "\0\0\0\0)\227\245\317\24NO NAME FAT32 3ɎѼ\364{\216\301\216ٽ\0|\210n\2\2...@\264\b\315\23s\5\271\377\377\212\361f\17\266\306@f\17\266р\342?\367\342\206\315\300\355\6Af\17\267\311f\367\341f\211F\370\203~\26\0u8\203~*\0w2f\213F\34f\203\300\f\273\0\200\271\1\0\350+\0\351H\3\240\372}\264}\213\360\254\204\300t\27<\377t\t\264\16\273\a\0\315\20\353\356\240\373}\353\345\240\371}\353\340\230\315\26\315\31f`f;F\370\17\202J\0fj\0fP\6Sfh\20\0\1\0\200~\2\0\17\205 \0\264a\273\252u\2...@\315\23\17\202\34\0\201\373u\252\17\205\24\0\366\301\1\17\204\r\0\376f\2\264b\212v@\213\364\315\23\260\371fxfxfxfx\353*f3\322f\17\267n\30f\367\361\376\302\212\312f\213\320f\301\352\20\367v\32\206...@\212\350\300\344\6\n̸\1\2\315\23fa\17\202t\377\201\303\0\2f@I\17\205q\377\303NTLDR ", '\0' <repeats 49 times>, "\r\nRemove disks or other media.\377"...}, FAT32 = {BS_FATSz32 = 15589, BS_ExtFlags = 0, BS_FSVer = 0, BS_RootClus = 2, BS_FSInfo = 1, BS_BkBootSec = 6, BS_Reserved = '\0' <repeats 11 times>, BS_DrvNum = 0 '\0', BS_Reserved1 = 0 '\0', BS_BootSig = 41 ')', BS_VolID = 349152663, BS_VolLab = "NO NAME ", BS_FilSysType = "FAT32 ", unused = "3ɎѼ\364{\216\301\216ٽ\0|\210n\2\2...@\264\b\315\23s\5\271\377\377\212\361f\17\266\306@f\17\266р\342?\367\342\206\315\300\355\6Af\17\267\311f\367\341f\211F\370\203~\26\0u8\203~*\0w2f\213F\34f\203\300\f\273\0\200\271\1\0\350+\0\351H\3\240\372}\264}\213\360\254\204\300t\27<\377t\t\264\16\273\a\0\315\20\353\356\240\373}\353\345\240\371}\353\340\230\315\26\315\31f`f;F\370\17\202J\0fj\0fP\6Sfh\20\0\1\0\200~\2\0\17\205 \0\264a\273\252u\2...@\315\23\17\202\34\0\201\373u\252\17\205\24\0\366\301\1\17\204\r\0\376f\2\264b\212v@\213\364\315\23\260\371fxfxfxfx\353*f3\322f\17\267n\30f\367\361\376\302\212\312f\213\320f\301\352\20\367v\32\206...@\212\350\300\344\6\n̸\1\2\315\23fa\17\202t\377\201\303\0\2f@I\17\205q\377\303NTLDR ", '\0' <repeats 49 times>, "\r\nRemove disks or other media.\377"...}}, BS_EndOfBS = 43605} FATType = 32 ret = 0 __PRETTY_FUNCTION__ = "sort_fs" __func__ = "sort_fs" #3 0x0000000000402c49 in main (argc=2, argv=0x7fffffffe7a8) at fatsort.c:213 filename = 0x7fffffffe9c2 "/dev/sdb" __func__ = "main" -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores) Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages fatsort depends on: ii libc6 2.9-25 GNU C Library: Shared libraries fatsort recommends no packages. fatsort suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org