Bugs item #2895290, was opened at 2009-11-10 17:02
Message generated for change (Settings changed) made by mlkersten
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2895290&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: MonetDB5 "candidate"
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Fabian (mr-meltdown)
Assigned to: Martin Kersten (mlkersten)
Summary: M5: segfault for tst019 when run with mclient

Initial Comment:
(pegasus) fabian% debug_five
GNU gdb (Gentoo 7.0 p1) 7.0
Copyright (C) 2009 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-pc-solaris2.11".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from 
/export/scratch/stripe/fabian/monetdb/Nov2009/program-i86pc/bin/mserver5...done.
(gdb) r
Starting program: 
/export/scratch/stripe/fabian/monetdb/Nov2009/program-i86pc/bin/mserver5 
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]
[New LWP    2        ]
# MonetDB server v5.16.0, based on kernel v1.34.0
# Serving database 'demo', using 1 thread
# Compiled for x86_64-pc-solaris2.11/64bit with 64bit OIDs dynamically linked
# Detected 2.000 GiB (2147020800 bytes) main-memory.
# Copyright (c) 1993-July 2008 CWI.
# Copyright (c) August 2008-2009 MonetDB B.V., all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
#warning: please don't forget to set your vault key!
#(see 
/export/scratch/stripe/fabian/monetdb/Nov2009/program-i86pc/etc/monetdb5.conf)
[New LWP    3        ]
# Listening for connection requests on mapi:monetdb://127.0.0.1:50000/
>[New LWP    4        ]
[New Thread 4 (LWP 4)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4 (LWP 4)]
0xfffffd5de3218b82 in varGetProp (mb=0x16c01b8, var=0, prop=10)
    at 
/export/scratch/mirror/fabian/monetdb/Nov2009/five/src/mal/mal_instruction.mx:3057
3057            for(i=0; i<v->propc; i++){
(gdb) p v
$1 = (VarPtr) 0x0
(gdb) q
A debugging session is active.

        Inferior 1 [process 6277    ] will be killed.

Quit anyway? (y or n) y
(pegasus) fabian%



(pegasus:src/mal/Tests) fabian% $INSTALL_DIR/bin/mclient -lmal -i < tst019.mal
MAPI  = mone...@localhost:50000
QUERY = end welcome;
ERROR = !TypeException:user.welcome[3]:type mismatch void := str
MAPI  = mone...@localhost:50000
ACTION= read_line
QUERY =
ERROR = !Connection terminated



----------------------------------------------------------------------

>Comment By: Martin Kersten (mlkersten)
Date: 2009-11-16 12:40

Message:
Obvious dereference through NULL. 
No additional test needed. 

----------------------------------------------------------------------

Comment By: Fabian (mr-meltdown)
Date: 2009-11-16 10:57

Message:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 6 (LWP 6)]
0xfffffd5dd2c18b82 in varGetProp (mb=0x18c29a8, var=0, prop=10)
    at
/export/scratch/mirror/fabian/monetdb/Nov2009/five/src/mal/mal_instruction.mx:3057
3057            for(i=0; i<v->propc; i++){
(gdb) bt
#0  0xfffffd5dd2c18b82 in varGetProp (mb=0x18c29a8, var=0, prop=10)
    at
/export/scratch/mirror/fabian/monetdb/Nov2009/five/src/mal/mal_instruction.mx:3057
#1  0xfffffd5dc4a0a001 in MALoptimizer (c=0x6061d8)
    at
/export/scratch/mirror/fabian/monetdb/Nov2009/five/src/optimizer/opt_support.mx:701
#2  0xfffffd5dd2c63066 in runPhase (c=0x6061d8, phase=2)
    at
/export/scratch/mirror/fabian/monetdb/Nov2009/five/src/mal/mal_scenario.mx:602
#3  0xfffffd5dd2c6318f in runScenarioBody (c=0x6061d8)
    at
/export/scratch/mirror/fabian/monetdb/Nov2009/five/src/mal/mal_scenario.mx:641
#4  0xfffffd5dd2c63387 in runScenario (c=0x6061d8)
    at
/export/scratch/mirror/fabian/monetdb/Nov2009/five/src/mal/mal_scenario.mx:672
#5  0xfffffd5dd2c1f9a5 in MSserveClient (dummy=0x6061d8)
    at
/export/scratch/mirror/fabian/monetdb/Nov2009/five/src/mal/mal_session.mx:501
#6  0xfffffd7fff1fae75 in _thrp_setup () from /lib/64/libc.so.1
#7  0xfffffd7fff1fb130 in ?? () from /lib/64/libc.so.1
#8  0x0000000000000000 in ?? ()


----------------------------------------------------------------------

Comment By: Fabian (mr-meltdown)
Date: 2009-11-16 10:56

Message:
you have to run with -i flag (interactive) to trigger the bug, if you do it
at once it doesn't crash indeed.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2895290&group_id=56967

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to