From: Wesley P. <pa...@ya...> - 2011-07-12 10:03:26
|
Hi Stef, Thanks for your answer. I'm aware of malloc and i'm using it more than is good for me :-) However, i don't understand how i can get a malloc error from a function that only uses a return;. For your information: "simread" is the name of my program, because when i started it was used to ... well ... read sim cards :-) The FUSE calls have been named with a scfs_ prefix (SmartCardFS), so scfs_read, scfs_readdir, etc. They use memory structures filled by the rest of the program. Best regards, Wesley --- On Tue, 7/12/11, Stef Bon <st...@gm...> wrote: > From: Stef Bon <st...@gm...> > Subject: Re: [fuse-devel] Understanding debug output > To: "Wesley PA4WDH" <pa...@ya...> > Cc: fus...@li... > Date: Tuesday, July 12, 2011, 11:49 AM > Hi Wesley, > > the init function is always called first, before any other > call. See: > > http://fuse.sourceforge.net/doxygen/structfuse__lowlevel__ops.html#b6fa0b9edb5b002cd1502c969c887329 > > so yes it's processing your init function. > > About the malloc function, this has anything to dio with > memory > allocation. Every program needs this. > So you're program is using this also. > > If you want to have more debug info, build in some > functions in your fs like: > > syslog(LOG_DEBUG, "message....") > > the syntax is simular like that of sprintf. > > Is your fs sot somehwere calling simread?? it should. > Somewhere in main? > > Stef > > 2011/7/12 Wesley PA4WDH <pa...@ya...>: > > Hi All, > > > > I got my FS to run in debug mode, but now i don't > really understand the debug output :-) > > > > The output (just before a it exist unexpectedly) is: > > FUSE library version: 2.8.5 > > nullpath_ok: 0 > > unique: 1, opcode: INIT (26), nodeid: 0, insize: 56 > > simread: malloc.c:3097: sYSMALLOc: Assertion `(old_top > == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * > 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) > && old_size == 0) || ((unsigned long) (old_size) > >= (unsigned long)((((__builtin_offsetof (struct > malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) > & ~((2 * (sizeof(size_t))) - 1))) && > ((old_top)->size & 0x1) && ((unsigned > long)old_end & pagemask) == 0)' failed. > > Aborted > > > > Does "opcode: INIT" mean it's running my init function > ? > > What i don't really understand is the malloc error, > because my init function does not use malloc: > > > > void *scfs_init(struct fuse_conn_info *conn) > > { > > return NULL; > > } > > > > Do you have any clues ? > > > > Thanks in advance. > > > > Best regards, > > Wesley > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is > seriously valuable. > > Why? It contains a definitive record of application > performance, security > > threats, fraudulent activity, and more. Splunk takes > this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > fuse-devel mailing list > > fus...@li... > > https://lists.sourceforge.net/lists/listinfo/fuse-devel > > > |