Sigh. Had to build postfix with debug data, it seems standard build does
not do it. Anyway, here it is -- I ran it providing a bad parameter to
-u:

cer...@xango2:/build/buildd/postfix$ sudo gdb --args postmap -u NOTHING
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/postmap...done.
(gdb) r
Starting program: /usr/sbin/postmap -u NOTHING
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff797db7a in dict_open3 (dict_type=0x7ffff82022a0 "hash", 
dict_name=0x0, open_flags=2, dict_flags=1073741888) at dict_open.c:336
336         if (*dict_type == 0 || *dict_name == 0)
(gdb) bt full
#0  0x00007ffff797db7a in dict_open3 (dict_type=0x7ffff82022a0 "hash", 
dict_name=0x0, open_flags=2, dict_flags=1073741888) at dict_open.c:336
        dp = <value optimized out>
        dict = <value optimized out>
#1  0x00007ffff7ffc783 in postmap_upgrade (map_type=0x7ffff82022a0 "hash", 
map_name=0x0) at postmap.c:734
        dict = <value optimized out>
#2  0x00007ffff7ffd846 in main (argc=3, argv=0x7fffffffe6f8) at postmap.c:945
        success = 1
        path_name = <value optimized out>
        ch = <value optimized out>
        fd = <value optimized out>
        st = {st_dev = 11, st_ino = 13, st_nlink = 1, st_mode = 8592, st_uid = 
1000, st_gid = 5, __pad0 = 0, st_rdev = 34826, st_size = 0, st_blksize = 1024, 
st_blocks = 0, st_atim = {tv_sec = 1285714177, tv_nsec = 789137862}, st_mtim = 
{tv_sec = 1285714178, tv_nsec = 299142426}, st_ctim = {tv_sec = 1285684848, 
            tv_nsec = 841240489}, __unused = {0, 0, 0}}
        postmap_flags = 3
        open_flags = 578
        dict_flags = <value optimized out>
        upgrade = 1
        query = 0x0
        delkey = <value optimized out>
        sequence = 0
        found = <value optimized out>
(gdb) 


** Changed in: postfix (Ubuntu)
       Status: Incomplete => Confirmed

-- 
postmap -u segfaults
https://bugs.launchpad.net/bugs/647647
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to postfix in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to