Fossil SCM
Segfault viewing file
da461aefee1351d…
· opened 12 years, 11 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Important
- Resolution
- Fixed
- Subsystem
- —
- Created
- May 1, 2013 3:28 p.m.
Program received signal SIGSEGV, Segmentation fault. fossil_strcmp (zA=zA@entry=0x7fffffffda20 "zshrc", zB=zB@entry=0x3e613738464947 ) at ./src/printf.c:908 908 b = *zB++; (gdb) bt
0 fossil_strcmp (zA=zA@entry=0x7fffffffda20 "zshrc", zB=zB@entry=0x3e613738464947 ) at ./src/printf.c:908
1 0x0000000000433fe6 in mimetype_from_name (zName=) at ./src/doc.c:323
2 0x0000000000442f25 in artifact_page () at ./src/info.c:1652
3 0x0000000000448ec0 in process_one_web_page (zNotFound=zNotFound@entry=0x783160 "http://chiselapp.com/notfound", pFileGlob=pFileGlob@entry=0x0) at ./src/main.c:1499
4 0x0000000000449cc6 in cmd_cgi () at ./src/main.c:1602
5 0x0000000000416257 in main (argc=, argv=) at ./src/main.c:559
(gdb) print zB $1 = 0x3e613738464947 (gdb)
Core file and compiled "fossil" executable available upon request
Comments (2)
Program received signal SIGSEGV, Segmentation fault. fossil_strcmp (zA=zA@entry=0x7fffffffda20 "zshrc", zB=zB@entry=0x3e613738464947 ) at ./src/printf.c:908 908 b = *zB++; (gdb) bt
0 fossil_strcmp (zA=zA@entry=0x7fffffffda20 "zshrc", zB=zB@entry=0x3e613738464947 ) at ./src/printf.c:908
1 0x0000000000433fe6 in mimetype_from_name (zName=) at ./src/doc.c:323
2 0x0000000000442f25 in artifact_page () at ./src/info.c:1652
3 0x0000000000448ec0 in process_one_web_page (zNotFound=zNotFound@entry=0x783160 "http://chiselapp.com/notfound", pFileGlob=pFileGlob@entry=0x0) at ./src/main.c:1499
4 0x0000000000449cc6 in cmd_cgi () at ./src/main.c:1602
5 0x0000000000416257 in main (argc=, argv=) at ./src/main.c:559
(gdb) print zB $1 = 0x3e613738464947 (gdb)
Core file and compiled "fossil" executable available upon request
Better backtrace, and additional information:
Core was generated by `fossil repository'. Program terminated with signal 11, Segmentation fault.
0 0x000000000045e5a2 in fossil_strcmp (zA=0x7fffffffd991 "shrc", zB=0x101010101010101 ) at ./src/printf.c:908
908 b = *zB++; (gdb) bt
0 0x000000000045e5a2 in fossil_strcmp (zA=0x7fffffffd991 "shrc", zB=0x101010101010101 ) at ./src/printf.c:908
1 0x00000000004352fc in mimetype_from_name (zName=0x7f88f0 ".zshrc") at ./src/doc.c:323
2 0x0000000000447c53 in artifact_page () at ./src/info.c:1652
3 0x000000000044f1d6 in process_one_web_page (zNotFound=0x7d1160 "http://chiselapp.com/notfound", pFileGlob=0x0) at ./src/main.c:1499
4 0x000000000044f78b in cmd_cgi () at ./src/main.c:1602
5 0x000000000044d1cf in main (argc=2, argv=0x7fffffffdd68) at ./src/main.c:559
(gdb) up
1 0x00000000004352fc in mimetype_from_name (zName=0x7f88f0 ".zshrc") at ./src/doc.c:323
323 c = fossil_strcmp(zSuffix, aMime[i].zSuffix); (gdb) print zSuffix $1 = "zshrc\000\000\000@�S\000\000\000\000\000\000\032\177" (gdb) print aMime[i].zSuffix $2 = 0x101010101010101 (gdb) print i $3 = 196 (gdb) print aMime[i-1].zSuffix $4 = 0x534d53 "zip" (gdb)