#20 Seg Faults when converting to SQL

None
closed
nobody
None
5
2014-05-19
2011-05-05
BindSocket
No

me@home:~$ strace dia2code -t sql MOPEDICDatabase.dia
execve("/usr/bin/dia2code", ["dia2code", "-t", "sql", "MOPEDICDatabase.dia"], [/ 49 vars /]) = 0
brk(0) = 0x8524000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77a3000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=91417, ...}) = 0
mmap2(NULL, 91417, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb778c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\270\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1208852, ...}) = 0 mmap2(NULL, 1215444, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7663000 mmap2(0xb7786000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x122) = 0xb7786000 mmap2(0xb778b000, 3028, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb778b000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\n\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=9736, ...}) = 0 mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb765f000 mmap2(0xb7661000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7661000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220o\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1434180, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb765e000 mmap2(NULL, 1444360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb74fd000 mprotect(0xb7657000, 4096, PROT_NONE) = 0 mmap2(0xb7658000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15a) = 0xb7658000 mmap2(0xb765b000, 10760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb765b000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/libz.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\27\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=79476, ...}) = 0
mmap2(NULL, 82192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb74e8000
mmap2(0xb74fb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb74fb000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2604\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=149392, ...}) = 0
mmap2(NULL, 151680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb74c2000
mmap2(0xb74e6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xb74e6000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb74c1000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb74c1ad0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb74e6000, 4096, PROT_READ) = 0
mprotect(0xb74fb000, 4096, PROT_READ) = 0
mprotect(0xb7658000, 8192, PROT_READ) = 0
mprotect(0xb7661000, 4096, PROT_READ) = 0
mprotect(0xb7786000, 16384, PROT_READ) = 0
mprotect(0x805d000, 4096, PROT_READ) = 0
mprotect(0xb77c2000, 4096, PROT_READ) = 0
munmap(0xb778c000, 91417) = 0
brk(0) = 0x8524000
brk(0x8545000) = 0x8545000
open("dia2code.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("~/.dia2code/dia2code.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("Database.dia", {st_mode=S_IFREG|0644, st_size=3358, ...}) = 0
stat64("Database.dia", {st_mode=S_IFREG|0644, st_size=3358, ...}) = 0
stat64("Database.dia", {st_mode=S_IFREG|0644, st_size=3358, ...}) = 0
open("Database.dia", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3358, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77a2000
read(3, "\37\213\10\0\0\0\0\0\0\3\355]]s\332H\26}\317\257\240\310+\323\350\23\211a\354\251Jf"..., 16384) = 3358
read(3, "", 12288) = 0
_llseek(3, 0, [3358], SEEK_CUR) = 0
getcwd("/home/brian", 1024) = 12
brk(0x8566000) = 0x8566000
brk(0x8587000) = 0x8587000
brk(0x85a8000) = 0x85a8000
read(3, "", 16384) = 0
close(3) = 0
munmap(0xb77a2000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

Discussion

  • BindSocket

    BindSocket - 2011-05-05

    This is running on Ubuntu 11.04 2.6.38-8-generic-pae #42-Ubuntu SMP

     
  • Oliver Kellogg

    Oliver Kellogg - 2011-10-21

    Hard to say what is happening without more data.
    Could you attach the dia files that cause the error?

     
  • Oliver Kellogg

    Oliver Kellogg - 2014-05-19

    Cannot process this PR due to missing reproducer.

     
  • Oliver Kellogg

    Oliver Kellogg - 2014-05-19
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks