| Anonymous | Login | Signup for a new account | 2010-09-09 01:42 CEST |
| Main | My View | View Issues | Change Log | Roadmap | Docs | My Account |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0000060 | [ethersex] Bug | crash | always | 2009-03-31 14:21 | 2009-03-31 14:21 | |||||||
| Reporter | habo | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | new | |||||||||||
| Summary | 0000060: vfs_fseek and vfs_write fails and crashes ethersex | |||||||||||
| Description |
For testing of "vfs_fseek" and "vfs_write" I created a ECMD called "file write" with two parameter "filename" and "value" while calling vfs_fseek or vfs_write, ethersex crashes (most time with reboot) like this weather i2c-EEPROM or SD-Card is activated and connected file write bla foobar D: file: bla handle: 128 D: debugging enabled D: disabling watchdog D: booting ethersex firmware 0.2... |
|||||||||||
| Additional Information |
int16_t parse_cmd_file_write(char *cmd, char *output, uint16_t len) { char filename[8]; char value[50]; sscanf_P(cmd, PSTR("%s %s"), &filename, &value); struct vfs_file_handle_t *fh; fh = vfs_open (filename); debug_printf("file: %s handle: %i\n",filename, fh->fh_type); /* vfs_fseek (fh, 0, SEEK_END); debug_printf("seek done\n"); */ vfs_write (fh, value, sizeof(value)); debug_printf("written\n"); } |
|||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| There are no notes attached to this issue. |
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |