Ticket #886 (closed defect: fixed)
[PATCH] Segmentation fault triggered from DEBUG_BLOCK_PRINT in block-raw.c because logfile is NULL
| Reported by: | zmedico@… | Owned by: | balrogg@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | qemu-neo1973 | Version: | current svn head |
| Severity: | normal | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
This problem appeared when upstream changes were pulled in revision 2981. This
triggers the following segmentation fault when running flash.sh:
openmoko/flash.sh: line 88: 1421 Segmentation fault (core dumped) $qemu
-mtdblock "$script_dir/$flash_base" -kernel "$script_dir/$1" -serial stdio
-nographic -usb -monitor null 0<&0
I used gdb to generate a backtrace and found that the segmentation fault was due
to the DEBUG_BLOCK_PRINT macro in block-raw.c being called while logfile was NULL.
Attachments
Change History
Changed 6 years ago by zmedico@…
- Attachment block-raw.c.diff added
Note: See
TracTickets for help on using
tickets.

make DEBUG_BLOCK_PRINT check if logfile is NULL