Menu

#96 FXFileDialog crash

swbug
open
nobody
5
2007-08-16
2007-08-16
JX
No

FOX-1.6.29 built using Cygwin.

When constructing an FXFileDialog instance, the program crashes. This behaviour can be seen with Adie when doing "Save As..."

The crash seems to be in FXFileList::scan(). I have had a lot of trouble narrowing it down to here because the stack is getting corrupted, so I can't just GDB to get the backtrace.

Discussion

  • JX

    JX - 2007-08-16

    Logged In: YES
    user_id=729125
    Originator: YES

    It appears to be crashing in FXFileList::listItems().

    #ifndef WIN32
    #if defined(__LP64__) || defined(_LP64) || (_MIPS_SZLONG == 64) || (__WORDSIZE == 64)
    item->label.format("%s\t%s\t%ld\t%s\t%s\t%s\t%s\t%s",name.text(),extension.text(),item->size,mod.text(),usrid.text(),grpid.text(),atts.text(),linkname.text());
    #else
    item->label.format("%s\t%s\t%lld\t%s\t%s\t%s\t%s\t%s",name.text(),extension.text(),item->size,mod.text(),usrid.text(),grpid.text(),atts.text(),linkname.text());
    #endif
    #else
    item->label.format("%s\t%s\t%I64u\t%s\t%s\t%s\t%s",name.text(),extension.text(),item->size,mod.text(),usrid.text(),grpid.text(),atts.text());
    #endif

    The last of the three item->label.format() options (for WIN32) appears to be crashing. Investigation is ongoing.

     
  • JX

    JX - 2007-08-16

    Logged In: YES
    user_id=729125
    Originator: YES

    Changing %I64u to %lld prevents the crash. Not sure if this is the correct solution, but it's got me working again. I hope this bug gets fixed in the next version. Crashes aren't good.

     

Log in to post a comment.

MongoDB Logo MongoDB